Closed: Dungeon Texture Tables

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Closed: Dungeon Texture Tables

Post by Interkarma »

This one can be considered "partially known" thanks to Lucius from DaggerXL. He posted in some detail about how dungeon texture tables are generated in the following blog post:

http://xlengine.com/dungeon-blocks/

Unfortunately there is some information missing, such as source and offset of the 500-entry key table and re-implementing the exact random algorithm Daggerfall uses.

I have worked around this for all major dungeons by grabbing the resultant texture table from the DOSBox debugger at offset 0x286186 after entering that dungeon in Daggerfall. All other dungeons are just assigned a random texture table and will not match the game exactly.

This isn't a core issue and the randomly textured dungeons will work just fine without this information. However it would be nice to have this working 100%. With the information we already have, I'm sure this can be solved. It's just a matter of some debugging time and lots of patience.

Before anyone asks, I have already contacted Lucius to request more detail and unfortunately he was unavailable to help.

So, any debugging and ASM gurus out there interested in helping on this one?

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Closed: Dungeon Texture Tables

Post by Interkarma »

Great work from Allofich on solving this one. Many thanks! :D

User avatar
Feralwarlord
Posts: 117
Joined: Sat Jul 29, 2017 10:08 am

Re: Closed: Dungeon Texture Tables

Post by Feralwarlord »

Interkarma wrote:Great work from Allofich on solving this one. Many thanks! :D
Does this mean we'll see less oddities like that one room design that always has stretched textures?

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Closed: Dungeon Texture Tables

Post by Interkarma »

No, that is related to UV coordinates, a different thing to the texture tables.

CM August
Posts: 86
Joined: Fri Jul 14, 2017 11:11 am

Re: Closed: Dungeon Texture Tables

Post by CM August »

Another long-standing Daggerfall mystery solved. Way to go Allofich!

Post Reply