Utilities for OpenRCT2 and OpenLoco.
To get started, first build a libsawyer binary:
cmake -G Ninja -B bin
cmake --build bin
cmake --install bin
Depending on your needs, you may like to disable some components. Two components are optional
(ENABLE_LIBPNG, ENABLE_TESTS).
They can be pass to cmake via -D<param>=<bool>, e.g. ENABLE_DISCORD_RPC=OFF.
cmake --build bin --target tests
./bin/tests
The fsaw utility can be used to inspect, compress and decompress files that use Sawyer encoding,
e.g. Locomotion/OpenLoco save games. It can be compiled as follows:
cd tools/fsaw
cmake -G Ninja -B bin
cmake --build bin
./bin/fsw
The gxc utility can be used to build and extract graphics files used by OpenRCT2 and OpenLoco.
It can be compiled as follows:
cd tools/gxc
cmake -G Ninja -B bin
cmake --build bin
./bin/gxc
libsawyer is licensed under the MIT License.