Project Zomboid

Project Zomboid

55 ratings
Vanilla Bugfixes
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
509.002 KB
7 Oct @ 12:38am
20 Oct @ 8:44am
17 Change Notes ( view )

Subscribe to download
Vanilla Bugfixes

In 1 collection by TwisTonFire
[BUILD 42] TwisTonFire
20 items
Description
I develop mods exclusively for Build 42
As for me, Build 41 is end-of-life. I’m not interested in maintaining mods for a game version I don’t use, don’t plan to test, and don’t want to keep a separate install for.


Check out my other mods!


⚠️⚠️MOD LOAD ORDER:-->ON THE TOP<--⚠️⚠️
THIS MOD NEEDS TO BE ON THE TOP OF YOUR MOD LOAD ORDER


Vanilla Bugfixes — What this mod does

Air-swing durability: Fixed an issue where, after hitting a door or a zombie, subsequent swings with the same weapon could still roll durability loss even when hitting nothing (air swings). Air swings no longer consume durability.

Spear Maintenance Logic: Implements an emulated fix that treats spears as melee for durability checks, restoring the Maintenance perk’s chance to prevent condition loss and stopping the “multiple points per hit” issue. This is a Lua-level workaround—the root cause lives in Java and isn’t accessible to modders. It does not change base weapon damage or durability values; it only corrects how durability loss is evaluated.

This mod intentionally overrides vanilla game files (100%). Place it at the very top of your load order.
It is only active on Build 42.12.1. If a newer game version is released, this mod will not load;
I’ll publish an updated version.

You can add or remove it whenever you like—these are purely technical fixes and won’t impact your save.
Just make sure it loads before all your other mods; otherwise, some of your other mods may not appear in-game.

TL;DR — Fixes included
  • Blade sharpening (with handles) works again—now capped by blade/head condition and no longer downgrades the handle.

  • Air swings no longer consume durability.

  • Corrected spear classification so spears are treated as melee weapons

  • Fixes a vanilla timing bug where backpacks vanish from the inventory bar after closing the Options menu by scheduling a one-time delayed inventory refresh.

  • Vehicles (Server/Logic): Corrected battery charge math (no double-delta), fixed door/window entry scans (off-by-one & nil guards), preserved tap vs. long-press intent, and allowed Mechanics ≥ 3 to swap a battery with the engine running. -

    Why this change? I’m a trained automotive mechanic, and in the ’90s this was a common workaround. To be clear, that context applies to the 1990s only—I don’t recommend it on modern vehicles.

  • XP / Recipes: Set the Generator knowledge recipe to unlock at Electricity 3 (matching intent) instead of Mechanics 3.

  • Foraging / Search Manager: Stronger nil guards and flag checks, correct icon-affinity pools, consistent Z-level forwarding, fixed operator precedence for disable logic, reliable force-find distance, and “move near player” works even with a single candidate.


⚠️ My mod can’t intercept weapon damage when the vanilla engine applies it—even if that trigger is incorrect. What it does is detect illegitimate durability losses and immediately roll them back, restoring the weapon’s condition.

Since I can’t modify the Java side, this is a reliable Lua-based workaround. The only thing it can’t reverse is the final durability tick that breaks the weapon—that one is irreversible.

⚠️To clarify: if your weapon-durability mod shows that your weapon mistakenly lost condition after an air swing, my mod has already restored it.

I reverted the maintenance xp solution for air swings - because spears didn't get any maintenance xp afterwards.


⚠️⚠️MOD LOAD ORDER:-->ON THE TOP<--⚠️⚠️
THIS MOD NEEDS TO BE ON THE TOP OF YOUR MOD LOAD ORDER


Workshop ID: 3582242778
Mod ID: twistvbugfix
56 Comments
TwisTonFire  [author] 1 hour ago 
@d4r7 unfortunately not I have to say. I looked into it. But it's another java issue. I could try something - but that would be inbalanced for a vanilla playthrough. For now I just hope they'll fix it faster. This is a very annoying bug.
d4r7 1 hour ago 
You are managing to be more efficient than the developers at the moment... Can you solve the problem in the new vanilla version where logs, branches, stones and other materials collectable from the ground do not spawn in new worlds?
TwisTonFire  [author] 21 hours ago 
And for now: Don't throw throwables, I don't know if my mod could cause a crash because of it. I never thought about throwables. So just don't use them for now, the bug could even be vanilla, I haven't tested throwables at all.
TwisTonFire  [author] 20 Oct @ 8:46am 
This mod fixes still all the bugs in 42.12.2 but you need to activate it once more.
TwisTonFire  [author] 20 Oct @ 12:59am 
Oh okay, I never thought about throwing a molotov.
Just don't throw throwables while using this mod ok?
Stay normal! :D A vanilla patch should be on its way. Fixing that aswell would break me right now.
DraXteR 20 Oct @ 12:55am 
after installing this mod game starts crashing when throwing a molotov. at the moment of throwing molotov game freezes then black screen and to main menu
Jiopaba 18 Oct @ 8:43am 
I feel like this Spear thing has been driving you nuts this week lmao. Hopefully it turns out to be something TIS can fix on their end and free us from this petty curse.
Zara ♡ 18 Oct @ 8:18am 
Yes gun lights have been broken for a while now. It is a known bug. When TIS will fix it? Who knows lol

Anyways, thank you TwisTon! Really helpful. I’m a spear lover lol
TwisTonFire  [author] 18 Oct @ 6:02am 
Even I don't know every bug that is currently live. But I would like to share you a link to the indiestone bug report forum, maybe you'll find something there!

https://theindiestone.com/forums/index.php?/forum/85-bug-reports/
明明灭灭 18 Oct @ 5:56am 
I'd like to ask if there's a bug with gun lights (firearm attachments) in the vanilla game. Previously in the game, I noticed that the light installed on my pistol would disappear after a certain period of time. Trying to toggle the light on and off didn't work, and replacing the batteries didn't fix it either. Even after removing all my other mods, similar issues still occurred.