Project Zomboid

Project Zomboid

More Traits
Gordanite Renaming Crowbars Issue
Hello, love the mod, however I made a new multiplayer game (copied from working old multiplayer game) and for some reason when I pick up crowbars they get renamed to "Tooltip_MoreTraits_GordaniteDefault+".

This only happens to me, not my friends since I have the Gordanite trait.
< >
1-5 van 5 reacties weergegeven
im having the same issue
happened to me too
yup. found a bloodied crowbar (extremely good) and it got renamed and the unique stats got removed (changed to normal crowbar+ stats). super disappointed
Same issue. It retains it's smaller size and lower weight but the damage is reduced.
The problem is that on line 4099 of the MoreTraits.lua there is a bit of checking for an "old gordonite" that checks if the TreeDamage stat of the weapon is greater than 0, and then normalizes the stats to a normal crowbar and sets a tooltip string to accommodate... something? It's checking for a mod that hasn't been updated since 2016 so question marks from me.

Anyway, this works fine for a normal Crowbar; tree damage should be zero so no problem, this code doesn't run. However the Bloodied Crowbar has a TreeDamage of 100, so this code executes and makes a selection of the Bloodied Crowbar Stats equal to a regular Crowbar and changes the tooltip name.

Frankly, the tooltip is a red herring, the bigger problem is the stats normalization. Adding "and crowbar:getTreeDamage() ~= 100" to line 4099 fixes the problem in a very blunt way; the code block won't run against a Bloodied Crowbar and this has a side effect of fixing the tooltip problem.
< >
1-5 van 5 reacties weergegeven
Per pagina: 1530 50