Project Zomboid

Project Zomboid

Better Batteries
dtoxic 2023 年 2 月 12 日 下午 3:00
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
< >
正在显示第 1 - 3 条,共 3 条留言
pwrcosmic  [开发者] 2023 年 2 月 15 日 上午 8:00 
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 2023 年 3 月 20 日 上午 11:27 
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
最后由 dtoxic 编辑于; 2023 年 3 月 20 日 上午 11:50
Chaos234 2023 年 10 月 8 日 下午 6:40 
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.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50