Project Zomboid

Project Zomboid

Durability Overhaul
21 Comments
OttosTheName 6 Sep, 2023 @ 10:22am 
Yeah I think durability too high is an issue for the game... IIRC 120 is the max? But I don't remember. I've also done some durability modding in the past.
Kafkatrap 25 Mar, 2023 @ 12:54am 
Is the crowbar thing fixed? :o
Drey  [author] 18 Sep, 2022 @ 9:27pm 
@Tahvohck That's really odd, the only logical answer is maybe I'm setting their durability too high as you noted, I'm gonna run some tests here and I'll come up with something, TY for the feedback!
Tahvohck 15 Sep, 2022 @ 2:37pm 
I should note that this seems to maybe only be for crowbars in player inventories, and it's not entirely consistent. Ones I store in containers seem to never have this happen.
Tahvohck 15 Sep, 2022 @ 2:35pm 
I'm finding that crowbars regularly show up broken even on brand new servers. They're the only melee weapon that does this. It happens when we log out and log back in. Same deal as Antonius is having. I figured it was something to do with their basic values, maybe that they're being set way too high compared to their default values. Is it possible you're setting them so high they glitch out before they can be updated?
_Antonius_ 14 Sep, 2022 @ 7:09pm 
@Drey thanks. Least we know it was basically a false positive -- and a flaw in my testing.
Drey  [author] 11 Sep, 2022 @ 10:12pm 
@TrailerParkJesus and @_Antonius_ I found out the problem, your Crowbars are not broken, they seem to be broken because with this mod, crowbars have a value of 150 durability while the original has a value of 15. So they are not broken, they are just showing their original value (10% of the new value, or less if you've already used them) so they seem to be breaking but they are not.

But don't worry, the next time you start a new server, things will work as intended and it will show full durability as normal.
Drey  [author] 9 Sep, 2022 @ 6:27pm 
@Fire Guns durability was not changed, only melee stuff
Fire 9 Sep, 2022 @ 1:21pm 
Is there a list of what items' durabilities were changed? Especially curious about guns.
memoria 7 Sep, 2022 @ 12:17am 
I'm also getting the broken crowbars upon load in MP, also using a lot of mods (about 100)
_Antonius_ 4 Sep, 2022 @ 4:12pm 
I run a fairly extensive mod list, I could try and send you a list of my mods to help.
Drey  [author] 3 Sep, 2022 @ 12:07am 
@_Antonius_ That's odd, I'm gonna try to find out if there is some incompatibility of any kind, TY for your feedback.
_Antonius_ 2 Sep, 2022 @ 9:05pm 
I've noticed that my Crowbars are broken when I load into my MP server -- not sure why, and I don't see any errors.
HyperionSniper 21 Aug, 2022 @ 11:21am 
I repurposed this mod because I wanted different parameters for the adjustment, so I wrote a c# script to generate Adjust() functions for this mod using the tables from the PZWiki. Just in case anyone else wants to do the same; https://pastebin.com/j4c6FCfu
Underdome Riot 13 Aug, 2022 @ 11:11am 
@Drey, Thanks for the reply, it has been very detailed. Also thank you for your time and effort.
Drey  [author] 12 Aug, 2022 @ 6:13pm 
@Underdome Riot 1- What does it mean to use LUA? Well, when you edit itens in PZ via mods, there are two ways of doing it, you can edit via Lua or via .txt document, the difference is when you edit via .txt what you are doing is overwriting every single item inside that document, it's not the best way to do it, will not work on games already started and it's may be more buggy, it's just easier to mod in .txt...
When you do it via Lua code, you are editing the original item, it will work better and faster with a minimal to none chance of bugging anything.

2- It should work on a game already started, but I can't tell you exactly.

3- Yes it is compatible with 41.73 and should be with later patches *BECAUSE* it's Lua coded.
Underdome Riot 12 Aug, 2022 @ 1:42am 
Hi @Drey. First of all, great job and thanks for your effort.
I have some questions, I'm new to PZ and there are some things I don't quite understand.
What does it mean to use LUA? Can it be added to a game already started? Is it compatible with version 41.73?
Thanks a lot!

Sorry for my English.
Drey  [author] 8 Aug, 2022 @ 4:51pm 
@Falderal np don't worry, I love to do this
Falderal 7 Aug, 2022 @ 10:09pm 
@Drey Awesome, I'm glad to hear! If I knew how to code in .lua, I'd help out. I just know that it'll be a bit of a pain.
Drey  [author] 6 Aug, 2022 @ 7:14pm 
@Falderal They are similar but not identical, and Yes, it's on my plans
Falderal 5 Aug, 2022 @ 12:05pm 
Does this include a lot of similar/identical changes to Realistic Durabilities, and will you be making patch expansions for different mods that add weapons/items (Scrap Weapons/Guns, Brita's, etc.etc.)?