Page 1 of 1

[Rseding91] [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level

Posted: Wed Sep 02, 2020 11:58 am
by x2605
I was making a mod to monitor global table of other mod or map itself and encountered a crash.
After tracking, I was able to extract short code causing crash.

I wrote short sample mod and scenario to help you reproduce crash.
Load both and try /test command in game.
Crash log is included in zip file.
See control.lua of both mod and scenario.

sample_mod_and_scenario.zip
(3.46 KiB) Downloaded 148 times
Anyway, I think no one will put LuaGameScript in global... I think it is not much important.

Re: [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level

Posted: Wed Sep 02, 2020 12:11 pm
by x2605
Ah, not only game.
If script, remote, commands, settings, rcon, rendering of scenario level are inside of global table of scenario level,
They also causes crash when global is called by remote from mod.

Re: [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level

Posted: Wed Sep 02, 2020 1:07 pm
by Rseding91
Thanks for the report. I've fixed the crash however you can't store those in global anyway since they will error on saving and are never meant to be stored in global.