This library is a map parser and writer for OpenTTD written in Rust with ✨binrw✨.
You can use the town renamer CLI to import/export a list of town names specifically for JGR savefiles.
cargo run --release --example town-renamer read ./game.sav
cargo run --release --example town-renamer write ./game.sav ./towns.json -o new_save.sav
In imhex/ottd-savefile.hexpat
, you'll find a pattern that you can load into ImHex to visualize an OpenTTD savefile in hex. This will not work if the save file is compressed so you will have to disable compression in OTTD or decompress it with this library.
With wasm pack (installed with cargo install wasm-pack
)
wasm-pack build --release --target web -- --no-default-features --features lzma-rs
This software is licensed under GNU General Public License version 2.0.
Data structures derived from https://github.com/OpenTTD/OpenTTD and https://github.com/JGRennison/OpenTTD-patches are also licensed under GPL 2.0.