Can "GS and AI" control the console?

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
agentw4b
Traffic Manager
Traffic Manager
Posts: 216
Joined: 14 Apr 2017 15:51
Location: Czech Republic

Can "GS and AI" control the console?

Post by agentw4b »

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 with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
agentw4b
Traffic Manager
Traffic Manager
Posts: 216
Joined: 14 Apr 2017 15:51
Location: Czech Republic

Re: Can "GS and AI" control the console?

Post by agentw4b »

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 with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Can "GS and AI" control the console?

Post by Zuu »

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)
agentw4b
Traffic Manager
Traffic Manager
Posts: 216
Joined: 14 Apr 2017 15:51
Location: Czech Republic

Re: Can "GS and AI" control the console?

Post by agentw4b »

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 with names "Experimental games" .
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 48 guests