Autosave and Backup
110k hpgbproductions
3.0 years ago
Autosave and Backup (AUTOBAK) is a mod that regularly calls autosaves to __editor__.xml
, reducing data loss from game crashes.
It can also automatically create backups of the designer file. If auto-backups are enabled, they will be generated when entering the designer, and then regularly afterwards. Backups are written to:
[ SimplePlanes folder ]\NACHSAVE\AUTOBAK\
Note:
- Since Alt-Tabbing or entering the simulation will autosave your aircraft, you don't need this if you're an unfocused builder (lmao)
- If you are on Android, you might not need this, as the game autosaves whenever the onscreen keyboard is opened or closed. This includes opening the dev console.
- If you have limited storage space, make sure to clear old backups from time to time.
SETTINGS
The autosave and backup interval can be set in the settings file, which appears after first entering the designer.
[ SimplePlanes folder ]\NACHSAVE\AUTOBAK\INTERVAL.TXT
- First line:
float
Autosave period in seconds. Default of 300 seconds. Minimum of 15 seconds. - Second line:
int
Auto-backup period in autosave cycles. Default of 1, or every cycle. Use zero or a negative value to disable the auto-backup feature. - These instructions are also written in the settings file.
COMMANDS
BackupAircraft (void)
Manually call the creation of a backup file. Equivalent to >>AutoBackup..TryMakeBackup
.
@Harder258 somewhat yeah
You can reduce how much work you lose in the case of bad undos
does this work for the undo and redo stuff?
@hpgbproductions maybe he/she need the designer button or maybe not??
@SnoWFLakE0s autosaves can't have timestamps because it's still on the in-game editor.xml function
backups have them in the file name, but using a numbers-only format
Just another thought I had earlier--this would be much more useful if autosaves were timestamped.
Request: An option to configure a "Purge" time, which deletes backups that are older than the defined amount of time. Said-time would be on a scale of
Days
, although if it supportedw
orm
after the number in order to define "Week(s)" or "Month(s)", that'd be nice, too; default being in days (if no letter modifier added)..
I just looked at my folder and realized it's at 283MB lol
It may not need to be an actively monitored thing, either, to keep down overhead, but perhaps simply a run-time check.
Petition for this to be implemented in SP 1.12 as a toggleable feature in Settings
@parkrangerjerry God that's hilarious, only because it certainly feels that way every...damn...time... ahahah
.
LIGHTBULB!!
That's the next Mod we need!
Anytime the user invokes an action, be it applying a setting to a label, or using Override, or Fine Tuner (mod), the mod will then Add a part (randomly, far from your build) and delete it. (or, invoke two Nudges: one in any direction and the other in the opposite direction.)
WHY? Because that does cause the game to write an event to the Undo History, allowing you to actually use it for what it was meant for ;)
(I try to make a point of doing that before doing something major that I fear will have undesirable consequences, just so I can use CTR+Z)
@Formula350 undo deletes your xml progress and pushes your progress back by 70%
UNFORESEEN BONUS!!
This just saved me a bit of time having to re-make something in a Label, due to using "Undo" and having forgotten that just about NOTHING gets applied to the Undo History now. As a result, using "Undo" not only rolled back all the work done in that label... but a ton more work done in ANOTHER label! T_T
.
Was able to pop into that backup folder, then simply copy over the most recent Backup from there over into the AircraftDesigns folder, and load that "backup########" build! :D
.
Literally
The gift that keeps on giving...
*nods* The S in "hpgbproductions" stands for Santa
Woo!! HUGE thank you, for making this for me! ^_^
(And good thing I decided to check your recent posts to see if you'd finished it! lol)
@Bobyo WNP78 had replied in my Mod Request thread for this. So at the very least, they're aware of the desire for the function.
I suppose they'll now be able to sort of monitor how desirable this is (on Desktop SP) based on the Download Count, and if it ends up being a considerable portion of the active userbase... it's always possible :) *fingers crossed*
(I had thought all along, that the game DID use a timed autosave, and that it was triggered by more things, but I was quite incorrect... heh)
thanks! my laptop has a battery problem, so when I pull out the power cable it shuts down just like a desktop would, so this will be extremely useful
Darn! I was thinking if I could be smart enough to make this a mod... Good job!
I wonder if the devs would add this...
I wonder if this will come in handy if my game crashes while saving. An alternative source for backups that’s running constantly would be great when that horrible moment happens.
Interesting