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
ewanchapman
Engineer
Engineer
Posts: 1
Joined: 12 Aug 2019 10:35

import data from running game - possible?

Post by ewanchapman »

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,
Olim
Engineer
Engineer
Posts: 31
Joined: 10 Aug 2019 16:39
Location: from zere
Contact:

Re: import data from running game - possible?

Post by Olim »

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.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: import data from running game - possible?

Post by Alberth »

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 retired OpenTTD developer does not mean I know what I am doing.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 11 guests