AI Changes (3.2.2)

For AI and campaign script related discussions and questions
Post Reply
User avatar
Skami
Greenhorn
Posts: 8
Joined: 14 Sep 2008, 00:44

AI Changes (3.2.2)

Post by Skami »

To whom it may concern

I recently installed 3.2.2 and figured I would give creating my own bot a try.
However I was unlucky with this due to the fact that the documentation found here: https://warzone.atlassian.net/wiki/disp ... .ai)+Files is outdated.

the AI file does not exist anymore and has been replaced with a JSON file containing something like:

Code: Select all

{
	"AI" : {
		"js" : "Kami.js",
		"name" : "Kami JS",
		"tip" : "Kami AI"
	}
}
Just figured I would post it here since I do not have the rights to edit the documentation
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: AI Changes (3.2.2)

Post by Berserk Cyborg »

To get a general idea what you can do, you can see what other AI makers have done.
Nullbot Artilleriya Semperfi JS
Warzone Javascript function references: http://buildbot.wz2100.net/files/javascript/

Each is unique in its own way and probably do some things differently than each other. (maybe we should have some kind of standard or library that all AI can share).
User avatar
Skami
Greenhorn
Posts: 8
Joined: 14 Sep 2008, 00:44

Re: AI Changes (3.2.2)

Post by Skami »

Thanks I'll definitely use these as a reference :)
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: AI Changes (3.2.2)

Post by NoQ »

maybe we should have some kind of standard or library that all AI can share
Some high-quality work on providing a useful utility library was done by aubergine during his work on his wiki.

Pieces of NullBot should be reusable, but they are mostly too unrefined to be useful. One thing i definitely suggest re-using is the system of "rulesets" which abstracts the AI away from game rules/mods. In fact, it'd be great to have all AIs consume rulesets in the same format - this way modders could provide the rulesets themselves and porting all AIs to all mods becomes trivial. The current ruleset system is still not quite great though, it has some items hardcoded (eg. the hardcoded equivalence of "cyborgs" (droids that die against machineguns) and "cyborgs" (droids that are produced as fixed templates) and "cyborgs" (droids that are produced in the cyborg factory) really hurts the concept and in fact works for the default ruleset only).
Post Reply