Project Zomboid

Project Zomboid

Better Batteries
dtoxic Feb 12, 2023 @ 3:00pm
Error
Got another error for you,i don't have the time to test it in more detail,i will let you know what i find in a day or two


function: EditRecipes -- file: RecipeUpdates.Lua line # 85 | MOD: Better Batteries

ERROR: General , 1676242578497> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getTypeString of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1676242578497> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getTypeString of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
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:92)
at zombie.world.moddata.GlobalModData.init(GlobalModData.java:53)
at zombie.iso.IsoWorld.init(IsoWorld.java:2438)
at zombie.gameStates.GameLoadingState$1.runInner(GameLoadingState.java:268)
at zombie.gameStates.GameLoadingState$1.run(GameLoadingState.java:225)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1676242578523> -----------------------------------------
STACK TRACE
-----------------------------------------
function: EditRecipes -- file: RecipeUpdates.Lua line # 85 | MOD: Better Batteries
< >
Showing 1-3 of 3 comments
pwrcosmic  [developer] Feb 15, 2023 @ 8:00am 
I looked into it briefly, it seems that it can't find a result item in a recipe which is.. awfully strange. Either the recipe is linking to a result that doesn't exist, or a result simply wasn't provided, and it's throwing off the whole system. I'll add a sanity check sooner or later, thank you for reporting!
dtoxic Mar 20, 2023 @ 11:27am 
Commenting out the whole section from line 85 i can remove batteries from hand crank but they cannot be inserted,if it's left as is then you cannot remove the battery at all,i just stumbled upon this while playing

Edit: Also someone in the comments mentioned that removing battery from Authentic Z flashlights destroys the flashlight,i can confirm this on Authentic Z Lite,don't know what happens on other branches of the mod
Last edited by dtoxic; Mar 20, 2023 @ 11:50am
Chaos234 Oct 8, 2023 @ 6:40pm 
Any updates on this yet? This error seems only to be raised when I try to start a MP World (doesn't matter how the server is hosted) but when I look into my own client log I can't see any errors from your mod.
< >
Showing 1-3 of 3 comments
Per page: 1530 50