Autosave Feature Implementation (Patreon)
Content
I'm implementing an autosave feature to help people who aren't used to saving the game often.
The engine autosaves the game when finding secrets, when picking up powerups, when picking up keys, and when using the keys. This means that every secret, every powerup, every key and every door locked by a key will become a savepoint.
Right now, the autosaves are saved to the quick.sav file from the quicksave function defined in the default.ini file, and there's no autoload yet. So, when dying, the quickload button (defaulted to F9) must be manually pressed.
What's left to implement in the autosave system:
Make autosave trigger item list editable (likely through cvar bitflags).
Don't autosave twice if too quickly (e.g. find secret, get powerup).
Optionally, don't autosave when health is too low.
Autosave when substantially recovering from very low health (e.g. from 10 to 75).
When using the "restart" command, try to load an autosave first instead if the autosave file is from the same map in the same gaming session.
Optional autosave & autoload when shutting down and booting up the game.
The next version should be released before all that is done.
When the autoload is implemented, the autosave will not use the quick.sav file anymore, to not disturb manual usage of the quicksave & quickload buttons.