Page 1 of 1

[0.18.0] Crash: LuaBootstrap::luaGetEventOrder

Posted: Tue Jan 21, 2020 9:24 pm
by leeh
Version: 0.18.0

I was playing around with some event handler stuff, and I ended up adding this statement to control.lua which triggered a crash:

Code: Select all

log("order is: " ..script.get_event_order("on_gui_switch_state_changed"))
Tested again a couple of times, and confirmed it can be triggered on a clean install with no other mods when starting a new game. Logfile is attached

Cheers,

Re: [0.18.0] Crash: LuaBootstrap::luaGetEventOrder

Posted: Tue Jan 21, 2020 9:51 pm
by Rseding91
Thanks for the report. I've fixed the crash but the code will produce any meaningful results. Running the function during control.lua init will always give back an empty string because not all mods have been fully loaded yet.