https://github.com/truebrain/openttd-savegame-reader
Python/Rust/React-based savegame reader for OpenTTD
https://github.com/truebrain/openttd-savegame-reader
Last synced: 11 months ago
JSON representation
Python/Rust/React-based savegame reader for OpenTTD
- Host: GitHub
- URL: https://github.com/truebrain/openttd-savegame-reader
- Owner: TrueBrain
- License: gpl-2.0
- Created: 2021-06-04T12:27:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T19:35:58.000Z (almost 2 years ago)
- Last Synced: 2025-04-01T02:53:33.634Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 2.92 MB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
python3 -m venv .env
.env/bin/pip install -r requirements.txt
```
### Usage
#### CLI-based interactive view
```bash
.env/bin/python -m savegame_reader
```

#### Export to JSON
```bash
.env/bin/python -m savegame_reader --export-json
```
## Rust / Web
### Installation (Rust)
Have latest rust installed, and install `wasm-pack` (with `cargo install wasm-pack`).
```bash
cd webapp/xz-rust
wasm-pack build --release
```
### Installation (Web)
(depends on Rust)
```bash
cd webapp/web
npm install
NODE_OPTIONS=--openssl-legacy-provider npm run build
```
Alternatively for the last step, you can do `NODE_OPTIONS=--openssl-legacy-provider npm run start` for development.
(the `NODE_OPTIONS=--openssl-legacy-provider` is needed as this project isn't upgraded to React 18 yet).