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
![Sad :(](./images/smilies/icon_e_sad.gif)
![Neutral :|](./images/smilies/icon_neutral.gif)
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.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.
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.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 ... s.85).aspx ) will ensure the data is flushed to disk. (Assuming the disk itself doesn't lie to windows).
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.