import data from running game - possible?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Posts: 1
Joined: 12 Aug 2019 10:35

import data from running game - possible?

Post by ewanchapman » 12 Aug 2019 10:36

Hi there,

I have built some multistage supply chain, and (public) transport optimization models, that I would like to test and possibly run parallel to the game, for design & optimization purposes. For that reason, I would like to get access to the game data, such as:

- production: types, location, output (primary and secondary)
- goods: prices (per distance)
- vehicles: costs, capacities, specs
- cities: offer (passengers/mail), growth rates

I'd like to test several scenarios: maximize growth of cities, maximize profits, on the YETI NewGRF scenario. Is it possible to get this data? Many thanks fgor your answers!

Best regards,

Posts: 32
Joined: 10 Aug 2019 16:39
Location: from zere

Re: import data from running game - possible?

Post by Olim » 12 Aug 2019 11:14

I don't know will it help or not, but you may save your game as .scn and edit it as scenario.
Gurus here said that there is even console in the game! Maybe on old 1998-year webpages still saved commands for it.
And, of course, you can use memory scanners.
Sorry for offtop, i'm old newbie.

OpenTTD Developer
OpenTTD Developer
Posts: 4748
Joined: 09 Sep 2007 05:03
Location: home

Re: import data from running game - possible?

Post by Alberth » 12 Aug 2019 17:20

Simplest is to hack the game, and add statements that output the information that you want. At the other side, you read this data, and do your computations.
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Chrill and 6 guests