/OpenTTD-savegame-reader

Python/Rust/React-based savegame reader for OpenTTD

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

OpenTTD Savegame Reader

This is a very early version of an OpenTTD Savegame Reader.

It depends on a new savegame iteration which prefixes all chunks with a header. Chunks that do not have a header, are reported as unsupported.

Python

Installation

python3 -m venv .env
.env/bin/pip install -r requirements.txt

Usage

CLI-based interactive view

.env/bin/python -m savegame_reader <location-of-your-savegame>

image

Export to JSON

.env/bin/python -m savegame_reader --export-json <location-of-your-savegame>

Rust / Web

Installation (Rust)

Have latest rust installed, and install wasm-pack (with cargo install wasm-pack).

cd webapp/xz-rust
wasm-pack build

Installation (Web)

(depends on Rust)

cd webapp/web
npm install
npm run build

Alternatively for the last step, you can do npm start for development.