I can try to implement that if you don't mind.Hazelnut wrote: ↑Sun Nov 10, 2019 3:14 pm I didn't know, and had to look at the code to find out. Seems that info comes from Politic PAK file, and you can't override that with the system. That would require a lot of corresponding changes in the other data files I suspect, so I'm not going to be adding it either.
Adding coastal locations using world data system (difficult)
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
- Hazelnut
- Posts: 3015
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Modding Tutorials: World Data Overrides
Wouldn't it be easier to just put your location somewhere else along the coast where the region does stretch to? There are many coastal towns in the game, it's simply where the region is defined here.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
I need to create ports for each port town (capitals of Daggerfall, Sentinel and Wayrest). So I need such pixels near those towns. But I can't find any.
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
I have another question here. Is location always centered in the pixel it belongs to? Or I can move location across pixel? It seems Latitude and Longitude fields are ignored and only MapID determines which map pixel the location beongs to.
- BadLuckBurt
- Posts: 948
- Joined: Sun Nov 05, 2017 8:30 pm
Re: Modding Tutorials: World Data Overrides
It's always centered. A location can have 64 RMB blocks in total using an 8x8 grid, dumplocation Daggerfall City to see an example of this. The locations that use the 8x8 layout always have city wall blocks surrounding them so the actual cities themselves consist of 6x6 normal RMB blocks and are then surrounded by the wall blocks.
In theory it would be possible to use RMB blocks without buildings to push the other blocks to a certain position in the pixel but so far no-one has tested this. I have tested doing an 8x8 layout with regular blocks and that breaks the terrain smoothing DFU uses when it encounters city walls. Breaks the terrain as in, there was a visible gap that allowed me to jump under the map.
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt
.
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt
.
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
So, it seems to be impossible to create a port in Daggerfall...BadLuckBurt wrote: ↑Mon Nov 11, 2019 7:24 pm It's always centered. A location can have 64 RMB blocks in total using an 8x8 grid, dumplocation Daggerfall City to see an example of this. The locations that use the 8x8 layout always have city wall blocks surrounding them so the actual cities themselves consist of 6x6 normal RMB blocks and are then surrounded by the wall blocks.
In theory it would be possible to use RMB blocks without buildings to push the other blocks to a certain position in the pixel but so far no-one has tested this. I have tested doing an 8x8 layout with regular blocks and that breaks the terrain smoothing DFU uses when it encounters city walls. Breaks the terrain as in, there was a visible gap that allowed me to jump under the map.
Well... I have to test such location (which fills the whole pixel with empty terrain blocks) at coastline pixel.
- Hazelnut
- Posts: 3015
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Modding Tutorials: World Data Overrides
It it essential that these ports are fast travel destinations and available as quest locations? Maybe it would be useful to start a thread about what you're trying to do and context, to see what solutions may fit best given the constraints that exist.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
Yes. The most important part is to make those places normal places where the player can fast travel.
Anyway, I almost it. The result of my investigations are attached to the post. I created a location in the ocean pixel, so there is no need to adjust its height. To stretch coastline to the pixel, where my location is, I created anothe location in the neighbour coastline pixel.
There are a few issues, which I consider DFU engine bugs:
- Both locations are not displayed on the region map, 'cause they're in the deifferent region. I think region map should be fixed this way: since there is no possibility to open region map of High Rock sea coast, if location pixel is on the screen and it belongs to High Rock sea coast region, display it.
- When mouse is over such pixel, wrong location name displayed (when mouse is over Port Daggerfall, "Hearthfield Manor" is displayed, and when it is over "Test", Charing is displayed. This is obviously a bug. If we allow fast travel to a different region and display names of the locations in it, location name must be taken from the region, location belongs to, not from current region.
- When player fast travel to Port Daggerfall from North, it appears not in Southern block of the location, but somewhere in the middle of the pixel (in water), or just falls in the void. This must be also a bug.
- Of course, a bug with incorrect display of player location on the world map, when player is in Hight Rock sea coast region must be also fixed.
Anyway, please, check attached files. Test location is 2 pixels West and 2 pixels South from Daggerfall: Copperfield Manor. Port Daggerfall location is in southern neighbour of Test location. Please, fast travel to Test, then walk South, to see Port Daggerfall.
- Attachments
-
- PortDaggerfall-Test.zip
- (3.85 KiB) Downloaded 101 times
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Modding Tutorials: World Data Overrides: Dungeon entrance
I still can't figure out, how dungeon entrances are defined. Where defined, that a specific object in the exterior block is clickable and it's an entrance of the dungeon?
- Yagiza
- Posts: 120
- Joined: Wed Jul 31, 2019 5:16 pm
Re: Modding Tutorials: World Data Overrides
BTW, when I try to use files from WorldDataTestFiles.zip with worldDataDev branch, I cannot enter the crypt in The Newarch Vaults. When I click on the door of the crypt, I have this message in the Unity editor console:
Spoiler!