Building 172 does not have Emissive windows at night/day

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
User avatar
King of Worms
Posts: 4294
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Building 172 does not have Emissive windows at night/day

Post by King of Worms »

Its quite rare building so it took a while for me to realize it has this issue.

172 (summer) and I guess 173 (winter)
01.jpg
01.jpg (303.58 KiB) Viewed 157 times
02.jpg
02.jpg (198.97 KiB) Viewed 157 times

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

Re: Building 172 does not have Emissive windows at night/day

Post by Interkarma »

I suspect the window setup might not include that archive. Could you please drop me a save here so I can quickly repro and take a look?

User avatar
King of Worms
Posts: 4294
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Building 172 does not have Emissive windows at night/day

Post by King of Worms »

Hi, save is here:
SAVE451.rar
(247.99 KiB) Downloaded 2 times
In case you use different terrain sampler and get re-positioned, the building is located here:
DaggerfallUnity 2021-11-11 11-53-27.jpg
DaggerfallUnity 2021-11-11 11-53-27.jpg (289.4 KiB) Viewed 99 times
*
*
I have not tested the Winter version but I suspect is as not working as well
When I got inside the building, it used different textures than 17x interior archive, but that might not be a bug.

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

Re: Building 172 does not have Emissive windows at night/day

Post by Interkarma »

Thanks for save and highlighting building.

The first problem is this one isn't a proper sequenced texture archive - e.g. there's no equivalent 072, 372, 472. It's just a standalone texture set for 171-173. That by itself it fine, I can add special handling to flag these textures as windows.

The second problem is that the window parts aren't painted with the correct index for emission (0xff) in gamedata. So even if they're flagged as windows they don't pick up emission with classic textures.

I checked in classic and unsurprisingly it's the same thing. This texture is basically broken in gamedata and DFU just inherits that.

fall_033.png
fall_033.png (14.38 KiB) Viewed 79 times

I've merged change to flag textures as windows, so at least DFU should load your emission maps now. It won't help classic textures of course, they're just broken, but it should work for mods now provided they supply an emission map.

User avatar
King of Worms
Posts: 4294
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Building 172 does not have Emissive windows at night/day

Post by King of Worms »

I had a feeling this texture set is off in multiple ways..
Im glad that at least the mods can correct this now. Thank you :)

PS: Good thing is, its very underutilized ingame, so not many ppl will notice this bug. That might also be the reason it slipped to the release in 96

Post Reply