| Crates.io | barotrauma-compress |
| lib.rs | barotrauma-compress |
| version | 1.1.0 |
| created_at | 2023-06-25 05:20:39.657281+00 |
| updated_at | 2025-06-27 10:54:39.955515+00 |
| description | Compress and decompress Barotrauma save files |
| homepage | |
| repository | https://github.com/zkxs/barotrauma-compress-rs |
| max_upload_size | |
| id | 899310 |
| size | 1,676,353 |
A simple CLI utility to compress and decompress Barotrauma save files using fully cross-platform native code.
Manual: download an artifact from the latest release
Cargo: cargo install barotrauma-compress
Whether to compress or decompress will be chosen automatically based on what <INPUT> is: files will be decompressed,
and directories will be compressed.
Usage: barotrauma-compress <INPUT>
Arguments:
<INPUT> input file or directory.
Options:
-h, --help Print help
-V, --version Print version
%localappdata%\Daedalic Entertainment GmbH\Barotrauma\Multiplayerbarotrauma-compress on the .save fileMy Sub Name.sub you should now have My Sub Name in your clipboard.C:\Steam\steamapps\common\Barotrauma\LocalMods\My Sub Name that contains a My Sub Name.sub and a
filelist.xml file. This whole step was an exercise to generate that filelist.xml with the correct contents.C:\Steam\steamapps\common\Barotrauma\LocalMods\My Sub Name\My Sub Name.sub file.C:\Steam\steamapps\common\Barotrauma\LocalMods\My Sub Name\My Sub Name.sub file back into your
decompressed save, and use Barotrauma Save Decompressor to recompress the directory.You may notice weird gunk on your walls that you cannot select. You don't need to remove this, but if it bothers you
here's how. It's some extra metadata in the hulls that the sub editor doesn't know how to deal with: specifically in the
xml, the <Hull> entries have a backgroundsections attribute that defines the gunk. If you just select all your
hulls and move them a bit, then Ctrl+Z them back it nukes all the background gunk. This saves you some effort over
gunzipping the .sub file and editing the XML directly.
cargo build --releaseThis program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License. See LICENSE for the full license text.
This project was inspired by Jlobblet/Barotrauma-Save-Decompressor, which is a GUI that does the same thing as this project. I wanted to make a CLI version that doesn't depend on .NET, and thus this project was born.