Project Zomboid

Project Zomboid

Lake Ivy Township
Banzaikoowaid 2021 年 8 月 7 日 下午 3:48
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.
< >
正在显示第 1 - 3 条,共 3 条留言
Holothurin 2021 年 8 月 16 日 下午 10:49 
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 2021 年 8 月 20 日 下午 10:08 
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]  [开发者] 2021 年 8 月 23 日 下午 1:42 
@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.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50