[RESOLVED 0.10.19] 0.10.17 - Should feet defence be -3 without shoes?

User avatar
Seferoth
Posts: 665
Joined: Fri Nov 22, 2019 5:45 pm
Location: Finland

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Seferoth »

Thank you, was really nice to hear that.

Edit: Some good news, i found an absolutely fantastic combination of clothes that uses SANDALS! I can actually use them. Will post the pick to Daggerfashion topic when i have everything ready. :D

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Bug?) Should feet defence be -3 without shoes?

Post by BadLuckBurt »

Hazelnut wrote: Thu Dec 05, 2019 4:34 pm There's an elusive bug that still gets the feet armor value out of sync. I've been unable to find it, so really need a save along with a set of instructions that reproduce this behaviour reliably.
I've done a quick test with my character and this is the behaviour:

1. Equip shoes on character and defense is raised to 3. (This also appears to happen in classic)
2. Save game with shoes on and reload, feet defense is 0
3. Unequip shoes and defense drops to -3 (Equipping shoes again brings it back to 0)
4. Saving game bare footed with defense at -3 and reloading resets defense to 0
5. Equipping shoes sets defense to 3 - bringing it back to step 1

I'll check in the saving / loading code why it isn't being restored properly but I think that's where the issue lies, the shoes seem to be ignored upon load but not during equipping / unequipping.

I don't know why they are treated as leather boots but that may have to do with the way they're defined in classic's data. Will report back when I figure it out.
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

.

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Bug?) Should feet defence be -3 without shoes?

Post by BadLuckBurt »

Seferoth wrote: Sun Dec 29, 2019 8:07 am Thank you, was really nice to hear that.

Edit: Some good news, i found an absolutely fantastic combination of clothes that uses SANDALS! I can actually use them. Will post the pick to Daggerfashion topic when i have everything ready. :D
You're welcome, some things just need to be said :)

Check my post above this one, I think I know where the problem lies since I can reproduce it reliably but I'll investigate a little further.
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

.

User avatar
Seferoth
Posts: 665
Joined: Fri Nov 22, 2019 5:45 pm
Location: Finland

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Seferoth »

BadLuckBurt wrote: Sun Dec 29, 2019 10:11 am
Hazelnut wrote: Thu Dec 05, 2019 4:34 pm There's an elusive bug that still gets the feet armor value out of sync. I've been unable to find it, so really need a save along with a set of instructions that reproduce this behaviour reliably.
I've done a quick test with my character and this is the behaviour:

1. Equip shoes on character and defense is raised to 3. (This also appears to happen in classic)
2. Save game with shoes on and reload, feet defense is 0
3. Unequip shoes and defense drops to -3 (Equipping shoes again brings it back to 0)
4. Saving game bare footed with defense at -3 and reloading resets defense to 0
5. Equipping shoes sets defense to 3 - bringing it back to step 1

I'll check in the saving / loading code why it isn't being restored properly but I think that's where the issue lies, the shoes seem to be ignored upon load but not during equipping / unequipping.

I don't know why they are treated as leather boots but that may have to do with the way they're defined in classic's data. Will report back when I figure it out.
Wait...all i had to do to fix this(momentarily) was to save and reload? I swear i tried this before! I tried this and it worked! I am shocked how UTTERLY MORON I AM! I have been whining and moaning here for two days and that's all i had to do? SAVE AND RELOAD!? I feel like laughing and crying at the same time. Thank you for bringing this to my attention and now excuse me while i go and jump off my balcony.

Edit: *Comes back from the ledge* Wait, so is the +3 a bug or not? I mean it does not really make sense why shoes would be the only clothes to raise defense.

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

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Hazelnut »

The code has all shoes except for sandals offer the basic +3 protection of leather boots - this is to match classic DF as far as I know, but I have not researched the original behaviour myself. The bug here seems to be a difference in game equipping vs. re-loading a save. That is the missing link I believe, so I should be able to track that down and fix it. Thank you guys.

Yep, found it. The initialisation of armor values ignores the shoes and that causes the bug as it only registers the values from actual armor pieces. I will take a look at fixing it when I get a chance.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Seferoth
Posts: 665
Joined: Fri Nov 22, 2019 5:45 pm
Location: Finland

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Seferoth »

Hazelnut wrote: Sun Dec 29, 2019 12:11 pm The code has all shoes except for sandals offer the basic +3 protection of leather boots - this is to match classic DF as far as I know, but I have not researched the original behaviour myself. The bug here seems to be a difference in game equipping vs. re-loading a save. That is the missing link I believe, so I should be able to track that down and fix it. Thank you guys.

Yep, found it. The initialisation of armor values ignores the shoes and that causes the bug as it only registers the values from actual armor pieces. I will take a look at fixing it when I get a chance.
Excellent news. Thank you. :)

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Bug?) Should feet defence be -3 without shoes?

Post by BadLuckBurt »

Awesome, mission accomplished :D
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

.

User avatar
Seferoth
Posts: 665
Joined: Fri Nov 22, 2019 5:45 pm
Location: Finland

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Seferoth »

BadLuckBurt wrote: Sun Dec 29, 2019 12:39 pm Awesome, mission accomplished :D
https://www.youtube.com/watch?v=-YCN-a0NsNk

Lokkrin Zhataros
Posts: 256
Joined: Thu Nov 21, 2019 9:27 pm

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Lokkrin Zhataros »

Great to hear that another bug is being fixed! When thinking back on this I do seem to remember this shoe stats bug being in classic Daggerfall, you found this as well Seferoth. I probably just ignored it thinking "it's buggy Daggerfall, can't do anything about it" or similar and never proceeded to find it in DFU. ;)

User avatar
Seferoth
Posts: 665
Joined: Fri Nov 22, 2019 5:45 pm
Location: Finland

Re: (Bug?) Should feet defence be -3 without shoes?

Post by Seferoth »

It's always nice to see old and elusive bugs squashed. This one did drive me insane though. :D

Locked