0.7.36: Temple inner door textures [RESOLVED]

Locked
BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

0.7.36: Temple inner door textures [RESOLVED]

Post by BansheeXYZ »

I've noticed a difference between classic and DFU with regards to temple inner doors, metal vs wood. This is Kynareth.
td3.png
td3.png (867.09 KiB) Viewed 1689 times

User avatar
Hazelnut
Posts: 3016
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: 0.7.36: Temple inner door textures

Post by Hazelnut »

Kynareth temple what location exactly?
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

BansheeXYZ
Posts: 555
Joined: Fri Oct 23, 2015 8:19 pm

Re: 0.7.36: Temple inner door textures

Post by BansheeXYZ »

Hazelnut wrote: Wed Feb 06, 2019 10:13 pm Kynareth temple what location exactly?
This one was probably Aldingwall or Inner Altar of Kynareth. But I don't think it matters, I think every Kynareth has orange on the left and black on the right.

Not all temples are the same, though. If you travel to temples in other regions, the doors change. Someone will maybe need to look at classic a bit harder to see if this was intentional or not. It's definitely possible that they're supposed to be wood all the time like DFU and classic is just screwing up. But it's also possible that classic did something here to add variety between them.

User avatar
Midknightprince
Posts: 1324
Joined: Fri Aug 11, 2017 6:51 am
Location: San Antonio TX
Contact:

Re: 0.7.36: Temple inner door textures

Post by Midknightprince »

BansheeXYZ wrote: Thu Feb 07, 2019 1:46 am
Hazelnut wrote: Wed Feb 06, 2019 10:13 pm Kynareth temple what location exactly?
This one was probably Aldingwall or Inner Altar of Kynareth. But I don't think it matters, I think every Kynareth has orange on the left and black on the right.

Not all temples are the same, though. If you travel to temples in other regions, the doors change. Someone will maybe need to look at classic a bit harder to see if this was intentional or not. It's definitely possible that they're supposed to be wood all the time like DFU and classic is just screwing up. But it's also possible that classic did something here to add variety between them.
You know he's right, I remember looking at it in classic, and thinking how did they get it to look like that, maybe it's something with dosbox..
I never even noticed it with Daggerfallsetup until I just saw this, but he's right.
Something weird with those pillars in classic, I always thought like you said their metal or something.

I don't even know if it means anything, I just remember thinking something along these lines back in the day, and sorry to butt in I thought it was worth a mention :D
Check out my YouTube Channel!

R.D.
Posts: 379
Joined: Fri Oct 07, 2016 10:41 am

Re: 0.7.36: Temple inner door textures

Post by R.D. »

I looked into this some but am not sure. I found something, though, that I think may point to the answer. I found that even if in MaterialReader.cs, you change ReverseTextureKey() to always give back a constant value for "archiveOut", the problem doors in those temples will remain unaffected, while all the other textures (including the entrance door) are changed.

I found also that in a dungeon, the textures, including doors, would change, except tapestries did not. (tested in the exit room of Privateer's Hold)

Interkarma, do you know why this happens? I feel like maybe interior doors (and tapestries?) are simply all being instantiated with those default textures, bypassing normal climate swaps, etc.

I also checked temples in other climates. I found:

Classic (Temperate)
Archive Record
074 3 (left door in above screenshot)
174 3 (right door in above screenshot)
374 1 (entrance)

DFU (Temperate)
074 0
074 0
374 1

Classic (Swamp)
474 0
474 3
474 1

DFU (Swamp)
074 0
074 0
474 1

Classic (Desert)
074 3
074 0
074 1

DFU (Desert)
074 0
074 0
074 1

The entrance doors are correct, it is just the interior doors. In DFU both interior doors are using the same "key" value to derive texture and record from, even when the doors show up with two different textures in classic, so that, plus the above information about ReverseTextureKey() not affecting them, makes me think they are not drawing from the same base data.

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

Re: 0.7.36: Temple inner door textures

Post by Interkarma »

I honestly can't recall, but it's possible internal doors are excluded from climate swaps and just use the base texture archive. I'll dig into that when I can.

Edit: Found cause and solution. Working on implementation.

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

Re: 0.7.36: Temple inner door textures

Post by Interkarma »

Have a merged fix now, it will be in next round of builds.

This was a bit more detailed than expected and required finding some previously unknown game data to get correct doors prior to climate processing. I recall now that I wasn't sure how interior doors were selected back in the early days of DFTFU and just made them all the same until I looked into it deeper. It only took like 4 years. :lol:

Locked