company name, manager name and all data in _score_part (although money and loan are done separate to get up-to-date data. The php file then just parses this and puts in into a table.
Included features C-part:
- print out quarterly statistics, including all _score_part info
- include company name, manager name and company color.
- split up vehicles into trains, roadvehs, ships, planes
- active both in single and in multiplayer.
- statistics can be made live, during game.
- result is a xml-file
- load the xml file associated with a savegame and automatically saves the xml file under the same name as the savegame. Feature disabled for autosaves.
Known issues C-part:
- if the player on the server (or an AI) does not change his manager name, it becomes a random name which tends to be A. A. Adams most of the time.
- Same with company name, which tends to be Ivenville Transport.
- The is no global xml tag, therefore <xml> and </xml> should be added before parsing.
Included features PHP-part:
- make graphs of all numerical data available.
- automaticly scale graphs.
- can grab the statistics.xml file from the openttd directory, when adressable by local path.
Known issues PHP-part:
- not a nice browsable webpage (ameliorated)
- temporarily broken due to xml conversion
Upcoming features: (in expected order of fullfillment)
- support for aggregated views over decades
- include server name in statistics
- output players who played in a company
- show joining/leaving players
EDIT 14/06/06: The patch is now fully functional, apart from aforementioned minor flaws, in both single and multiplayer.
EDIT 11/07/06: After a long pause due to exams, xml conversion has started. Expect a working patch in a week. Attached files will be updated then.
I'm looking forward for any suggestions, be it coding style, technique or just improvements.

Attached are:
- patch to rev 5286 (Many thanks to TrueLight for helping me out!)
External links:
- An example of the results results
- The php code
Latest update links: 14/06/2006