An open API service indexing awesome lists of open source software.

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

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
```

![image](docs/example.png)

#### 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).