Project Zomboid

Project Zomboid

[B41] MaintenanceFIX
39 Comments
Redeye 25 Dec, 2024 @ 10:49am 
thanks man for checking. I appreciate the work you put into this, no worries. So far it's good, just needs some additional patches.
Virplexer  [author] 24 Dec, 2024 @ 12:56pm 
@Redeye after investigating, I'm pretty sure the bug this mod was patching is fixed. At least, I know it doesn't divide the maintenance mod by 2 anymore, not quite sure if it alters it when its called though. The division by 2 was causing the problem though, and without it, I'm pretty sure this mod is no longer necessary. Have a good time with B42!
Redeye 22 Dec, 2024 @ 9:29pm 
they made some changes I think, seems more important now for repairs
Virplexer  [author] 22 Dec, 2024 @ 9:21pm 
@Redeye I'll try to see if I can get an update out, if not tomorrow then probably past christmas. It should be unchanged for B42 but I'll need to gander at the source code to see if they updated the maintenance skill at all because there's a chance this mod will now be redundant.
Redeye 22 Dec, 2024 @ 6:37pm 
B42 update please?
ImRenzo 12 Oct, 2024 @ 1:27pm 
well, i'll try playing with both mods, and if any issues show up, i'll share them here. thanks for the help!
Virplexer  [author] 12 Oct, 2024 @ 12:52pm 
@ImRenzo should have no compatibility issues, my mod alters weapons when you equip them, so it should work on any melee weapon modded or otherwise.
ImRenzo 12 Oct, 2024 @ 11:40am 
does this mod work with Simple Overhaul: Melee Weapons (SOMW)?
Wkr 3 Jul, 2024 @ 8:22pm 
Nice mod :steamthumbsup:
Gamemo 24 May, 2024 @ 6:03pm 
effectively
Chop Chop 18 Feb, 2024 @ 11:55pm 
I really love this mod. I was using weapon durability mod cause i hate it when my weapon breaks in a very wrong timing. But this one is different and it really helps. Good to know as well that it works with maintenance improve repair mod. The lowkey wombo combo
Speculoos 23 Sep, 2023 @ 12:51pm 
thnx
Virplexer  [author] 22 Sep, 2023 @ 5:46pm 
@Speculoos, you aren't the first person to ask. These mods are fully compatible as they both do different things, so there shouldn't be any issues.
Speculoos 21 Sep, 2023 @ 10:09am 
Hi, thank you for this great mod.
I had a question , is this compatible with "Maintenance improves repair" ?
tnx
Virplexer  [author] 4 Aug, 2023 @ 11:19pm 
@Blue Hammersmash not sure where you get that from. Even without this mod it noticeably extends the life of weapons like knives, spears, stone axes, nailed bats, and Katanas.
Blue Hammersmash 1 Aug, 2023 @ 2:36pm 
Oh. The maintenance skill is fucking useless then.
Wondercaz 18 Jul, 2023 @ 2:01am 
sweet thanks
Virplexer  [author] 17 Jul, 2023 @ 8:25am 
@Wondercaz, yep. Tested it with the modded weapons from More Traits myself.
Wondercaz 16 Jul, 2023 @ 10:38pm 
does this mod work with modded weapons?
Virplexer  [author] 6 Jul, 2023 @ 9:24am 
@Orange Elite, looked into the mod. It actually doesn't affect durability loss, just repairs. So there should be no conflicts between the mods.
Orange Elite 4 Jul, 2023 @ 12:54pm 
@Virplexer It basically makes your maintenance skill work with repairs and durability better. higher the skill, better repairs you do and less condition you loose i think as fast as lower skills.
Virplexer  [author] 4 Jul, 2023 @ 6:20am 
@John Wayne Guan, yep. Should be okay to add and remove at any point
John Wayne Guan 4 Jul, 2023 @ 1:46am 
can i add this mid save?
Virplexer  [author] 3 Jul, 2023 @ 5:40pm 
@Orange Elite, you should be able to, although I’m not familiar with how that mod works. This mod makes no changes to any code in the game, just runs a script that sometimes adds durability to the weapon’s when you equip them, so it should be fully compatible.
Orange Elite 3 Jul, 2023 @ 10:23am 
can you use this with maintenance improves repair?
Virplexer  [author] 3 Jul, 2023 @ 6:55am 
@pzhda’tan, almost. That’s true for weapon skill, but weapons are most durable at all even maintenance levels, so 2, 4, 6, 8 and 10.
pzhda'tan 3 Jul, 2023 @ 5:14am 
So in vanilla, weapons are most durable at level 4 and 8 maintenance and weapon skill? That's a weird way of building this mechanic.
Thanks for the mod.
Virplexer  [author] 2 Jul, 2023 @ 9:54pm 
@AstrayCuriosity
Lol, yeah, zomboid code moment. Should be fixed now tho.
AstrayCuriosity 2 Jul, 2023 @ 10:56am 
Bro made a Maintenance mod for wepoans and it broke crop watering and corpse grab. :secretweapon_hoi:
Peak zomboid code moment.
Matchutchuc 2 Jul, 2023 @ 7:27am 
No problem, happy to help.
Virplexer  [author] 1 Jul, 2023 @ 9:36pm 
@Matchutchuc, thanks for your help, was able to replicate the bugs even in singleplayer. Think the mod needs better differentiation between weapons and non-weapons. I'll be opefully updating the mod with a fix soon. For now I'll add it as a known bug in the description.
Matchutchuc 1 Jul, 2023 @ 8:45pm 
Also happening when watering crops

