Project Zomboid

Project Zomboid

Lake Ivy Township
Banzaikoowaid 7 Aug, 2021 @ 3:48pm
8/7/2021-Double Stack Trace on Build 41.53-Possible Bug
Here is the log, copy pasted as is from console.txt (Both stack traces are identical, hence I only copy and pasted one):

LOG : General , 1628374769826> -----------------------------------------
STACK TRACE
-----------------------------------------
function: li_townshipmapDistribution.lua -- file: li_townshipmapDistribution.lua line # 3

ERROR: General , 1628374769827> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: shelvesmag of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1628374769827> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: shelvesmag of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:525)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:476)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:324)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:251)
at zombie.gameStates.GameLoadingState.enter(GameLoadingState.java:91)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:285)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:726)
at zombie.GameWindow.run_ez(GameWindow.java:642)
at zombie.GameWindow.mainThread(GameWindow.java:471)
at java.base/java.lang.Thread.run(Unknown Source)

This contributed to a crash, despite being nowhere near Lake Ivy Township, as I crashed entering into the vanilla Country Club area.
< >
Showing 1-3 of 3 comments
Holothurin 16 Aug, 2021 @ 10:49pm 
That's not crash related. It's the usual error about the Lake Ivy Map not being distributed inworld after 41.52 and safe to ignore (unless you want that map).
Holothurin 20 Aug, 2021 @ 10:08pm 
Replace the content of li_townshipmapDistribution.lua with this. That should work:



require 'Items/ProceduralDistributions.list'

table.insert(ProceduralDistributions.list["MagazineRackMaps"].items, "Base.li_townshipmap");
table.insert(ProceduralDistributions.list["MagazineRackMaps"].items, 4);

table.insert(ProceduralDistributions.list["StoreShelfMechanics"].items, "Base.li_townshipmap");
table.insert(ProceduralDistributions.list["StoreShelfMechanics"].items, 1);
[D-FENS]  [developer] 23 Aug, 2021 @ 1:42pm 
@Holothurin -I just tried it out and it works. No more error on load and the map actually distributes in the world. I really appreciate the help.
< >
Showing 1-3 of 3 comments
Per page: 1530 50