Page 1 of 1

Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Tue Feb 09, 2021 6:41 am
by lilstrip
I was planning to update the map to 1.1.21 but I am getting this error:

Error AppManagerStates.cpp:1589: ...Data/Roaming/Factorio/temp/currently-playing/control.lua:69: attempt to call field 'add_commands' (a nil value)
stack traceback:
...Data/Roaming/Factorio/temp/currently-playing/control.lua:69: in main chunk

Image

This error though isn't caused by Earendels mod but rather the control.lua within the save zip
I wont post the files here so just send me a PM and I will send you the project as for obvious reasons, its not ready to be put out there :3

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Tue Feb 09, 2021 6:44 am
by lilstrip
I just hope the problem is simple since this has thousands of hours of work on the line... Now I feel slightly crazy to not be exagerating lmao

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Tue Feb 09, 2021 10:09 am
by Klonan
It has an old script, I added some legacy support for the next release, until then you can replace the script in the save game

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Tue Feb 09, 2021 8:26 pm
by lilstrip
how should I replace the scripts? The scenario itself doesn't custom scripts since I don't know how to write code myself. If its an old script causing the issue I didn't place it there as I spent pretty much all my time in the editor working on the map :/

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Wed Feb 10, 2021 8:53 pm
by blahfasel2000
lilstrip wrote: Tue Feb 09, 2021 8:26 pm how should I replace the scripts?
Start a fresh new freeplay game and save it. Then extract the file "control.lua" from the new save's zip file and replace the "control.lua" in your Nauvis Post Collapse save with it (after making a backup copy first of course).

The script is part of the freeplay scenario that you originally used to start the map. It gets copied into the save file upon new game creation, so your map still has an old version of the control script from way back when you first created the map.

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Posted: Thu Feb 11, 2021 2:25 am
by lilstrip
did that, so i guess itll be good next update. Thx!