Steps to reproduce:
1. Update the game to version 0.17.24
2. Revert back to 0.17.23 and start a new game - the blueprint-storage.dat located at AppData/Roaming/Factorio will get renamed to blueprint-storage-backup.dat
3. Revert back to 0.17.22 and start a new game - the blueprint-storage.dat will override the existing backup
Expected a new backup to be created instead so that I don't lose my blueprints...
PS Is there any way to restore the shared blueprints library...?
[bug related to version change] blueprint-storage-backup.dat gets overriden
Re: [bug related to version change] blueprint-storage-backup.dat gets overriden
Thanks for the report however that's not a bug. When you roll back versions the game can't load blueprint-storage.dat and so it marks it as invalid. If you keep doing that the invalid files get overwritten because the game has no way to know if the previous "invalid" file should be kept - since it's invalid it defaults to "no".
Simply put: you can't roll back versions if you want to keep blueprint-storage.dat around. You're not meant to roll back versions and keep any data files because they're not compatible with older versions.
Simply put: you can't roll back versions if you want to keep blueprint-storage.dat around. You're not meant to roll back versions and keep any data files because they're not compatible with older versions.
If you want to get ahold of me I'm almost always on Discord.
Re: [bug related to version change] blueprint-storage-backup.dat gets overriden
My point being - the game shouldn't delete something it doesn't know. It should create a new backup file instead (backup2.dat, backup3.dat and so on, or whatever other format is easiest to implement).Rseding91 wrote: Wed Apr 03, 2019 9:22 am the game has no way to know if the previous "invalid" file should be kept - since it's invalid it defaults to "no".
Is there any other copy of shared blueprints? Is there any way to retrieve it? I have lost all my blueprints that were in the shared library, only because I tried to find out in which recent version a bug was introduced so that I can make it easier for you when raising a bug report...
Re: [bug related to version change] blueprint-storage-backup.dat gets overriden
But it does know, the game reserves that file name for "last invalid blueprint storage file" just like how it preserves "factorio-previous.log" for "last log file".jarcionek wrote: Wed Apr 03, 2019 9:56 am My point being - the game shouldn't delete something it doesn't know. It should create a new backup file instead (backup2.dat, backup3.dat and so on, or whatever other format is easiest to implement).
If you want to get ahold of me I'm almost always on Discord.
Re: [bug related to version change] blueprint-storage-backup.dat gets overriden
I don't think this comparison is good. Log is not something that player cares about. Blueprint library on the other hand contains player's creations. The issue is better compared to deleting all users save files on version change.
Why do you override existing backup rather than creating another backup next to it?
And for the third time - any way to restore my deleted shared blueprint library?
Why do you override existing backup rather than creating another backup next to it?
And for the third time - any way to restore my deleted shared blueprint library?
Re: [bug related to version change] blueprint-storage-backup.dat gets overriden
Because the "backup" is not a backup - it's just a "corrupt file" and is useless to the game.jarcionek wrote: Wed Apr 03, 2019 10:27 am I don't think this comparison is good. Log is not something that player cares about. Blueprint library on the other hand contains player's creations. The issue is better compared to deleting all users save files on version change.
Why do you override existing backup rather than creating another backup next to it?
And for the third time - any way to restore my deleted shared blueprint library?
As for restore your deleted blueprint library: no.
The blueprint library is not stored in the save file and as such there is only 1 copy of it. If you don't use the blueprint library the game will save blueprints in your save file which has autosaves.
If you want to get ahold of me I'm almost always on Discord.