[RESOLVED 0.10.19] 0.10.17 - Should feet defence be -3 without shoes?
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
Re: (Bug?) Should feet defence be -3 without shoes?
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.
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.
- BadLuckBurt
- Posts: 948
- Joined: Sun Nov 05, 2017 8:30 pm
Re: (Bug?) Should feet defence be -3 without shoes?
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
.
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt
.
- BadLuckBurt
- Posts: 948
- Joined: Sun Nov 05, 2017 8:30 pm
Re: (Bug?) Should feet defence be -3 without shoes?
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
.
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt
.
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
Re: (Bug?) Should feet defence be -3 without shoes?
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.BadLuckBurt wrote: ↑Sun Dec 29, 2019 10:11 amI'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.
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.
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: (Bug?) Should feet defence be -3 without shoes?
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.
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
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
Re: (Bug?) Should feet defence be -3 without shoes?
Excellent news. Thank you.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.
- BadLuckBurt
- Posts: 948
- Joined: Sun Nov 05, 2017 8:30 pm
Re: (Bug?) Should feet defence be -3 without shoes?
Awesome, mission accomplished
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
.
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
-
- Posts: 256
- Joined: Thu Nov 21, 2019 9:27 pm
Re: (Bug?) Should feet defence be -3 without shoes?
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.
- Seferoth
- Posts: 665
- Joined: Fri Nov 22, 2019 5:45 pm
- Location: Finland
Re: (Bug?) Should feet defence be -3 without shoes?
It's always nice to see old and elusive bugs squashed. This one did drive me insane though.