Page 1 of 1

[2.0.10] Savefile that was originally a converted scenario fails to load

Posted: Fri Oct 25, 2024 6:38 pm
by kerdeyosto
Prior to the 2.0 release, I would periodically convert my main save to a scenario and start a "new" game from that scenario, as a method of keeping replay recording going after changing mods. Trying to load that save in 2.0 gives the error

Code: Select all

Error while running event level::on_configuration_changed
__level__/freeplay.lua:220: attempt to index global 'global' (a nil value)
stack traceback:
	__level__/freeplay.lua:220: in function 'on_configuration_changed'
	__core__/lualib/event_handler.lua:87: in function <__core__/lualib/event_handler.lua:84>
I was able to fix it and get the file to load by replacing the freeplay.lua file mentioned in the error message with one from a scenario created in 2.0 (create a new game in 2.0, convert that game to a scenario, and copy the freeplay.lua from that scenario to replace the erroring one in the real save.)