Standard chat protocol for AIs?

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
felipe
Trained
Trained
Posts: 63
Joined: 05 Jun 2012, 20:19

Re: Standard chat protocol for AIs?

Post by felipe »

Hi dak180,
I succesfully compiled warzone on a fresh osx 10.8 install with only xcode 4.5.3 using this command:

Code: Select all

xcodebuild -project Warzone.xcodeproj -target Warzone -configuration Release -sdk macosx10.7
To produce 10.7+ executables this is lot easier than having to install xcode 3.x and enable the 10.5 sdk.

BTW, nice work you have done on mac builds, thx :)
themac
Trained
Trained
Posts: 412
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Standard chat protocol for AIs?

Post by themac »

I can not download several GB of Xcode package with my slow internet connection. :-/
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Standard chat protocol for AIs?

Post by vexed »

There is a snapshot of a recent master build here: http://buildbot.wz2100.net/files/master/mac/

You can thank dak180 for that.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
themac
Trained
Trained
Posts: 412
Joined: 17 Jul 2009, 19:14
Location: Germany

Re: Standard chat protocol for AIs?

Post by themac »

Tnx dak. :)
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Standard chat protocol for AIs?

Post by aubergine »

I was just looking at DyDo AI docs for it's chat commands: http://www.dydo-ai.kilu.de/?p=552

I noticed that with DyDo, you could prefix a command with / to apply that command to all AIs, both friend or foe. Without the /, only allied DyDo's process the command.

In WZ 3.2+, I assume the same is handled by putting a '.' at start of messages (allies only) or not (all players)...

NoQ's syntax seems to work really well, although I wish there was a way to not need to always type the !nb.

I was wondering if the following syntax would make sense, it's sort of a flexible combination between NullBot and older AIs:

Code: Select all

[![<ai>]] msg [params...]
If msg starts with "!" it means it's for AIs only, not human players. If no ! (which also means no <ai> bit) then the message is aimed at human and AI players.

If an <ai> is specified after the !, which is an abbreviation for the AI's name, eg. "nb" for NullBot, then only that specific breed of AI processes the message. If no <ai> breed specified, then it's generic to all AIs that get the message.

List of suggested <ai> ids:

* nb = NullBot
* sf = Semperfi
* nx = Nexus
* cn = Contingency
* nrs = NRS AI (if ported to 3.x)
* eg = EggPlant

The msg component can be anything, but it would be nice if all AIs supported the following:

* truck - ask for a truck
* power - ask for some power
* help - ask for help (at beacon)
* tx - thanks for help (allows help to be withdrawn)

Optional but also desirable:

* who - respond with version and personality/flavour
* res - allow setting of research path (see NullBot for example)
* set - set a flag, such as personality (see NullBot for example)

Examples:

.help - ask any human or AI ally for help at your beacon
.! help - ask any AI ally for help at your beacon
.!nb help - ask any NullBot AI for help at your beacon
who - ask all players to introduce themselves (likely only the AI players will respond, and even then on only in sp games?)
3truck - ask player 3, human or AI, for a truck
.! truck - ask AI allies for a truck
.!nb - ask NullBot allies for a truck

Maybe if ! could == . as far as chat interface is concerned, but filter to AI allies? Then . = all allies, ! = just AI allies.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

Re: Standard chat protocol for AIs?

Post by Ezio »

it might be good too if we add quick chat button since it would be faster to press and reduce typo, like 'hlep me' or so. :hmm:
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: Standard chat protocol for AIs?

Post by Shadow Wolf TJC »

aubergine wrote:List of suggested <ai> ids:

* nb = NullBot
* sf = Semperfi
* nx = Nexus
* cn = Contingency
* nrs = NRS AI (if ported to 3.x)
* eg = EggPlant
For the record, the AI that I was working on earlier, before starting work on NullBotSW, was called "ShadowBot", so I'd probably call dibs on the shortened phrase "sb". Although ShadowBot was originally going to be designed for use in Contingency, I'm thinking about making it more of a mainstream AI later on.
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
Post Reply