Project Zomboid

Project Zomboid

More Traits
MonabyMoonlight_TTV 2023 年 12 月 26 日 下午 10:55
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 条,共 5 条留言
AlchemyExists 2024 年 3 月 18 日 下午 4:43 
im having the same issue
jetti 2024 年 4 月 8 日 上午 11:46 
happened to me too
Chad Chungus 2024 年 9 月 5 日 下午 7:31 
yup. found a bloodied crowbar (extremely good) and it got renamed and the unique stats got removed (changed to normal crowbar+ stats). super disappointed
Blobphish 2024 年 9 月 18 日 下午 1:43 
Same issue. It retains it's smaller size and lower weight but the damage is reduced.
Warmachine 2024 年 12 月 1 日 上午 1:31 
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 条,共 5 条留言
每页显示数: 1530 50