AAI v0.86 released - AAI v0.875 in SVN - Page 4

AAI v0.86 released - AAI v0.875 in SVN

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: AAI v0.86 released (link to binaries included)

Post by AF »

I would say the word 'learn' is misleading. AAI has build tables that govern what it builds. It modifies the weights in these tables based on what killed what. So if a peewee blows up an AK, the AK goes down and the peewee goes up. Kill based statistical analysis basically.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

well, I dont want to start a philosophical discussion about the essence of learning (however I do think remembering experiences and use them as a basis for future decisions is some kind of learning) there is a bit more than just buildtables. AAI also tries to memorize other things like where it encountered enemies, where battles had taken place or how/with what kind of units the enemy used to attack in earlier games...
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: AAI v0.86 released (link to binaries included)

Post by hoijui »

when cross-compiling spring for windows with scons and MinGW 4.2.1 on linux, i get this:

Code: Select all

AI/Global/AAI/AAIBuildTable.cpp: In member function 'float AAIBuildTable::GetFactoryRating(int)':
AI/Global/AAI/AAIBuildTable.cpp:3311: error: call of overloaded 'sqrt(double)' is ambiguous
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:157: note: candidates are: double sqrt(double)
rts/lib/streflop/SMath.h:516: note:                 streflop::Extended streflop::sqrt(streflop::Extended)
rts/lib/streflop/SMath.h:405: note:                 streflop::Double streflop::sqrt(streflop::Double)
rts/lib/streflop/SMath.h:215: note:                 streflop::Simple streflop::sqrt(streflop::Simple)
AI/Global/AAI/AAIBuildTable.cpp: In member function 'float AAIBuildTable::GetBuilderRating(int)':
AI/Global/AAI/AAIBuildTable.cpp:3359: error: call of overloaded 'sqrt(double)' is ambiguous
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:157: note: candidates are: double sqrt(double)
rts/lib/streflop/SMath.h:516: note:                 streflop::Extended streflop::sqrt(streflop::Extended)
rts/lib/streflop/SMath.h:405: note:                 streflop::Double streflop::sqrt(streflop::Double)
rts/lib/streflop/SMath.h:215: note:                 streflop::Simple streflop::sqrt(streflop::Simple)
scons: *** [build/AI/Global/AAI/AAIBuildTable.os] Error 1
i can just delete AAI from my checkout, so i don't care too much, just in case it may be an error of AAI code (which i am not certain).
Myhouse_1991
Posts: 4
Joined: 25 Jun 2008, 19:57

Re: AAI v0.86 released (link to binaries included)

Post by Myhouse_1991 »

Where I can download AAI 0.86? Both links are dead.
Tontow
Posts: 3
Joined: 01 Feb 2007, 00:25

Re: AAI v0.86 released (link to binaries included)

Post by Tontow »

Is there a config file for BA 6.31?
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

Since I have been asked about the current state of AAI several times during the last few weeks, here's a short update:

I have one of my final exams next week, afterwards I'll attend some kind of summer school on quantum computing and travel to London with my girlfriend, which means there wont be much time to work on AAI the next four weeks.

The latest SVN version (AAI v0.869) has many fixes/improvements compared to the last release version. Unfortunately, it is not compatible to latest spring release version (0.76b1), which is the reason why there hasnt been any public release.

I hope thespring 0.77 release will be soon, meanwhile you may get the latest SVN spring installer from buildbot, it also has binaries of AAI 0.869.

Plans for the near futue:
- Reimplement reclaiming/resurrecting (works more or less atm, but I haven't committed it yet)
- Check/Improve the combat unit selection (e.g. better react to player and current situation)
User avatar
Umrug
Posts: 141
Joined: 27 Nov 2006, 12:57

Re: AAI v0.86 released (link to binaries included)

Post by Umrug »

Quantum physics school AND a girlfriend? Man, who would ever believe that?

AND btw - life of people would be easier if AAI used some default config or created a new one when it detects unknown mod... thats probably a little thing for you, but a big usability improvement. It could still, for example, print warning on every load regarding that the config is not found etc (thus reminding people to actually try and get a good one), but still try to work... Thats one hell of a useful feature!

Good luck with quantum physics and girl though :)
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

