Not a member yet? Why not Sign up today
Create an account  

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BUG: Save game gone

#18
(02-13-2023, 07:01 PM)Haxus Wrote: The save game code saves to temporary files. After that completes successfully, the temporary files are moved to replace the active files. This is simple code.

I suspect a file operation is not really finished when shutting down, perhaps due to buffered IO. I added code to flush those buffers before finishing. It may fix the issue.
Could we have automated save backup function? Currently some players do it manually or with simple batch scripts. I understand that duplicating big save file (gigabytes) might be costly, so it probably should be optional. Additionally 3rd party archivers could be used, for example 7zip, it's free to use and supports command line to silently archive or restore. Game could detect if one is installed (or users could manually write a path) and if provided, archive periodically when game is launched. Of course it should be put in low priority to avoid lag

7zip archived 219 megabyte save file in 5 seconds. Resulted .7z archive weights 44 megabytes (~80% reduction). .zip archive took 10 seconds and weights 77 megabytes (65% reduction). All 16 CPU threads were used. .7z format can be opened with 7zip. .zip format can be opened with windows explorer. Encryption and password can be set up to protect save file.
In game GUI can be used to restore save file.
I believe game has "rolling cache", so when save initiates, game writes everything to file and uses cache while archiving to prevent data corruption.
This is crucial. A minor rollback is better than lost entire progress.
Report or Exploit
Reply



Messages In This Thread
BUG: Save game gone - by Rockinsince87 - 03-08-2021, 09:12 PM
RE: BUG: Save game gone - by Deantwo - 03-08-2021, 11:08 PM
RE: BUG: Save game gone - by Rockinsince87 - 03-09-2021, 03:58 PM
RE: BUG: Save game gone - by AnrDaemon - 03-10-2021, 05:58 AM
RE: BUG: Save game gone - by Celarious - 03-10-2021, 02:18 PM
RE: BUG: Save game gone - by Rockinsince87 - 03-10-2021, 02:52 PM
RE: BUG: Save game gone - by Rockinsince87 - 03-15-2021, 11:20 AM
RE: BUG: Save game gone - by Rockinsince87 - 03-17-2021, 11:55 AM
RE: BUG: Save game gone - by AnrDaemon - 03-17-2021, 02:24 PM
RE: BUG: Save game gone - by Rockinsince87 - 03-17-2021, 05:04 PM
RE: BUG: Save game gone - by AnrDaemon - 03-18-2021, 05:08 PM
RE: BUG: Save game gone - by Rockinsince87 - 03-18-2021, 08:05 PM
RE: BUG: Save game gone - by Celarious - 12-20-2021, 08:14 PM
RE: BUG: Save game gone - by Greydog - 01-27-2022, 06:13 PM
RE: BUG: Save game gone - by Haxus - 02-13-2023, 07:01 PM
RE: BUG: Save game gone - by Vooker525 - 02-13-2023, 08:01 PM
RE: BUG: Save game gone - by Celarious - 02-13-2023, 07:32 PM
RE: BUG: Save game gone - by Haxus - 02-13-2023, 10:17 PM
Hazeron Starship - Autosave - by kajanov - 02-02-2023, 03:32 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)