Giter Club home page Giter Club logo

openttd-map-parser's Introduction

OpenTTD Map Parser (and Writer)

This library is a map parser and writer for OpenTTD written in Rust with ✨binrw✨.

Examples

Town Renamer

You can use the town renamer CLI to import/export a list of town names specifically for JGR savefiles.

Save to towns.json

cargo run --release --example town-renamer read ./game.sav

towns.json to Save

cargo run --release --example town-renamer write ./game.sav ./towns.json -o new_save.sav

ImHex

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.

Wasm

With wasm pack (installed with cargo install wasm-pack)

wasm-pack build --release --target web -- --no-default-features --features lzma-rs

Useful links

Licenses

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.

openttd-map-parser's People

Contributors

jf908 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

baa14453

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.