Corrupted save file of 110+ hour game save

Post your bugs and problems so we can fix them.

Corrupted save file of 110+ hour game save

Postby Leosmellsgood » Sun Nov 19, 2017 12:48 am

Opening zip C:/Users/leosm/AppData/Roaming/Factorio/saves/Pre 16.zip failed: Bad zip file
Also says invalid or corrupt file and prompts me to delete the save. This is my biggest save and probably in the top 1% of factories out there. It has 150M iron plate produced and up to 10Gw power consumption. I dont want to abandon this save :( When I try to extract the files I get the error message "C:\Users\leosm\AppData\Roaming\Factorio\saves\Pre 16.zip: The archive is corrupt". Any help is appreciated. :|
Attachments
Pre 16.zip
(Its big)
(82.26 MiB) Downloaded 12 times
Leosmellsgood
Inserter
Inserter
 
Posts: 28
Joined: Fri Jan 16, 2015 10:35 am

Re: Corrupted save file of 110+ hour game save

Postby impetus maximus » Sun Nov 19, 2017 9:55 am

you have auto save slots disabled?
User avatar
impetus maximus
Filter Inserter
Filter Inserter
 
Posts: 925
Joined: Sat Aug 20, 2016 10:07 pm

Re: Corrupted save file of 110+ hour game save

Postby Leosmellsgood » Mon Nov 20, 2017 6:02 am

Yes i do, last autosave was at 21 hours
Leosmellsgood
Inserter
Inserter
 
Posts: 28
Joined: Fri Jan 16, 2015 10:35 am

Re: Corrupted save file of 110+ hour game save

Postby Koub » Mon Nov 20, 2017 6:28 am

Your save file is incomplete : from byte 0x01400000 (around 20 MB) up to the end of file, it's totally blank, only '0's
Did you expérience whatever may cause a save to be incomplete (game grash during save, computer reboot, or anything ) ?
BTW : disabling autosaves may not be the smartest idea to do if you want safety.

I'll let the topic here, because even if I don't see how it could be a problem due to the game, I've seen such posts a pair of times, and I start to doubt.
Koub - Please consider English is not my native language.
Koub
Global Moderator
Global Moderator
 
Posts: 2919
Joined: Fri May 30, 2014 8:54 am
Location: France

Re: Corrupted save file of 110+ hour game save

Postby Zavian » Mon Nov 20, 2017 7:28 am

You might be able to restore a working version of an older save using your backups or windows previous versions,
https://www.howtogeek.com/56891/use-win ... our-files/
Zavian
Filter Inserter
Filter Inserter
 
Posts: 290
Joined: Thu Mar 02, 2017 2:57 am

Re: Corrupted save file of 110+ hour game save

Postby Oxyd » Mon Nov 20, 2017 5:43 pm

Koub wrote:Your save file is incomplete : from byte 0x01400000 (around 20 MB) up to the end of file, it's totally blank, only '0's
Did you expérience whatever may cause a save to be incomplete (game grash during save, computer reboot, or anything ) ?
BTW : disabling autosaves may not be the smartest idea to do if you want safety.

I'll let the topic here, because even if I don't see how it could be a problem due to the game, I've seen such posts a pair of times, and I start to doubt.


I've seen this multiple times as well, but usually with config files. It's always the same symptoms – file is approximately the correct size, but at least partially filled with zeroes, seems to happen on Windows only and nobody ever can name anything suspicious happening when the file was being saved.

I'm leaning toward this being a Factorio bug, but unfortunately people have been reporting this for years and we still have no clue what might be causing it.
Oxyd
Factorio Staff
Factorio Staff
 
Posts: 982
Joined: Thu May 07, 2015 8:42 am

Re: Corrupted save file of 110+ hour game save

Postby Zavian » Mon Nov 20, 2017 6:44 pm

Not sure whether you are already doing this but StackExchange and https://disruptivesql.wordpress.com/201 ... e-through/ both suggest that calling FlushFileBuffers() ( https://msdn.microsoft.com/en-us/librar ... 39(v=vs.85).aspx ) will ensure the data is flushed to disk. (Assuming the disk itself doesn't lie to windows).
Zavian
Filter Inserter
Filter Inserter
 
Posts: 290
Joined: Thu Mar 02, 2017 2:57 am

Re: Corrupted save file of 110+ hour game save

Postby posila » Mon Nov 20, 2017 7:22 pm

Zavian wrote:Not sure whether you are already doing this but StackExchange and https://disruptivesql.wordpress.com/201 ... e-through/ both suggest that calling FlushFileBuffers() ( https://msdn.microsoft.com/en-us/librar ... 39(v=vs.85).aspx ) will ensure the data is flushed to disk. (Assuming the disk itself doesn't lie to windows).

We are using standard C functions for writing files. Thanks for the tip, Rseding had theory it is something wrong with OS not flushing files properly. We'll give it a try and see if this stops happening to people.
posila
Factorio Staff
Factorio Staff
 
Posts: 2007
Joined: Thu Jun 11, 2015 1:35 pm

Re: Corrupted save file of 110+ hour game save

Postby Leosmellsgood » Mon Nov 20, 2017 7:51 pm

Koub wrote:Your save file is incomplete : from byte 0x01400000 (around 20 MB) up to the end of file, it's totally blank, only '0's
Did you expérience whatever may cause a save to be incomplete (game grash during save, computer reboot, or anything ) ?
BTW : disabling autosaves may not be the smartest idea to do if you want safety.

I'll let the topic here, because even if I don't see how it could be a problem due to the game, I've seen such posts a pair of times, and I start to doubt.



Nothing was unusual about the saving and exiting process that I can remember, and saving takes about 30-60 seconds so I'd really rather leave autosave off.
Leosmellsgood
Inserter
Inserter
 
Posts: 28
Joined: Fri Jan 16, 2015 10:35 am


Return to Bug Reports

Who is online

Users browsing this forum: Garztone, impetus maximus, Rseding91, TruePikachu, Xeteth and 6 guests