You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenNefia needs an ironclad save backup feature, because things will break at some point or another. The best we can do is mitigate the damage.
At a bare minimum, every time a save is loaded from the title screen for the first time since engine startup, a save backup should be made. The contents of the save should not be modified in any way during this process. The title screen save menu could be optionally enhanced to support screenshots at the time of saving (dependent on #39) and browsing through all backups made so far, like Elona Extender. This would be a first-class feature with no need to install an external program. The number of times to backup and the maximum backups to keep could be configured also. Maybe we should have both frequent backups and backups that will be "snapshots" of a particular point in time that will always be preserved, so you can easily go back to a really old save state if you wanted to.
The save should contain at minimum:
OpenNefia commit hash and API version (when releasing we should make sure __COMMIT__.lua has been generated properly)
Version numbers of all mods and possibly Git commit hashes if they're under individual Git repos.
We should be constantly thinking about what's crucial to add to the save format. I'm fairly certain that enabling/disabling event hooks and advice won't play well with saving and loading at the moment, but I fairly certain that problem can be solved when it becomes more important to solve.
Backups will be exactly the same in structure as saves, but moved to a different location.
The text was updated successfully, but these errors were encountered:
OpenNefia needs an ironclad save backup feature, because things will break at some point or another. The best we can do is mitigate the damage.
At a bare minimum, every time a save is loaded from the title screen for the first time since engine startup, a save backup should be made. The contents of the save should not be modified in any way during this process. The title screen save menu could be optionally enhanced to support screenshots at the time of saving (dependent on #39) and browsing through all backups made so far, like Elona Extender. This would be a first-class feature with no need to install an external program. The number of times to backup and the maximum backups to keep could be configured also. Maybe we should have both frequent backups and backups that will be "snapshots" of a particular point in time that will always be preserved, so you can easily go back to a really old save state if you wanted to.
The save should contain at minimum:
__COMMIT__.lua
has been generated properly)We should be constantly thinking about what's crucial to add to the save format. I'm fairly certain that enabling/disabling event hooks and advice won't play well with saving and loading at the moment, but I fairly certain that problem can be solved when it becomes more important to solve.
Backups will be exactly the same in structure as saves, but moved to a different location.
The text was updated successfully, but these errors were encountered: