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

This subforum contains all the issues which we already resolved.
x2605
Inserter
Inserter
Posts: 42
Joined: Fri Jul 31, 2020 4:08 pm
Contact:

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

Post 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.
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)
x2605
Inserter
Inserter
Posts: 42
Joined: Fri Jul 31, 2020 4:08 pm
Contact:

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

Post 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.
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)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14594
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”