MinicraftPlus / minicraft-plus-revived

Minicraft+, an extension of Notch's original minicraft project, with tons more features.
GNU General Public License v3.0
466 stars 93 forks source link

File backups in development builds #610

Closed BenCheung0422 closed 1 week ago

BenCheung0422 commented 8 months ago

There has already been an incident that there is a break of preferences by 9de1e2a200cec588d80e21d9a2bd4b3df976104d (originated from #425; attempt of fix as in #503). Ideally, this kind of save file scheme changes should always be conducted and followed-up so as to preserve the quality of version continuation on save files, even on pre-releases. This is related to the quality of pre-releases.

Then, in case of save file corruptions, this allows backups of both preferences and world saves. Backups of preferences are performed automatically when saving and upgrading preferences with development builds; backup prompts are shown when users are attempting to load old worlds in development builds. (This might be extended to generally all versions, and all loadings of conflicting versions respectively.)

(Edited on 2023/01/11)

Old summary

> Recently, due to the changes to the workflows of development builds, pre-releases, the risks of getting corrupted files may significantly increase. This allows backups of both preferences and world saves. Backups of preferences are performed automatically when saving preferences with development builds; backup prompts are shown when users are attempting to load old worlds in development builds.