Page 2 of 5

Posted: 07 Jan 2007, 20:03
by hrmph
/me begs someone to take up this project! I still have an old installation of spring with kai fully working on a CD somewhere. I might upload it all somewhere so people can see just how good this AI is.. It could even play GF ffs, and maps without metal but features for reclaiming (its economics system must be genius)!!! I'm constantly wishing for a working version of KAI for the most recent spring version. (Anyone who has talked to me about AIs can verify this ;))

Posted: 07 Jan 2007, 20:43
by tombom
hrmph wrote:/me begs someone to take up this project! I still have an old installation of spring with kai fully working on a CD somewhere. I might upload it all somewhere so people can see just how good this AI is.. It could even play GF ffs, and maps without metal but features for reclaiming (its economics system must be genius)!!! I'm constantly wishing for a working version of KAI for the most recent spring version. (Anyone who has talked to me about AIs can verify this ;))
I would be really interested in seeing this.

Posted: 07 Jan 2007, 21:51
by Tobi
kloot, what kind of changes did you make?

Posted: 07 Jan 2007, 23:46
by AF
If NTai had better documentation and some decent form of logging like NTai then I'd have fixed it by now.

However I'd like to see a moderator go through and label the broken AI threads with [broken]

Posted: 08 Jan 2007, 20:25
by Kloot
Well, despite said lack of documentation, KAI 0.11 is now officially back online. :]

update 29/7: removed outdated screenshots and download link

Posted: 08 Jan 2007, 21:42
by Tobi
Patch? (to fix it in SVN too)

Posted: 09 Jan 2007, 13:03
by 1v0ry_k1ng
OMFG IT WOOKRKS!! Kloot is teh king! working kai kai kai :-)

Posted: 09 Jan 2007, 22:37
by hrmph
Yay for Kloot! Many thanks. Note: I had to delete my old KAI files (the whole taspring/AI/KAI) folder in order to get it to place mexxes properly.

It plays well but I can definitely tell that some areas aren't working as well as they did in the past. It used to jump to level 2 as soon as it had an ample enough supply of resources. Now it takes awhile, even on a high metal map. Also I've found a strange bug... The commander keeps getting stuck on buildings (he will just be walking forever stuck on a building if not moved manually). Hmmm.... In the game im spectating he just got 'stuck' on nothing, he is just walking in place and not even close to any buildings/units/features.

Posted: 10 Jan 2007, 00:09
by Kloot
@tobi:

Can do. I'd like to clean up the code and add some comments first, though.

@hrmph:

The commander getting stuck is due to a (fixed for 0.74b3) bug in Spring itself, which actually affects all builders. I imagine that hampers KAI's buildup a fair bit, so it'll be interesting to see how it performs in the next version.

Posted: 10 Jan 2007, 11:25
by 1v0ry_k1ng
was there a newer KAI released than 0.11?

Posted: 10 Jan 2007, 14:25
by Kloot
Yes, the one discussed at the start of this thread (0.21, which is more of a development version really), but it was never officially released as such before Krogothe left. There's only the source in SVN, which is broken in several ways and which I'm now trying to un-break to a point where it at leasts builds more than just solars and mexes.

(I meant "the next version of Spring" in my previous post BTW, sorry for any confusion)

Posted: 10 Jan 2007, 14:58
by Tobi
Hmm, for me it does build more. On smalldivide, it fills up all untaken mex spots (it only leaves the ones you claim yourself), building sufficient solars in between, then it builds an adv vehicle plant, adv con vehicle, fusion plant etc.

Posted: 10 Jan 2007, 15:21
by Kloot
Hmm, that's weird... a straight SVN checkout compiled directly against the 0.74b2 interface doesn't even get through InitAI() here most of the time (it overflows a std::vector after generating the slopemap in CPathFinder::Init(), or at least vector::M_fill_insert throws a fatal exception), and when it does it takes forever, in the order of two+ minutes.

Edit: this is what 0.21 builds in the rare case it inits successfully...

Posted: 10 Jan 2007, 18:00
by Dimitri
Kai was real good Ai, but now Rai better and i dont think that Kai become more good then Rai. It my opinion and i want believe that i am mistaken - you reborn Kai and he will be great ai of all.

Posted: 10 Jan 2007, 19:10
by 1v0ry_k1ng
RAI? why have I never heard of this? where can it be found?

edit: played around, played 2v2s of RAI against two AAIs and two KAIs.
It played better than AAI
It got whipper by KAI
this was on green comet, mod XTA, stating resources 1000.

When fixed will the newer KAI play better than the old one?

Posted: 12 Jan 2007, 16:38
by jcnossen
Kloot, can you make a patch from the 0.11 changes?

Posted: 12 Jan 2007, 18:10
by 1v0ry_k1ng
if only it had d-gunning :(

Posted: 12 Jan 2007, 20:24
by Kloot
It has now, re-download the dll. ;)

JC: I'll submit one this weekend, little busy ATM.

Posted: 15 Jan 2007, 17:23
by 1v0ry_k1ng
woot!

Posted: 16 Jan 2007, 01:00
by Bobcatben
so what exactly happened to the ai interface that turned the hardest ai ive ever fought against into a non working one for months, which its good that it works now, im just wondering why it didnt for so long, and now that it does its still just a shadow of its former self?