Project Zomboid

Project Zomboid

Lantern
Kyrox 27. sep. 2022 kl. 9:08
Help with LUA Error
Hello. I reported the following stack trace to the Blacksmith mod author. This LUA error happens every single time I right click a radio. The author responded and said it had something to do with the "Lantern" mod? I am not sure why. However he recommended that I report this to you.
--------------------------------------------------

-----------------------------------------
function: doBuildMenu -- file: ISTakeBarrelMenu.lua line # 29 | MOD: Blacksmith
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@941df8e0
function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1532 | Vanilla
function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 35 | MOD: Lantern
function: createMenu -- file: ISMenuContextWorld.lua line # 50 | Vanilla
function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla
function: doRClick -- file: ISObjectClickHandler.lua line # 60 | Vanilla
function: onObjectRightMouseButtonUp -- file: ISObjectClickHandler.lua line # 369 | Vanilla

ERROR: General , 1664294732151> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getProperties of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1664294732151> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getProperties 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:214)
at zombie.Lua.LuaEventManager.triggerEventGarbage(LuaEventManager.java:228)
at zombie.Lua.LuaManager$GlobalObject.triggerEvent(LuaManager.java:3005)
at jdk.internal.reflect.GeneratedMethodAccessor1149.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
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:173)
at zombie.ui.UIManager.update(UIManager.java:931)
at zombie.GameWindow.logic(GameWindow.java:261)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:764)
at zombie.GameWindow.run_ez(GameWindow.java:666)
at zombie.GameWindow.mainThread(GameWindow.java:494)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1664294732153> -----------------------------------------
STACK TRACE
-----------------------------------------
function: doBuildMenu -- file: ISTakeBarrelMenu.lua line # 29 | MOD: Blacksmith
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@941df8e0
function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1532 | Vanilla
function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 35 | MOD: Lantern
function: createMenu -- file: ISMenuContextWorld.lua line # 50 | Vanilla
function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla
function: doRClick -- file: ISObjectClickHandler.lua line # 60 | Vanilla
function: onObjectRightMouseButtonUp -- file: ISObjectClickHandler.lua line # 369 | Vanilla

LOG : General , 1664294733371> EXITDEBUG: setGameSpeed 1
LOG : General , 1664294733371> EXITDEBUG: setGameSpeed 3

---------------------------------------------------------------------------------------------
Sidst redigeret af Kyrox; 27. sep. 2022 kl. 9:10
< >
Viser 1-6 af 6 kommentarer
Kyrox 27. sep. 2022 kl. 9:09 
soulfilcher [developer] Sep 26 @ 8:10am
"You might want to take a look at that Lantern mod. file: LTN_SL_ISWorldObjectContextMenu.lua line # 35 it should not be taking part there."

Kyrox has Project Zomboid 1 hour ago
"Would you recommend I report it to the Lantern mod author? I apologize, I'm not really able to decipher this wall of text."

soulfilcher [developer] 24 minutes ago

"That might help find why this is happening. Because my mod has nothing to do with radios so my guess is that his code is interfering somehow."
bikinihorst 22. maj 2023 kl. 1:24 
I have been getting these reports as well. Every time a hook is made into ISWorldObjectContextMenu.createMenu it will break because the number of arguments differs from the original function. Hooks are written with the original parameters in mind.

This mod is calling the context menu with a different amount of parameters (even if it is the param "..." for variable amount of params as the 6th):

LTN_SL_ISWorldObjectContextMenu.lua:52
ISWorldObjectContextMenu.createMenu(player, worldobjects, x, y, test, ...)

where the original function does not have more than 5:

