1 unstable release

0.0.2 Jan 16, 2024

#300 in Games

MIT license

3.5MB
898 lines

OpenTTD reader

Crate API

A demonstration crate to read the OpenTTD save files. Only use this project with a backup copy of your saves.

Examples

Default company info

cargo run company saves/example1.sav
 name                 inaugurated_year   president   currency   money     loan
 Petfield Transport   1950               D. Nelson   GBP        3647337   0

TODO

  • load save game ottx
  • parse the main company
  • parse the others companies
  • parse the trains
  • parse the planes
  • parse the trucks
  • parse the ships
  • parse the economy
  • parse the map
  • parse the cities
  • parse the industries
  • parse the stations
  • parse the ports
  • parse the airports
  • parse the roads
  • parse the rails
  • render the map in some way
  • support old save games
  • support other formats(ottd, ottn..)
  • lib mode
  • cli mode

Dependencies