CleverRaven/Cataclysm-DDA

Introduce an external save compression tool.

開放

#76,012 建立於 2024年8月28日

 (4 則留言) (1 個反應) (0 位負責人)C++ (3,991 個分叉)batch import
<Suggestion / Discussion>Code: Infrastructure / Style / Static AnalysisHelp Wanted

倉庫指標

星標
 (9,264 顆星)
PR 合併指標
 (平均合併 6天 5小時) (30 天內合併 292 個 PR)

描述

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.

貢獻者指南