On Factorio 1.1.104 (Steam), if I start a game, save, and try to actually load that game, I get the following error (I disabled all other mods just in case it was a conflict):
The mod Configurable Fogged Research (0.0.3) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event ConfigurableFoggedResearch::on_load()
ConfigurableFoggedResearch/control.lua:182: attempt to index global 'game' (a nil value)
stack traceback:
ConfigurableFoggedResearch/control.lua:182: in function <ConfigurableFoggedResearch/control.lua:181>
Looking at the code, I think the fix is to delete line 217 of control.lua
script.on_load(initialize_all)
due to the documentation at https://lua-api.factorio.com/latest/auxiliary/data-lifecycle.html#[4]- saying game
is not accessible from on_load
handlers. You may have to reorganize things so your local variables are stored in global
to let Factorio handle loading/saving, although I haven't read the code carefully enough to tell if that's needed.