Export Company achievements to a file, to read in with php

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
kamikazefish
Engineer
Engineer
Posts: 2
Joined: 22 Mar 2012 15:18

Export Company achievements to a file, to read in with php

Post by kamikazefish »

I would like to export the company achievements to a file, so I could read this in with php and publish it on a site.
The reason I would like to do this is to make a competition with some friends.
Things I would like to see in the export-file per company:

Profit
Income
Amount of cargo delivered (per cargo type)
companyvalue
Company achievements index
number of vehicles
number of trains
number of planes
number of ships
number of stations
minimum profit of vehicle
maximum profit of vehicle
total amount of cargo delivered
number of cargo-types
money
loans

Amount of industries connected by company
cities connected (and how big they are)

Is there a way to do this? Or should I have posted this in the 'suggestions' forum?:P
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Export Company achievements to a file, to read in with p

Post by planetmaker »

Search for openttdlib
It can't do all, but some of it. The rest could be implemented by writing a bot which connects to the admin port of the server. No such thing exists. At least not publicly to my knowledge; I shall be delighted to be proven wrong there.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Google [Bot] and 1 guest