Page 1 of 1

AI Changes (3.2.2)

Posted: 10 Dec 2016, 21:20
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

Re: AI Changes (3.2.2)

Posted: 10 Dec 2016, 21:48
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).

Re: AI Changes (3.2.2)

Posted: 10 Dec 2016, 22:02
by Skami
Thanks I'll definitely use these as a reference :)

Re: AI Changes (3.2.2)

Posted: 13 Dec 2016, 18:26
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).