Project Zomboid

Project Zomboid

162 ratings
B42 Battery Drain Fix
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
26.507 KB
4 Jan @ 10:40pm
1 Change Note ( view )

Subscribe to download
B42 Battery Drain Fix

Description
Fixes an issue in B42 that causes batteries to drop to 16% charge after saving and loading the game, as well as affecting car batteries and propane lantern refills.

NOTE: this fix only gets applied to new items; existing items will still have the issue if recharged.

Credit for working out the bug relates to the
UseDelta value giving an object more than 32767 uses goes to LightJa on the bug report forums: bug report for this issue[theindiestone.com].


Other Related mods:

Amount Loss Fix by Yawntee, which is a change to the java code to fix the issue instead of a lua workaround. Requires additional manual steps to install/uninstall, but cover more situations than the save/load of the three items this mod fixes.

B42 Thread Consolidation Fix by LightJa fixes a separate bug that drains consumables when combining them.


Technical stuff:

This mod changes the UseDelta for newly generated batteries from 0.000005 to 0.00005 (200,000 used to 20,000.) Car Batteries and propane lantern refills are changed from 0.00001 to 0.00005 (100,000 to 20,000)

Still being tested but seems OK so far: making sure this doesn't cause unintended issues with car batteries draining too quickly.


Workshop ID: 3400920118
Mod ID: NepB42BatteryFix
44 Comments
Marcayde 2 hours ago 
i was wondering why my box of recently opened batteries was all drained, this explains it
Midnight 3 hours ago 
not all heroes wear capes
Sick Boy 11 hours ago 
It's nice the community fixes their game for them.
cherry-wave 12 hours ago 
does it work for propane TANKs too? bc this is a huge problem for me D=
Alt Cut | #FreeLuigi 13 hours ago 
does anyone know if this works with a mod that extends the life of batteries?
F1tgal911 7 Jan @ 10:26pm 
"Draining list" B42.0.2:
- batteries (green)
- car batteries
- welding torch
- propane tank
- bucket of clay cement
- bucket of concrete
Rodjir 7 Jan @ 6:59pm 
thank you for this was looking for a fix
Gor 7 Jan @ 12:14pm 
For anyone looking for a debug menu to spawn item that isn't supper distracting (and doesn't require "-debugmode"), try this:

https://steamoss.com/sharedfiles/filedetails/?id=3386556284

Thumbnail doesn't look like it, but it is in English and works great!
@F1tgal911 same, for concrete bucket as well
F1tgal911 7 Jan @ 11:41am 
By the way:
The "drain" also happens to "Buckets of Clay Cement". At least for me.