I#ve just committed AAI v0.87 to SVN

Changelog:
- Proper detection of amphibious ground units (was causing AAI to freeze on water maps)
- Prevent AAI from blocking buildqueues for combat units by requesting too many scouts

and some minor balancing changes....
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

Damn, the latest changes introduced a couple of new bugs which cripple AAIs economic behaviour a lot, i'll try to commit a fix soon
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

ok, fix has been committed....

AAI v0.872
- Refactored code for getting rally points and positions to withdraw units and made

- Construction units that are member of the DONT_BUILD list will not be built anymore

- Fixed two bugs that have been introduced in v0.87 and could cripple AAI's economy a lot
merijn
Posts: 59
Joined: 17 Feb 2007, 18:43

Re: AAI v0.86 released (link to binaries included)

Post by merijn »

http://pastebin.ca/1228560

why does AAI think there is water sectors on a all land map cooper hill? ;)
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

I cant open the linked file; I ran a test myself an got this
AAI 0.872 running mod BA_Installer_Version.sd7

Mod config file loaded
General config file loaded
New map cache-file created

Loading map type:
land map detected

Map: Cooper_Hill_TNM02-V1.smf
Mapsize is 512 x 384
5 sectors in x direction
4 sectors in y direction
x-sectorsize is 816 (Map 102)
y-sectorsize is 768 (Map 96)
23 metal spots found

1 continents found on map
1 land and 0 water continents
Average land continent size is 12288
Average water continent size is 0
merijn
Posts: 59
Joined: 17 Feb 2007, 18:43

Re: AAI v0.86 released (link to binaries included)

Post by merijn »

You can't open the pastebin? (its a site, not a file for download, just click it)

here is a summary:


1 continents found on map
1 land and 0 water continents
Average land continent size is 12288
Average water continent size is 0

...

Adding water sector 0,2 to base; base size: 3

Base expanded by BuildFactory() (water sector)

Adding water sector 0,3 to base; base size: 4

Base expanded by BuildFactory() (water sector)

...
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

ah, now i know what you mean... Actually "adding water sector" means AAI is trying to add a sector to its base with a lot of water, it does not mean that AAI necessarily found one.

But thx for reporting this, on a pure land map AAI should not request water based buildings, I#m gpoing to have a look at this bug
User avatar
daryl
Posts: 200
Joined: 08 Oct 2006, 10:33

Re: AAI v0.86 released (link to binaries included)

Post by daryl »

submarine wrote:ah, now i know what you mean... Actually "adding water sector" means AAI is trying to add a sector to its base with a lot of water, it does not mean that AAI necessarily found one.

But thx for reporting this, on a pure land map AAI should not request water based buildings, I#m gpoing to have a look at this bug
There is an AAI v0.86 version working with SPRING 0.77b5 ??
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released (link to binaries included)

Post by submarine »

should come with the installer...
User avatar
daryl
Posts: 200
Joined: 08 Oct 2006, 10:33

Re: AAI v0.86 released (link to binaries included)

Post by daryl »

submarine wrote:should come with the installer...

IS AAI 0.86 = AAI of installer?? lol sorry i don't know about it!!!!!! thx!!!
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: AAI v0.86 released - AAI v0.875 in SVN

Post by submarine »

AAI v0.875

- Current ammount of land/water within the base is taken into account when selecting factories (e.g. dont order water factories on a land map anymore)

- Improved AAIs behaviour on water maps with start positions on islands/land masses

- Improved metal extractor construction algorithm (spots closer to available builder, faster algorithm, works better if there are land and sea spots available at the same time)

- Continent file version bumped to 0.87

- Fixed a crash on shut down introduced in Spring v0.77


Binaries of the latest AAI version are included in the Spring SVN installer (obtainable via buildbot)
abchirk
Posts: 7
Joined: 08 Nov 2008, 07:18

Re: AAI v0.86 released - AAI v0.875 in SVN

Post by abchirk »

Hi,
when I want to start a game with the AAI I get a Bufferoverflow error...
maybe here is someone able to help me with that?
Error:
Line 141
http://phpfi.com/375267
Post Reply

Return to “AI”