Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Introduce an external save compression tool.

Open PatrikLundell opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

It's not unusual with crashes on loading, and those saves can't be compressed by the compression tool because the tool requires the save to be loaded. It would be useful to have an external tool that's capable of compressing a designated save, without the need to successfully load it.

This might provide help to hunt down such errors.

Solution you would like.

Two alternatives, not necessarily mutually exclusive:

  • Compile an external exe similar to how the JSON formatter is compiled. The tool would ask for a save directory (not the "save" directory, but directories within it, possibly with a check to avoid the "save" directory being designated) and compress the save in it.
  • Provide access to the save functionality from the top menu (where? none of the sections really make sense) whereby you could select the save from a save list similar or identical to the one where you normally select the save to load.

Describe alternatives you have considered.

Prompted by the appearance of yet another bug report of this kind.

Additional context

The tool would have to make it clear it's NOT suitable for compressing saves to move them between devices, as data is discarded.

PatrikLundell avatar Aug 28 '24 13:08 PatrikLundell

Third option is a flag to the cataclysm process that has it act as such a tool.

kevingranade avatar Aug 28 '24 14:08 kevingranade

Yes. Both flags and a separate tool have the disadvantage that it's harder to instruct bug reporters how to use it than an integrated solution available from the pre load level, but it's definitely an option.

PatrikLundell avatar Aug 28 '24 14:08 PatrikLundell

Sorry I mean a command-line flag. ./cataclysm --compress_save path/to/save

kevingranade avatar Aug 28 '24 16:08 kevingranade

1

IdleSol avatar Aug 28 '24 17:08 IdleSol