Project Zomboid

Project Zomboid

Refurbish (repair stacks begone!)
35 Comments
Pastor Of Pwn 19 Jun @ 11:38am 
B42 please. All the mods that deal with repair counters don't work in B42. It is literally my least favorite game mechanic and there's no way to sandbox around it.
Crono 2 May @ 2:26pm 
Please update for B42, it would be highly appreciated. :steamthumbsup:
GAT-A 3 Nov, 2024 @ 3:25pm 
Really great mod, I just feel like the car refurbishing is way too unbalanced and easy.

One screw and a little time for a 40% repair and resetting repair stacks is crazy easy.

Should be 10 screws atleast, maybe a little scrap metal too.
Moskorism 16 Oct, 2023 @ 12:29am 
Possibly the most useful mod I have installed on the workshop. To be able to repair from weaponry to vehicle parts. This is going to remain a permanent stay in my load order. Absolute kudos to you.
Ryntra7 2 Apr, 2023 @ 2:25am 
Is there anyway to make this work on car part you can't remove? (like a trunk)
RUN 90s 10 Mar, 2023 @ 9:57pm 
It seems like I cannot refurbish guns because I've installed Vanilla Weapons Expanded that make Toothbrush count as weapon rather than Items, but anyway this is a good mod to fix almost all of melee weapons!
장포스 6 Feb, 2023 @ 1:31am 
i want to translate this mod, can you add translate folder, and make EN or any language?
Eurasian Ivan 13 Dec, 2022 @ 6:25am 
despite using this mod in a server im active in,would be nice for a more nerfed version of this for *in server balancing reasons* and for longevity sessions
Royboysims7 1 Jul, 2022 @ 1:35pm 
bit OP for car parts and weapons, one screw and rag respectively, still love it tho nice work mate :)
Aux_Tism 27 Jun, 2022 @ 10:36pm 
Pog mod :GunfireRebornhandsup:
Metrunuituraga [ARG] 15 Jun, 2022 @ 11:55pm 
@Checkered Scones
I have been playing with it, both SP and MP, and it works perfectly. Had no trouble so far even running together with other mods.
Hope it helps!
Checkered Scones 15 Jun, 2022 @ 12:00pm 
the mod hasn't been updated in months and you prefer to ignore me rather than answer a question we don't know
ToastyCosty  [author] 15 Jun, 2022 @ 5:32am 
@Metrunuituraga [ARG] Thanks! feel free to edit the mod as you seem fit!
Metrunuituraga [ARG] 14 Jun, 2022 @ 6:43pm 
Hey there!
Loving the mod, it's a nice addition.
I modified it so it, for guns, it accepts sturdy sticks and ripped sheets instead of toothbrushes. It made a bit more of sense >:D.
Thank you!
Checkered Scones 2 Jun, 2022 @ 1:41pm 
Has this still been tested and works?
Starfoth The Burgundy Silk Rug 28 May, 2022 @ 12:51pm 
Even vanilla items and I'm not sure what could cause this
Starfoth The Burgundy Silk Rug 28 May, 2022 @ 12:51pm 
I don't have the option to refurbish anything. I have all the stuff needed such as rods, propane, maintenance level 7, toothbrush, cloth, screws, screwdriver, yet I cannot refurbish anything
Green Slime 10 May, 2022 @ 6:32am 
came back and looked for refurbish car parts mods, I forgot this mod includes that. Best mod btw.
Green Slime 22 Apr, 2022 @ 9:03am 
Does this work with modded weapons?
I have Brita's Weapons Pack and Scrap Weapons, along with More Spears Mod
Tchernobill 15 Apr, 2022 @ 1:11pm 
@ToastyCosty thanx for the tip on character save.
@Robert J. Sullivan You can decompile java code to see what java interface you can use in your lua mods. Have fun.
Succundo 12 Jan, 2022 @ 12:59am 
I like what this mod does, but will it ever work for car doors and hoods?
TheHourMan 9 Jan, 2022 @ 2:25pm 
I found the issue. Weirdly enough it was just that when I added it to my server, it never subbed. I forced it to sub then it worked like a charm :)
ToastyCosty  [author] 9 Jan, 2022 @ 1:07pm 
@TheHourMan i'll check, thanks for the heads up
TheHourMan 9 Jan, 2022 @ 8:38am 
This mod does not seem to be working in the current stable build.
TheHourMan 1 Jan, 2022 @ 5:59pm 
@Robert Did you ever make a mod for removing the penalty yet? I will 100% sub to that
Walter White 22 Dec, 2021 @ 3:42am 
Thanks for the tip. I spent some time yesterday looking more into the files and it seems the formula is inside FixingManager.class so yeah looks like that's a dead end. Your idea seems much more doable and simpler through the lua files so I'll look into it at some point. Thanks.
ToastyCosty  [author] 22 Dec, 2021 @ 12:31am 
@Robert J. Sullivan the formula is probably stored inside some class file, plus the UI that calculates the repair amount would need to be changed too, it's not an easy task.

