Project Zomboid

Project Zomboid

[B41 / B42] bikinitools - independent vehicle spawner, skin changer and automations!
This topic has been locked
somewhatfrog 21 May, 2023 @ 4:55pm
Error when trying to open context menu on doors using controller.
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> -----------------------------------------

Manu doesn't open at all on doors and gates.
Last edited by somewhatfrog; 21 May, 2023 @ 5:12pm
< >
Showing 1-8 of 8 comments
bikinihorst  [developer] 22 May, 2023 @ 1:08am 
Hello and thank you for the report, however this is the wrong mod. Keep in mind there is bikinitools and BTSE which are radically different mods: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2784972075

As for your error: If a mod is named at the top it does not necessarily mean it is the cause. In your case the Lantern mod is modifying something before the BTSE context menu can be processed. Stack traces are read from bottom to top.

What is also missing is the error itself, which is found either below or above the stack trace in the log.

The first mod named from the bottom is more often than not the reason for the issue further down the line:

LTN_SL_ISWorldObjectContextMenu.lua line # 53 | MOD: Lantern

I also do not have a controller so testing is not possible for me.

EDIT: I checked the source codes just now. The Lantern mod is calling the context menu with a different amount of parameters:
LTN_SL_ISWorldObjectContextMenu.lua:53
ISWorldObjectContextMenu_createMenu(player, worldobjects, x, y, test, ...)

where the original function does not have other params:
ISWorldObjectContextMenu.lua:452
ISWorldObjectContextMenu.createMenu = function(player, worldobjects, x, y, test)

And yes, I do not know what to do with that information either, but that is where the code breaks.
Last edited by bikinihorst; 22 May, 2023 @ 1:18am
bikinihorst  [developer] 22 May, 2023 @ 1:26am 
I went digging and it is an issue with other mods as well. I have reported my findings alongside the already existing reports about incompatibilities here: https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2744675505/3364775783268783216/#c3827541651942735332

I am not sure how to treat this issue - You could try moving the Lantern mod after BTSE_Base but other than the Lantern mod creator changing their code to just accept 5 parameters there is nothing I can do.
somewhatfrog 22 May, 2023 @ 4:24am 
Ohh okay got it, sorry. I will drop more from LOG in there!
Thank you!
Last edited by somewhatfrog; 22 May, 2023 @ 4:24am
bikinihorst  [developer] 22 May, 2023 @ 4:28am 
no worries! let me know if moving lantern after btse_base in the mod id list of the server helps. if so i can tell people that when they report the issue again.
Last edited by bikinihorst; 22 May, 2023 @ 4:28am
somewhatfrog 23 May, 2023 @ 6:21am 
I left a request on server's discord, but no answer yet, I will let you know!
somewhatfrog 31 May, 2023 @ 4:54pm 
They said they changed the load order, but error is still there, at least for me. (Sunday Drivers)

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. [01-06-23 02:50:03.148] ERROR: General , 1685577003148> 9,514,140,323> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: addOption of non-table: true at KahluaThread.tableget line:1689.. [01-06-23 02:50:03.149] ERROR: General , 1685577003149> 9,514,140,323> DebugLogStream.printException> Stack trace:. [01-06-23 02:50:03.150] LOG : General , 1685577003150> 9,514,140,324> ----------------------------------------- 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. [01-06-23 02:50:18.426] LOG : General , 1685577018426> 9,514,155,601> shared-descriptor: registered id=1036. [01-06-23 02:50:23.743] LOG : General , 1685577023743> 9,514,160,918> Received list of players online.. [01-06-23 02:50:27.346] LOG : General , 1685577027346> 9,514,164,521> ------------------------------------------------------------- attempted index: addOption of non-table: true. [01-06-23 02:50:27.347] LOG : General , 1685577027347> 9,514,164,521> ----------------------------------------- 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. [01-06-23 02:50:27.347] ERROR: General , 1685577027347> 9,514,164,522> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: addOption of non-table: true at KahluaThread.tableget line:1689.. [01-06-23 02:50:27.347] ERROR: General , 1685577027347> 9,514,164,522> DebugLogStream.printException> Stack trace:. [01-06-23 02:50:27.348] LOG : General , 1685577027348> 9,514,164,523> -----------------------------------------
Last edited by somewhatfrog; 31 May, 2023 @ 5:59pm
bikinihorst  [developer] 1 Jun, 2023 @ 2:54am 
the stack trace order still shows the lantern mod hook being executed before btse_base (stack trace is read bottom to top):

function: createMenu -- file: WorldContextMenu.lua line # 40 | MOD: bikinitools [SE] 121: Base mod function: createMenu -- file: LTN_SL_ISWorldObjectContextMenu.lua line # 53 | MOD: Lantern

not sure what is going on but i opened a ticket with them to confirm.
Last edited by bikinihorst; 1 Jun, 2023 @ 3:32am
somewhatfrog 1 Jun, 2023 @ 3:36am 
27 Sep, 2022 @ 7:08pm is the date that report was originally created, why would they ignore it?
Last edited by somewhatfrog; 1 Jun, 2023 @ 4:06am
< >
Showing 1-8 of 8 comments
Per page: 1530 50