Page 1 of 1

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

Posted: 22 Mar 2012 15:41
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

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

Posted: 22 Mar 2012 15:57
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.