Ability to update scenarios inside saves

Things that already exist in the current mod API
Post Reply
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Ability to update scenarios inside saves

Post by Gergely »

I request the ability to update scenario scripts in saved games.
Why?
Currently, scenario scripts are stored with the saved game. However, this makes them unable to update when the scenario itself is updated.
I can't fix a bug in my scenario script and then continue my saved data with that script bug free.
What?
I request that when the game loads a saved data, instead of the script saved, the game loads the script from the scenario file if it is available, and the saved data is not being downloaded while connecting to a multiplayer server.

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

Re: Ability to update scenarios inside saves

Post by Klonan »

Gergely wrote:I request the ability to update scenario scripts in saved games.
Why?
Currently, scenario scripts are stored with the saved game. However, this makes them unable to update when the scenario itself is updated.
I can't fix a bug in my scenario script and then continue my saved data with that script bug free.
What?
I request that when the game loads a saved data, instead of the script saved, the game loads the script from the scenario file if it is available, and the saved data is not being downloaded while connecting to a multiplayer server.
You can run a migration

Code: Select all

game.reload_script()
or, just unzip the save, and put the replace the outdated script

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: Ability to update scenarios inside saves

Post by Gergely »

Klonan wrote:You can run a migration

Code: Select all

game.reload_script()
Thanks. :roll: Did not see that one...

Post Reply

Return to “Already exists”