https://pastebin.com/SmhRkQPK
Matchutchuc 1 Jul, 2023 @ 2:29pm 
Nevermind, I guess it occurs everytime I grab a corpse? Here's another log

https://pastebin.com/pxr9v4mF

This is a different error though, I don't know exactly what cause the one I posted earlier (was looting some corpses, maybe ripping some clothes? Don't really remember)
Matchutchuc 1 Jul, 2023 @ 2:21pm 
The error occurred twice, and I don't remember the exact circumstances. Should it happen again, I will pay more attention and write it here. The only thing that comes to mind is that one time I was grabbing a zombie corpse and it occurred, and I had a crowbar equipped.
Virplexer  [author] 1 Jul, 2023 @ 12:37pm 
@Matchutchuc, is there anything you can tell me about the circumstances of the error? are you able to repeat it? what weapon did you equip?
Matchutchuc 1 Jul, 2023 @ 12:30pm 
(2/2)
...
at zombie.network.PacketTypes$PacketType.onMainLoopHandlePacketInternal(PacketTypes.java:1028)
at zombie.network.GameClient.mainLoopHandlePacketInternal(GameClient.java:644)
at zombie.network.GameClient.mainLoopDealWithNetData(GameClient.java:621)
at zombie.network.GameClient.update(GameClient.java:431)
at zombie.GameWindow.logic(GameWindow.java:232)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`
Matchutchuc 1 Jul, 2023 @ 12:30pm 
Getting some non-game-breaking error in MP (1/2):

`function: ReMaintenance -- file: MaintenanceFix.lua line # 23 | MOD: MaintenanceFix
java.lang.RuntimeException: Object tried to call nil in ReMaintenance
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:971)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:134)
at zombie.characters.IsoGameCharacter.setPrimaryHandItem(IsoGameCharacter.java:2959)
at zombie.network.GameClient.receiveEquip(GameClient.java:3897)
...
yes 30 Jun, 2023 @ 8:50am 
Modders should be the ones getting paid for fixing this mess of a game. Good one.
Virplexer  [author] 29 Jun, 2023 @ 6:52am 
@P1azma, SORRY FOR DELETING YOUR COMMENT, fat fingered the button on mobile.

To answer your question, it should, as long as the weapon falls into one of the 6 weapon skills the game provides. I personally tested it with some of the items from MoreTraits for example.