CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.63k stars 4.18k forks source link

Introduce an external save compression tool. #76012

Open PatrikLundell opened 2 months ago

PatrikLundell commented 2 months ago

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:

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.

kevingranade commented 2 months ago

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

PatrikLundell commented 2 months ago

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.

kevingranade commented 2 months ago

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

IdleSol commented 2 months ago

1