Project Zomboid

Project Zomboid

Maximum Display Bars (B41)
FatherSarge 27 Apr, 2023 @ 5:01pm
Bug Report (maybe?)
I'm debugging server settings for a new server (will be dedicated, but using local host atm) and got this error:

attempted index: isLocalPlayer of non-table: null LOG : General , 1682639758719> 0> ----------------------------------------- STACK TRACE ----------------------------------------- function: OnLocalPlayerDisconnect -- file: Minimal Display Bars (A).lua line # 2630 | MOD: Maximum Display Bars ERROR: General , 1682639758720> 0> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isLocalPlayer of non-table: null at KahluaThread.tableget line:1689. ERROR: General , 1682639758720> 0> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: attempted index: isLocalPlayer 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:65) at zombie.network.GameClient.update(GameClient.java:355) at zombie.GameWindow.logic(GameWindow.java:232) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:681) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source) LOG : General , 1682639758722> 0> ----------------------------------------- STACK TRACE ----------------------------------------- function: OnLocalPlayerDisconnect -- file: Minimal Display Bars (A).lua line # 2630 | MOD: Maximum Display Bars

A crash accompanies this error but I'm unsure if they are related. Figured I'd let you know.

Oh and as far as I know no mod conflict is occurring, not running minimal display bars or anything. I use a very similar modlist on solo without issue.
Last edited by FatherSarge; 27 Apr, 2023 @ 5:02pm
< >
Showing 1-2 of 2 comments
Dr. Lalaoz  [developer] 13 May, 2023 @ 3:29pm 
i just found this, not sure why steam didnt notify me.
whatever glitch your seeing is probably a one time thing.
that function is specifically for deleting the additional info for split screen play when one of the players disconnects.
the error is basically saying that someone left the server, but it doesnt know who. so it errors out because it cant index nothing as a part of the isLocalPlayer() function.

if you figure out how to consistently recreate it let me know, if your not worried about verifying game files then i would try that. recently had a friend who couldn't use debug mode properly because some of his files were corrupted.
Shocker 17 Feb, 2024 @ 7:47pm 
Originally posted by Dr. Lalaoz:
i just found this, not sure why steam didnt notify me.
whatever glitch your seeing is probably a one time thing.
that function is specifically for deleting the additional info for split screen play when one of the players disconnects.
the error is basically saying that someone left the server, but it doesnt know who. so it errors out because it cant index nothing as a part of the isLocalPlayer() function.

if you figure out how to consistently recreate it let me know, if your not worried about verifying game files then i would try that. recently had a friend who couldn't use debug mode properly because some of his files were corrupted.


Hey I had the same error as him, and the process to repeat it is simple, while you have this mod try to close project zomboid in a non-normal way (of course you must be in a game connected and playing, not in the menu.). For example, from the task manager, alt+f4 or... as it happened to me with a blue screen.

Once you have this error your character is corrupted, the only way out is to delete it or delete the mod. if you take out the mod, you enter the server again to "save your character" and then put the mod. The same error will appear, it is corrupted.
The world itself is open and functional, but since this error only covers the player, it prevents you from entering the world.
< >
Showing 1-2 of 2 comments
Per page: 1530 50