Project Zomboid

Project Zomboid

[B41 / B42] bikinitools - independent vehicle spawner, skin changer and automations!
Denne tråd er blevet låst
somewhatfrog 21. maj 2023 kl. 16:55
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.
Sidst redigeret af somewhatfrog; 21. maj 2023 kl. 17:12
< >
Viser 1-8 af 8 kommentarer
bikinihorst  [udvikler] 22. maj 2023 kl. 1:08 
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://psteamcommunity.yuanyoumao.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.
Sidst redigeret af bikinihorst; 22. maj 2023 kl. 1:18
bikinihorst  [udvikler] 22. maj 2023 kl. 1:26 
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://psteamcommunity.yuanyoumao.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. maj 2023 kl. 4:24 
Ohh okay got it, sorry. I will drop more from LOG in there!
Thank you!
Sidst redigeret af somewhatfrog; 22. maj 2023 kl. 4:24
bikinihorst  [udvikler] 22. maj 2023 kl. 4:28 
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.
Sidst redigeret af bikinihorst; 22. maj 2023 kl. 4:28
somewhatfrog 23. maj 2023 kl. 6:21 
I left a request on server's discord, but no answer yet, I will let you know!
somewhatfrog 31. maj 2023 kl. 16:54 
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> -----------------------------------------
Sidst redigeret af somewhatfrog; 31. maj 2023 kl. 17:59
bikinihorst  [udvikler] 1. juni 2023 kl. 2:54 
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.
Sidst redigeret af bikinihorst; 1. juni 2023 kl. 3:32
somewhatfrog 1. juni 2023 kl. 3:36 
27 Sep, 2022 @ 7:08pm is the date that report was originally created, why would they ignore it?
Sidst redigeret af somewhatfrog; 1. juni 2023 kl. 4:06
< >
Viser 1-8 af 8 kommentarer
Per side: 1530 50