Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Jun 18, 2018 10:47 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu May 14, 2015 2:58 am 
Offline
Engineer
Engineer

Joined: Thu May 14, 2015 2:47 am
Posts: 9
I was wondering if it would be possible to add an ability to define new admin console commands in the same way that game scripts are defined?

I would love to access a stream of data from OpenTTD to do some data analysis on, and the current API integration through the admin console doesn't give me information about all of the vehicles (cargo, capacity, age, profit etc.).

I was thinking about patching the console to include this command, however I realised that if it was possible to define the command using a game script it would be much more flexible.


Top
   
PostPosted: Thu May 14, 2015 7:03 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4535
Location: /home/sweden
Hello,

Did you have a look on Server GS?

It expose almost the entire GS API through the Admin port. (exceptions are mentioned in the top of the linked thread)

At the bottom of that thread, there is a version 3 that I haven't uploaded yet which is more forward compatible than version 2 on bananas.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
PostPosted: Tue Feb 13, 2018 5:24 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 85
Location: Czech Republic
Is there any analyzing text editor that would capture JSON output from the Admin port? Any Admin Port Client?

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.