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.
Anyway, I think no one will put LuaGameScript in global... I think it is not much important.
[Rseding91] [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level
[Rseding91] [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level
English is not my native language. Sorry for bad English.
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
Re: [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level
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.
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.
English is not my native language. Sorry for bad English.
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
Re: [1.0.0] LuaRemote of mod crashes by calling level's global including LuaGameScript of level
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.
If you want to get ahold of me I'm almost always on Discord.