Page 1 of 1

Update ruined years long map?

Posted: Sun Oct 27, 2024 8:45 pm
by xplycyt
Please tell me this map is not forever lost
IMG_0049.jpeg
IMG_0049.jpeg (3.61 MiB) Viewed 680 times

Re: Update ruined years long map?

Posted: Sun Oct 27, 2024 10:09 pm
by BattleFluffy
Hello, I know what causes this from my experience with making scenarios. The latest update has changed the global storage table's name. It used to be called "global". It's now called "storage".

To fix the problem, you'll need to navigate to the folder where your savegame is stored. Open the savegame .zip and look inside for a file called "freeplay.lua"
Open this file in a text editor such as Notepad. Inside, you'll find various references to "global". All of these need to be changed to "storage"

So for example, the error message is saying that line 194 of the file contains a reference to "global". You'll need to go and look at what is on that line, and somewhere on the line it will have the word "global", and you just need to change that to "storage".

If you have "Find and Replace", you can use that to quickly fix the entire file by replacing all instances of "global" with "storage".

Here's another example just to make it really clear. Previously I had a line like this:

Code: Select all

global.created_items = global.created_items or created_items()
And the fixed version looks like this:

Code: Select all

storage.created_items = storage.created_items or created_items()

So, if you do that process for your freeplay.lua file then it should fix it. :> Maybe back the whole thing up before starting, just in case!

Re: Update ruined years long map?

Posted: Mon Oct 28, 2024 1:01 am
by Xorimuth
Just deleting all lua files in the save game will probably also fix the problem.

Re: Update ruined years long map?

Posted: Wed Oct 30, 2024 2:38 pm
by xplycyt
Thank you for these suggestions.

Re: Update ruined years long map?

Posted: Wed Oct 30, 2024 2:55 pm
by NineNine
If you've got something you've been working on for years, why would you run the update? Just run whatever version of Factorio you built the map in and don't update.

Re: Update ruined years long map?

Posted: Wed Nov 13, 2024 4:28 am
by cellularmitosis
BattleFluffy wrote: Sun Oct 27, 2024 10:09 pm Hello, I know what causes this from my experience with making scenarios. The latest update has changed the global storage table's name. It used to be called "global". It's now called "storage".
Hey Fluffy! I just wanted to say I miss hanging with you and the crew on 24/7 nightmare world :D