Galaxy on Fire 2 CLI tool to unpack and repack BIN files and save files, as well as patch binaries.
Download the latest version here.
This tool is capable of unpacking and repacking the following game files:
- Agents (agents.bin)
- Items (items.bin)
- Language Strings (*.lang)
- Most Wanted (wanted.bin)
- News Items (ticker.bin)
- Ships (ships.bin)
- Ship Weapon/Engine Positions (weapons*.bin)
- Stations (stations.bin)
- Systems (systems.bin)
- Save Game (gof2_save_game_*) (Android Only)
- Save Game Preview (gof2_save_game_preview_*)
In order to add new entries into these files, binary modification is necessary.
gof2edit
can patch the game binary for the following files:
This functionality is currently only fully available for the Android binary, and experimentally for the iOS binary.
gof2edit
can also apply arbitrary patches to binaries.
See the patches folder for examples.
gof2edit unpack systems systems.bin
- Unpacks the systems in JSON format intosystems.json
gof2edit repack systems systems.json
- Repacks the systems fromsystems.json
intosystems.bin
gof2edit patch systems systems.json libgof2hdaa.so
- Patches the game usingsystems.json
gof2edit generate-patch libgof2hdaa.so.orig libgof2hdaa.so
- Generates a binary patch namedpatch.json
by comparinglibgof2hdaa.so
tolibgof2hdaa.so.orig
gof2edit apply-patch patches/enable-bloom.json libgof2hdaa.so
- Applies the "Enable Bloom" patch to the Android binary
Execute gof2edit --help
to get a list of commands, and gof2edit <command> --help
for more information.
Simply download the repository and execute cargo build
in the project directory.
A binary will be created in target/debug
.
This project is licensed under the GNU AGPLv3 License - see the LICENSE file for details.