Update ruined years long map?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
xplycyt
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Apr 18, 2018 2:59 pm
Contact:

Update ruined years long map?

Post by xplycyt »

Please tell me this map is not forever lost
IMG_0049.jpeg
IMG_0049.jpeg (3.61 MiB) Viewed 404 times

User avatar
BattleFluffy
Fast Inserter
Fast Inserter
Posts: 200
Joined: Sun Mar 31, 2019 4:58 pm
Contact:

Re: Update ruined years long map?

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

Xorimuth
Filter Inserter
Filter Inserter
Posts: 689
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Update ruined years long map?

Post by Xorimuth »

Just deleting all lua files in the save game will probably also fix the problem.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

xplycyt
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Apr 18, 2018 2:59 pm
Contact:

Re: Update ruined years long map?

Post by xplycyt »

Thank you for these suggestions.

NineNine
Fast Inserter
Fast Inserter
Posts: 140
Joined: Mon Oct 24, 2022 11:20 pm
Contact:

Re: Update ruined years long map?

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

cellularmitosis
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Nov 02, 2024 8:21 pm
Contact:

Re: Update ruined years long map?

Post 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

Post Reply

Return to “Technical Help”