Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
lilstrip
Fast Inserter
Fast Inserter
Posts: 189
Joined: Fri Aug 07, 2015 5:01 pm
Contact:

Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post 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

User avatar
lilstrip
Fast Inserter
Fast Inserter
Posts: 189
Joined: Fri Aug 07, 2015 5:01 pm
Contact:

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post 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

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post 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

User avatar
lilstrip
Fast Inserter
Fast Inserter
Posts: 189
Joined: Fri Aug 07, 2015 5:01 pm
Contact:

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post 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 :/

blahfasel2000
Inserter
Inserter
Posts: 49
Joined: Sat Mar 28, 2020 2:10 pm
Contact:

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post 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.

User avatar
lilstrip
Fast Inserter
Fast Inserter
Posts: 189
Joined: Fri Aug 07, 2015 5:01 pm
Contact:

Re: Crash while loading Nauvis Post Collapse 2.0 in 1.1.21

Post by lilstrip »

did that, so i guess itll be good next update. Thx!

Post Reply

Return to “Resolved Problems and Bugs”