Live stream of in-game data to external

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

Moderator: OpenTTD Developers

Post Reply
svermaak
Engineer
Engineer
Posts: 8
Joined: 02 Oct 2017 14:44

Live stream of in-game data to external

Post by svermaak »

Hi Guys

I have been playing TTD since the start and I am so happy to see that this project is still super active

Just a quick question, is in-game data available somehow (JSON/API and the like) for me to utilize in analytics etc?

Thank again!
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Live stream of in-game data to external

Post by planetmaker »

Some data are available. There's the admin port which has access to some data. See https://wiki.openttd.org/Server_admin_port and links there for more information.
svermaak
Engineer
Engineer
Posts: 8
Joined: 02 Oct 2017 14:44

Re: Live stream of in-game data to external

Post by svermaak »

Managed to write a C++ function that hooks into a C# DLL. The C++ sends a serialized string with the vehicle attributes. Thanks!
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Amazon [Bot] and 12 guests