Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Dec 10, 2018 9:56 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Aug 24, 2018 5:22 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 113
Location: Czech Republic
Can "GS and AI" control the console?

In order for AI and GS to receive text from players and send them back messages. I know it's going through Sign, but if it was a console, it would be much easier and more natural.

_________________
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
   
PostPosted: Mon Oct 01, 2018 1:40 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 113
Location: Czech Republic
The communication of GS and AI via "Admin port" seems to me a lot complicated and some of the tools that control the admin port seem to me a little documented and some tools are no longer downloadable.
Alternatively, I started working on GS and AI information exchange with a game console through an almost unused variable (for example, the generation_seed variable is only used when creating a new game).
I am testing the forwarding of numbers through the GSGameSettings.SetValue and GSGameSettings.GetValue methods.

I am sorry for my bad English. I'm using a Google translator

_________________
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
   
PostPosted: Fri Oct 19, 2018 5:50 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4538
Location: /home/sweden
If you want to communicate between AIs and GS, then there is a SCP library you can use. (scp = script communication protocol)

A few GS:es expose parameters via it and a few AIs support one or more of those GS:es.

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


Top
   
PostPosted: Sun Oct 21, 2018 9:17 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 113
Location: Czech Republic
Zuu wrote:
If you want to communicate between AIs and GS, then there is a SCP library you can use. (scp = script communication protocol)

A few GS:es expose parameters via it and a few AIs support one or more of those GS:es.


SCP is too complicated.

_________________
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  [ 4 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.