Project Zomboid

Project Zomboid

Refurbish (repair stacks begone!)
35 kommentarer
Pastor Of Pwn 19. juni kl. 11:38 
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. maj kl. 14:26 
Please update for B42, it would be highly appreciated. :steamthumbsup:
GAT-A 3. nov. 2024 kl. 15:25 
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. okt. 2023 kl. 0:29 
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 kl. 2:25 
Is there anyway to make this work on car part you can't remove? (like a trunk)
RUN 90s 10. mar. 2023 kl. 21:57 
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 kl. 1:31 
i want to translate this mod, can you add translate folder, and make EN or any language?
Eurasian Ivan 13. dec. 2022 kl. 6:25 
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. juli 2022 kl. 13:35 
bit OP for car parts and weapons, one screw and rag respectively, still love it tho nice work mate :)
Aux_Tism 27. juni 2022 kl. 22:36 
Pog mod :GunfireRebornhandsup:
Metrunuituraga [ARG] 15. juni 2022 kl. 23:55 
@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. juni 2022 kl. 12:00 
the mod hasn't been updated in months and you prefer to ignore me rather than answer a question we don't know
ToastyCosty  [ophavsmand] 15. juni 2022 kl. 5:32 
@Metrunuituraga [ARG] Thanks! feel free to edit the mod as you seem fit!
Metrunuituraga [ARG] 14. juni 2022 kl. 18:43 
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. juni 2022 kl. 13:41 
Has this still been tested and works?
Starfoth The Burgundy Silk Rug 28. maj 2022 kl. 12:51 
Even vanilla items and I'm not sure what could cause this
Starfoth The Burgundy Silk Rug 28. maj 2022 kl. 12:51 
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. maj 2022 kl. 6:32 
came back and looked for refurbish car parts mods, I forgot this mod includes that. Best mod btw.
Green Slime 22. apr. 2022 kl. 9:03 
Does this work with modded weapons?
I have Brita's Weapons Pack and Scrap Weapons, along with More Spears Mod
Tchernobill 15. apr. 2022 kl. 13:11 
@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 kl. 0:59 
I like what this mod does, but will it ever work for car doors and hoods?
TheHourMan 9. jan. 2022 kl. 14:25 
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  [ophavsmand] 9. jan. 2022 kl. 13:07 
@TheHourMan i'll check, thanks for the heads up
TheHourMan 9. jan. 2022 kl. 8:38 
This mod does not seem to be working in the current stable build.
TheHourMan 1. jan. 2022 kl. 17:59 
@Robert Did you ever make a mod for removing the penalty yet? I will 100% sub to that
Heisenberg 22. dec. 2021 kl. 3:42 
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  [ophavsmand] 22. dec. 2021 kl. 0:31 
@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.
Heisenberg 21. dec. 2021 kl. 0:08 
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 kl. 0:32 
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  [ophavsmand] 12. nov. 2021 kl. 0:15 
@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 kl. 21:22 
Otherwise, loving this mod:steamthumbsup:
animecentral 11. nov. 2021 kl. 21:20 
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  [ophavsmand] 5. nov. 2021 kl. 4:07 
@animecentral should work with any item that has a condition bar (except clothes), regardless if it is vanilla or modded
animecentral 5. nov. 2021 kl. 3:49 
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 kl. 12:04 
Interesting idea.