You could edit the repairAction and set the item's repair stacks to 1 (1 is for an item that never got repaired) before actually repairing it, and just before the function ends set it back to it's previous value + 1, that way you repaired a "pristine" version of your item with full benefits but still kept the repair counter.

This kinda goes around the problem without solving it but i'd say it's just 3 lines of code and almost does what you want.
Walter White 21 Dec, 2021 @ 12:08am 
Thanks for making this mod. I would like at some point to remove the repair stacks penalty altogether. However I wouldn't know where to look first.

I have looked into the code and seen the HaveBeenRepaired function you used, I searched for every occurence of it in the lua files and the only one I found was in the TimedActions folder which doesn't seem right. The other occurence is inside a .class file which I can't read. Would you know where should I look first ? The simplest idea that I have would be just to modify the penalty "formula" so that repair count still increments but the penalty is basically 0. Thanks again for making the mod, it's a great help in the meantime.
animecentral 12 Nov, 2021 @ 12:32am 
Ha! True about the documentation. Back when I was more actively modding, I resorted to spelunking into the binary to find out how things actually work. As for identifying car parts, POET's vehicle tiered icons has a list, and I think ItemTweaker may have that function. I can't remember.
ToastyCosty  [author] 12 Nov, 2021 @ 12:15am 
@animecentral while i agree with you that vehicle parts refurbishing is busted (if i remember correctly 40% repair for 1 screw) they currently fall into the "not a melee weapon" and "not a firearm" category in my code, as i don't have a way to differentiate them from mundane items.

My only problem is that i'm not aware of a function that tells me if an item is a vehicle part or not (something similar to isAimedFireArm() and getCategory() ) and since there is fuckall documentation i can only try to check the existing code and hope for the best.

I also want to keep this as mod-friendly as possible so i can't make a list of vehicle parts to check because that would make custom vehicle parts count as normal items, thus sovling the problem only for vanilla items

I'll gladly add a vehicle category once i find the correct functions
animecentral 11 Nov, 2021 @ 9:22pm 
Otherwise, loving this mod:steamthumbsup:
animecentral 11 Nov, 2021 @ 9:20pm 
Currently overpowered for vehicle parts (1 screw).
May I suggest:
Bodywork: 10 scrap metal, 1 metal sheet, 1 metal bar, 8 screws, 2 units of wire, 2 units of propane and a unit of any paint.
Tires: 10 duct tape, 20 denim strips, 6 pairs of shoes, 10 unusable metal, 2 bottles glue.
Windows: Chisel for tool?, a unit of water and a dishcloth (to clean the cracks), bottle of normal glue, 1 scotch tape, 2 credit cards
Mufflers: 10 scrap metal, 2 metal pipes, some silver jewellery (should be platinum, but I don't think we have any), a rope and 5 units of propane.
Seats: 2 units of wire, 4 screws, 10 ripped sheets, 6 ripped leather, 4 thread.
Brakes: 1 washing liquid, 3 water, duct tape (hydraulics), 2 scrap metal (calipers), 1 charcoal, 1 scrubber.
Suspension: 1 metal bar, 2 scrap metal, 2 units welding rod, 2 units propane 4 units charcoal. Needs campfire with Hammer, Rope and Sturdy stick. Not consumed.

All based on real solutions
ToastyCosty  [author] 5 Nov, 2021 @ 4:07am 
@animecentral should work with any item that has a condition bar (except clothes), regardless if it is vanilla or modded
animecentral 5 Nov, 2021 @ 3:49am 
Interesting. Would make playing on low resources more viable. I'll give it a go. Does it work with Brita's weapon pack?
adres4t 4 Nov, 2021 @ 12:04pm 
Interesting idea.