Zuu and I made the Script Communication Protocol (SCP), and before you asked what is SCP ?
SCP is 3 things:
- a protocol to allow scripts to communicate with each other
- an implementation library for Goal Script
- an implementation library for AI script
So an AI, using the SCP library for AIs, can communicate with a GS that use the SCP library for GS. AI->AI communication is planed, but has not been finished and will be restricted by AI and GS settings.
With SCP, an AI can ask a GS for its settings, goals... anything the GS wish to provide to the AI, allowing the AI to really handle the GS in use.
What the AI or GS can ask/answer is all up to the AI/GS authors, we provide the interface to speak, but you must create your own API (through commands and command sets; see the wiki page) so others devs could use it.
You can grab :
Current (not yet finished) documentation can be found here : http://wiki.openttd.org/Script_communication_protocol
As these libs are used by devs and not by users, I'm sure even without doc, many would love to try it and start implementing it in their own scripts. Since this is work in progress, we don't yet publish the libs in bananas yet, but you can get them here. We still need to document the source code and build the API documentation and the implementation documentation.
The libraries are licensed under GNU/Affero, any AI/GS incompatible with it (non GNU/GPL), can still create their own implementation of the protocol, see the wiki for the link to the protocol.
And you can get here our test AI and GS using SCP as sample of how it works, except for the demonstration, they are of no use. Also the latest revision of the GS/AI Libs...http://dev.openttdcoop.org/projects/scr ... ow/package
We're at a point where comments and feedback would help us, hence that post
Edit: i have remove the files attachments, as versions evolve fast, it's better to grab them from http://dev.openttdcoop.org/projects/scr ... ow/package