Project Zomboid

Project Zomboid

[B41 MP only] bikinitools: Server Edition
barb 23 Nov, 2024 @ 10:14am
Garage door issues
Hi there! Loving all the updates. The UI's super smooth. I know this is a labor of love.

We've been having a few issues since the most recent update with broken garage doors/gates. I've put the errors below and can provide more detailed logs directly if you need. Just let me know. Thank you again!

function: rebuildDoorIfNecessary -- file: DoorRepair.lua line # 215 | MOD: bikinitools [SE] 130: Keypad locks
function: onLoadSprite -- file: PARP_Locks_Server.lua line # 16 | MOD: bikinitools [SE] 130: Keypad locks
function: sprite -- file: PARP_Locks_Server.lua line # 25 | MOD: bikinitools [SE] 130: Keypad locks

ERROR: General , 1732176817477> 151,236,943> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in rebuildDoorIfNecessary at KahluaUtil.fail line:82.
ERROR: General , 1732176817477> 151,236,943> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in rebuildDoorIfNecessary
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
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.MapObjects.loadGridSquare(MapObjects.java:187)
at zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.java:3331)
at zombie.network.ServerMap$ServerCell.RecalcAll2(ServerMap.java:304)
at zombie.network.ServerMap$ServerCell.Load2(ServerMap.java:162)
at zombie.network.ServerMap.preupdate(ServerMap.java:812)
at zombie.network.GameServer.main(GameServer.java:876)
LOG : General , 1732176817477> 151,236,943> -----------------------------------------
STACK TRACE
-----------------------------------------
function: rebuildDoorIfNecessary -- file: DoorRepair.lua line # 215 | MOD: bikinitools [SE] 130: Keypad locks
function: onLoadSprite -- file: PARP_Locks_Server.lua line # 16 | MOD: bikinitools [SE] 130: Keypad locks
function: sprite -- file: PARP_Locks_Server.lua line # 25 | MOD: bikinitools [SE] 130: Keypad locks

LOG : General , 1732176817477> 151,236,944> -----------------------------------------
STACK TRACE
-----------------------------------------
function: rebuildDoorIfNecessary -- file: DoorRepair.lua line # 215 | MOD: bikinitools [SE] 130: Keypad locks
function: onLoadSprite -- file: PARP_Locks_Server.lua line # 16 | MOD: bikinitools [SE] 130: Keypad locks
function: sprite -- file: PARP_Locks_Server.lua line # 25 | MOD: bikinitools [SE] 130: Keypad locks

ERROR: General , 1732176817477> 151,236,944> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in rebuildDoorIfNecessary at KahluaUtil.fail line:82.
ERROR: General , 1732176817478> 151,236,944> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in rebuildDoorIfNecessary
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
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.MapObjects.loadGridSquare(MapObjects.java:187)
at zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.java:3331)
at zombie.network.ServerMap$ServerCell.RecalcAll2(ServerMap.java:304)
at zombie.network.ServerMap$ServerCell.Load2(ServerMap.java:162)
at zombie.network.ServerMap.preupdate(ServerMap.java:812)
at zombie.network.GameServer.main(GameServer.java:876)
LOG : General , 1732176817478> 151,236,944> -----------------------------------------
STACK TRACE
-----------------------------------------
function: rebuildDoorIfNecessary -- file: DoorRepair.lua line # 215 | MOD: bikinitools [SE] 130: Keypad locks
function: onLoadSprite -- file: PARP_Locks_Server.lua line # 16 | MOD: bikinitools [SE] 130: Keypad locks
function: sprite -- file: PARP_Locks_Server.lua line # 25 | MOD: bikinitools [SE] 130: Keypad locks
Last edited by barb; 23 Nov, 2024 @ 11:55am
< >
Showing 1-4 of 4 comments
Coot 23 Nov, 2024 @ 12:16pm 
I'm having to fix a dozen desync gates a day with the keypad issue, its driving us nuts.
Last edited by Coot; 23 Nov, 2024 @ 12:16pm
bikinihorst  [developer] 26 Nov, 2024 @ 8:17am 
Originally posted by Black Flag Forge:
I'm having to fix a dozen desync gates a day with the keypad issue, its driving us nuts.

what's driving me nuts is people insisting that "the recent update" changed the locks submod which it did not. i checked on git and there are only a few lines changed, almost all of them a change of "ipairs" to "BTSE:ipairs" iterator which i changed globally and me registering a mod icon for the UI.

i am sorry you are experiencing this but this is either an interaction with another mod updating at roughly the same time or data loss


Originally posted by barb:
(stack traces)

thank you for the kind words and the traces. what i can see in them is that the rebuild is attempted but the wall object does not have "getNorth" available which leads to the error.

sounds like the keypad wall sprite being used has incomplete definitions or has some weird tile flags set.

i will be adding a few checks for the sprite in the offending code so it doesn't crash but that will probably mean no automatic rebuild. if a sprite doesn't know how its direction is aligned there's not much else i can do.



if you're still getting errors, try disabling the option NewKeypadWallMethod ("Use brush tool wall placement method") in the sandbox options.
Last edited by bikinihorst; 26 Nov, 2024 @ 8:24am
Coot 26 Nov, 2024 @ 1:24pm 
Totally fair BH, correlation is not causation.

Edit: and to be more clear, meant that the tickets from my users were bothering me more than the bug.
Last edited by Coot; 26 Nov, 2024 @ 1:26pm
I am getting this issue to did you find a fix? Also you u got up to the bugged gate and interact with it, it will cause everyone's game to crash in a close proximity.
< >
Showing 1-4 of 4 comments
Per page: 1530 50