In response to a feature request I added a simple autosave and game recovery
mechanism.
After each (completed) player activity, the autosave file is updated.
On game start, there is a new button: "Recover previous game", which will
automatically start from the autosave file.
This should also allow to recover on power outage or other reasons for
quitting Rails without saving.
Caveat: The autosave file can be effected by the reload problems of game
situations with lots of undos. But those situations are becoming less and
less frequent.
Autosave can be configured in my.properties. The current defaults activate
autosave and stores a 18xx_autosave.rails file in the current working
directory.
Current defaults are:
save.recovery.active=yes
save.recovery.filepath=18xx_autosave.rails
Due to the small size of the rails save files and the speed of harddisks now,
a complete save file is stored every time. The old one is renamed with the
(additonal) extension ".bak".
Testing on a Windows system is appreciated. I tried to discover and report
problems to the user, thus trying to switch autosave to read only folder
would be a good test.
Stefan
|