[2.0.60] Suddenly can't load save/autosave

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.
BlackViperMWG
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jan 09, 2021 9:52 am
Contact:

[2.0.60] Suddenly can't load save/autosave

Post by BlackViperMWG »

Playing with few planet mods, saved the game, an hour later wanted to load it, can't. Unexpected error and crash while loading, all three autosaves and main save. Same crash even when trying to convert the saves into map editor.

Screenshot: https://i.imgur.com/LL1g559.png

I've tried verifying game files too.

Log: https://pastebin.com/5Zhu9urV

Saves and modlist: https://www.dropbox.com/t/3zfuIRVkVKc5JjQ0
Rseding91
Factorio Staff
Factorio Staff
Posts: 16000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by Rseding91 »

You likely have failing hardware as the place that's crashing is checked on save to be valid and on load has been found invalid. That means between the game writing to disk and it being loaded something corrupted it.
If you want to get ahold of me I'm almost always on Discord.
BlackViperMWG
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jan 09, 2021 9:52 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by BlackViperMWG »

Doesn't sound probable to me, my PC is only 5 months old, and I've just tried it on another computer, same issue.
Loewchen
Global Moderator
Global Moderator
Posts: 10313
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by Loewchen »

BlackViperMWG wrote: Sun Aug 17, 2025 12:31 pm I've just tried it on another computer, same issue.
You corrupted an uncorrupted save on a different machine or you had the same error of an already corrupted save on different machine? The former would be interesting the latter apparent.
BlackViperMWG
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jan 09, 2021 9:52 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by BlackViperMWG »

Just copied the saves and tried to load them with synced mods, like anyone can from the dropbox here. Thought that would rule out hardware issues.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by Rseding91 »

The save files are corrupt - copying the corrupt save to another computer won’t un-corrupt it.
If you want to get ahold of me I'm almost always on Discord.
BlackViperMWG
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jan 09, 2021 9:52 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by BlackViperMWG »

Is there even any way to un-corrupt them?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by Rseding91 »

As a player, no. Sometimes saves can be recovered by developers but it’s rare and less frequent - because what ever corrupted the save will just happen again on the players computer unless they address the underlying problem (failing hardware has virtually always been found after save corruption has been found).
If you want to get ahold of me I'm almost always on Discord.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4064
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by boskid »

I tried to recover this save file, i think i managed to make it load.

130376-zadek-maybe-fixed.zip
(74.03 MiB) Downloaded 10 times

There were total of 74 electric networks that were orphaned (not owned by any electric network on the surface nor not owned by any equipment grid). Error that was being thrown suggests that the electric network was missing statistics however i suspect that was a slight red herring as a more likely explanation here is that there were equipment grids destroyed in some unexpected way that caused those 74 electric networks to not be deleted properly and on load since no equipment grid attached to them they thought they are part of electric network on the surface which should have statistics on it. Do you remember any suspicious game interaction where items with equipment grid or entities with equipment grid were destroyed? In my quick check i was unable to find any reproduction that would trigger this corruption.

-- edit:

I left this save file running for 1h and there was no corruption happening on its own. Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
BlackViperMWG
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jan 09, 2021 9:52 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by BlackViperMWG »

It works! Thank you so much mr. boskid. :)

No idea about those electric networks, perhaps something that happened when I've added mods after finishing the vanilla game?

I will copy your reply to the Rubia team too. Thanks again!
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4064
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by boskid »

Mods should not be able to leak equipment grids in any way so i am not seeing any value in reporting this to Rubia team, i just tried to give you some clues of what could be involved because maybe it would allow you to remember some unusual interactions with those entities.
Loup&Snoop
Inserter
Inserter
Posts: 39
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by Loup&Snoop »

boskid wrote: Sun Aug 17, 2025 6:23 pm Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
This is the first I hear of that sort of issue, so I apologize if this is causing issues. The last time I touched trashsteroids were on July 15th (over a month ago), so it is likely not a recent update--just rare? Looking through the save, he is generating 55-75 trashsteroids spawned at a given time, so 74 orphans is consistent with Boskid's hypothesis.

Context: All my trashsteroids are indeed LuaEntity derived from CarPrototype with equipment grids that contain a single shield (EnergyShieldEquipmentPrototype). That shield allows me to dynamically adjust their max health via a shield that will never be charged. They are effectively made in script.on_nth_tick. Trashsteroids are always destroyed by either damage (from player), or by script with all routes effectively running: if entity.valid then entity.destroy(). This includes an on_configuration_changed call to find all of these entities on the surface, and: if entity.valid then entity.destroy() them.

This all seems fairly innocuous to me. Is there something I should know about destroying these entities in a way to more reliably deallocate their electric networks?
ilikehackinggames
Inserter
Inserter
Posts: 38
Joined: Thu Apr 24, 2025 11:51 pm
Contact:

Re: [2.0.60] Suddenly can't load save/autosave

Post by ilikehackinggames »

Loup&Snoop wrote: Sun Aug 17, 2025 9:33 pm
boskid wrote: Sun Aug 17, 2025 6:23 pm Given the state of this save file i suspect the electric networks that were orphaned were originally owned by the "trashsteroids" on the planet Rubia since they are implemented as vehicles with equipment grid that has shield equipment inside and i see there is a lot of those entities destroyed. I have no idea how could those equipment grids cause electric networks to be orphaned.
This is the first I hear of that sort of issue, so I apologize if this is causing issues. The last time I touched trashsteroids were on July 15th (over a month ago), so it is likely not a recent update--just rare? Looking through the save, he is generating 55-75 trashsteroids spawned at a given time, so 74 orphans is consistent with Boskid's hypothesis.

Context: All my trashsteroids are indeed LuaEntity derived from CarPrototype with equipment grids that contain a single shield (EnergyShieldEquipmentPrototype). That shield allows me to dynamically adjust their max health via a shield that will never be charged. They are effectively made in script.on_nth_tick. Trashsteroids are always destroyed by either damage (from player), or by script with all routes effectively running: if entity.valid then entity.destroy(). This includes an on_configuration_changed call to find all of these entities on the surface, and: if entity.valid then entity.destroy() them.

This all seems fairly innocuous to me. Is there something I should know about destroying these entities in a way to more reliably deallocate their electric networks?
if this is related to the mod then its still a engine bug. mods shouldnt be able to currupt saves like this. so there is unlikely to be a known way to destroy the entities to free the electric networks given that the fact that its even posable to not free them is unknown (if that is the cause) at least from my understanding
Post Reply

Return to “Technical Help”