Skip to content

Galaxy on Fire 2 CLI tool to unpack and repack BIN files and save files, as well as patch binaries

License

Notifications You must be signed in to change notification settings

Ravernstal/gof2edit

Repository files navigation

Tests

gof2edit

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.

Unpacking/Repacking

This tool is capable of unpacking and repacking the following game files:

BIN Files

Save Files

Patching

New Objects

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.

Binary Patches

gof2edit can also apply arbitrary patches to binaries. See the patches folder for examples.

Example Commands

  • gof2edit unpack systems systems.bin - Unpacks the systems in JSON format into systems.json
  • gof2edit repack systems systems.json - Repacks the systems from systems.json into systems.bin
  • gof2edit patch systems systems.json libgof2hdaa.so - Patches the game using systems.json
  • gof2edit generate-patch libgof2hdaa.so.orig libgof2hdaa.so - Generates a binary patch named patch.json by comparing libgof2hdaa.so to libgof2hdaa.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.

Building

Simply download the repository and execute cargo build in the project directory. A binary will be created in target/debug.

License

This project is licensed under the GNU AGPLv3 License - see the LICENSE file for details.