ISWorldObjectContextMenu.lua:452
ISWorldObjectContextMenu.createMenu = function(player, worldobjects, x, y, test)
Sidst redigeret af bikinihorst; 22. maj 2023 kl. 1:27
somewhatfrog 22. maj 2023 kl. 4:25 
Here is my log with I guess the same issue? Hope that helps!
STACK TRACE ----------------------------------------- function: createContextMenuOption -- file: Context_PA.lua line # 39 | MOD: bikinitools [SE] 121: Base mod function: addKeypadContextMenu -- file: KeypadLocks.lua line # 6 | MOD: bikinitools [SE] 121: Keypad locks function: doorContext -- file: PARP_Locks_Client.lua line # 423 | MOD: bikinitools [SE] 121: Keypad locks function: createMenu -- file: WorldContextMenu.lua line # 40 | MOD: bikinitools [SE] 121: Base mod function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 53 | MOD: Lantern function: createMenu -- file: ISMenuContextWorld.lua line # 53 | Vanilla function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla function: getXButtonObjects -- file: ISButtonPrompt.lua line # 990 | Vanilla function: interact -- file: ISButtonPrompt.lua line # 182 | Vanilla function: onXPress -- file: ISButtonPrompt.lua line # 1048 | Vanilla function: onPressButtonNoFocus -- file: JoyPadSetup.lua line # 305 | Vanilla function: onPressButton -- file: JoyPadSetup.lua line # 329 | Vanilla function: update -- file: JoyPadSetup.lua line # 779 | Vanilla function: onJoypadRenderTick -- file: JoyPadSetup.lua line # 796 | Vanilla. [22-05-23 01:26:25.341] LOG : General , 1684707985341> 8,645,122,735> ------------------------------------------------------------- attempted index: addOption of non-table: true. [22-05-23 01:26:25.341] LOG : General , 1684707985341> 8,645,122,735> ----------------------------------------- STACK TRACE ----------------------------------------- function: createContextMenuOption -- file: Context_PA.lua line # 39 | MOD: bikinitools [SE] 121: Base mod function: addKeypadContextMenu -- file: KeypadLocks.lua line # 6 | MOD: bikinitools [SE] 121: Keypad locks function: doorContext -- file: PARP_Locks_Client.lua line # 423 | MOD: bikinitools [SE] 121: Keypad locks function: createMenu -- file: WorldContextMenu.lua line # 40 | MOD: bikinitools [SE] 121: Base mod function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 53 | MOD: Lantern function: createMenu -- file: ISMenuContextWorld.lua line # 53 | Vanilla function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla function: getXButtonObjects -- file: ISButtonPrompt.lua line # 990 | Vanilla function: interact -- file: ISButtonPrompt.lua line # 182 | Vanilla function: onXPress -- file: ISButtonPrompt.lua line # 1048 | Vanilla function: onPressButtonNoFocus -- file: JoyPadSetup.lua line # 305 | Vanilla function: onPressButton -- file: JoyPadSetup.lua line # 329 | Vanilla function: update -- file: JoyPadSetup.lua line # 779 | Vanilla function: onJoypadRenderTick -- file: JoyPadSetup.lua line # 796 | Vanilla. [22-05-23 01:26:25.341] ERROR: General , 1684707985341> 8,645,122,735> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: addOption of non-table: true at KahluaThread.tableget line:1689.. [22-05-23 01:26:25.341] ERROR: General , 1684707985341> 8,645,122,735> DebugLogStream.printException> Stack trace:. [22-05-23 01:26:25.341] LOG : General , 1684707985341> 8,645,122,735> ----------------------------------------- STACK TRACE ----------------------------------------- function: createContextMenuOption -- file: Context_PA.lua line # 39 | MOD: bikinitools [SE] 121: Base mod function: addKeypadContextMenu -- file: KeypadLocks.lua line # 6 | MOD: bikinitools [SE] 121: Keypad locks function: doorContext -- file: PARP_Locks_Client.lua line # 423 | MOD: bikinitools [SE] 121: Keypad locks function: createMenu -- file: WorldContextMenu.lua line # 40 | MOD: bikinitools [SE] 121: Base mod function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 53 | MOD: Lantern function: createMenu -- file: ISMenuContextWorld.lua line # 53 | Vanilla function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla function: getXButtonObjects -- file: ISButtonPrompt.lua line # 990 | Vanilla function: interact -- file: ISButtonPrompt.lua line # 182 | Vanilla function: onXPress -- file: ISButtonPrompt.lua line # 1048 | Vanilla function: onPressButtonNoFocus -- file: JoyPadSetup.lua line # 305 | Vanilla function: onPressButton -- file: JoyPadSetup.lua line # 329 | Vanilla function: update -- file: JoyPadSetup.lua line # 779 | Vanilla function: onJoypadRenderTick -- file: JoyPadSetup.lua line # 796 | Vanilla.
Sidst redigeret af somewhatfrog; 22. maj 2023 kl. 4:25
separat.mn 3. juni 2023 kl. 16:38 
[04-06-23 00:25:33.297] LOG : General , 1685834733297> [LTN_SL] ERROR: next option not found: Schody.
[04-06-23 00:25:33.299] LOG : General , 1685834733299> [LTN_SL] Can Dissect? Perk Lvl: 0.
[04-06-23 00:25:33.300] LOG : General , 1685834733300> [LTN_SL] 0.
[04-06-23 00:25:33.301] LOG : Mod , 1685834733301> 2x version of armored.pack found..
[04-06-23 00:25:33.301] LOG : General , 1685834733301> [LTN_SL] Base Armor?.
[04-06-23 00:25:33.301] LOG : General , 1685834733301> [LTN_SL] BASE ARMOR.
[04-06-23 00:25:33.312] LOG : General , 1685834733312> [LTN_SL] Dropping and rolling not valid: not on fire.
[04-06-23 00:25:33.314] LOG : Mod , 1685834733314> 2x version of GreggiesGarageDoors.pack not found..
[04-06-23 00:25:33.314] LOG : General , 1685834733314> [LTN_SL] zombie.characters.IsoPlayer@3109d59.


spam many times
Slooth  [udvikler] 18. dec. 2023 kl. 23:47 
Oprindeligt skrevet af bikinihorst:
I have been getting these reports as well. Every time a hook is made into ISWorldObjectContextMenu.createMenu it will break because the number of arguments differs from the original function. Hooks are written with the original parameters in mind.

This mod is calling the context menu with a different amount of parameters (even if it is the param "..." for variable amount of params as the 6th):

LTN_SL_ISWorldObjectContextMenu.lua:52
ISWorldObjectContextMenu.createMenu(player, worldobjects, x, y, test, ...)

where the original function does not have more than 5:

ISWorldObjectContextMenu.lua:452
ISWorldObjectContextMenu.createMenu = function(player, worldobjects, x, y, test)


Thanks @bikinihorst for reaching out. Apologies it took me this long to get around to it. Hope this problem is fixed with these changes.
Kyrox 23. dec. 2023 kl. 0:18 
Hey a response from the mod dev. Only reported this over a year ago. Pretty sure everyone here moved on. Had kids. Their kids had kids. Now we're all rolling around in our wheelchairs turning up our hearing aids. Appreciate the update. Don't even play this game anymore.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50