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

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

Fulano
Posts: 9
Joined: 04 May 2008, 23:30

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

Post by Fulano »

Has anybody made any config files for NOTA?
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

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

Post by Pressure Line »

afaik AAI doesnt work with NOTA because of the hubs (AAI cannot do buildings making buildings)
DjMorgul
Posts: 1
Joined: 21 Dec 2008, 02:14

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

Post by DjMorgul »

Hi, I've found two wrong behaviours from the AAI version installed with Spring 0.77b5 (it seems to be AAI v0.872), while spectating AAI vs. AAI battles with Ballanced Annihilation MOD v6.6:

- When the AI is out of energy and using more than it is generating, it doesn't ever build more energy sources buildings (solar collectors or whatever). Instead, it seems to like to build radar towers.

- When it is attacking with a large group of units, both air and ground ones, all of the group retreats to base when the first to arrive air units turn 180 degrees.

These two behaviours together can make AAI vs. AAI battles endless.

Regards,
Morgul.
User avatar
daryl
Posts: 200
Joined: 08 Oct 2006, 10:33

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

Post by daryl »

Is there the last version of AAI for linux 64 Bit??
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

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

Post by submarine »

DjMorgul wrote:Instead, it seems to like to build radar towers.
This bug will be fixed in the next version
DjMorgul wrote: - When it is attacking with a large group of units, both air and ground ones, all of the group retreats to base when the first to arrive air units turn 180 degrees.
Hmm AAI used to retreat much too early (or late) due its imperfect information about enemy units - I'm currently working on a new scouting algorithm which hopefully produces better results...
User avatar
Umrug
Posts: 141
Joined: 27 Nov 2006, 12:57

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

Post by Umrug »

Hi!
Yikes! I'm so happy to see that you are still working on AAI! :)
Just wanted to say that AI is important part of Spring that is overlooked by most players and devs. Submarine, keep up a good work, what you are doing is very important for the entire community!
Hope to see some releases soon :)
Please let us know if we can help.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

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

Post by slogic »

Trying to play vs AAI 0.875 shipped with Spring 0.78.2 got a crash right after the game initialized & countdown timer set to zero.

mod: BA 6.81
map: Coast To Coast Remake
os: winxp sp2 32bit

Tried other AIs (KAIK, RAI). They work without a crash.
Attachments
infolog.txt
(7.78 KiB) Downloaded 161 times
Last edited by slogic on 11 Feb 2009, 23:06, edited 1 time in total.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post by hoijui »

buildbot generated stack trace for this:
http://planetspring.free.fr/spring/stac ... 02645.html

looks like you have to do -2 on the line numbers in AAI.cpp and AAIBuildTable.cpp, though i do not know why, and it is strange then, as i can not see why it could crash there.
maybe submarine has an idea.
cranphin
Posts: 136
Joined: 13 Jun 2005, 16:37

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

Post by cranphin »

slogic wrote:Trying to play vs AAI 0.875 shipped with Spring 0.78.2 got a crash right after the game initialized & countdown timer set to zero.

mod: BA 6.81
map: Coast To Coast Remake
os: winxp sp2 32bit

Tried Other AIs (KAIK, RAI). They work without a crash.
Looks like I have the identical problem. Any place to get a working version ? Sadly unknown-files seems down, so can't get the 0.86 either :)

Added log, just in case :)
Attachments
infolog.txt
(8.03 KiB) Downloaded 172 times
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

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

Post by submarine »

check if the folder structure in the /AAI/ directory looks like

Code: Select all

\aai			
\aai\cache		
\aai\cfg\map		
\aai\cfg\mod		
\aai\learn\map
\aai\learn\mod
\aai\log
If some of those folders dont exist AAI crashes when trying to store its data there. For some reason they are not created when installing the game.
cranphin
Posts: 136
Joined: 13 Jun 2005, 16:37

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

Post by cranphin »

submarine wrote:check if the folder structure in the /AAI/ directory looks like

Code: Select all

\aai			
\aai\cache		
\aai\cfg\map		
\aai\cfg\mod		
\aai\learn\map
\aai\learn\mod
\aai\log
If some of those folders dont exist AAI crashes when trying to store its data there. For some reason they are not created when installing the game.
That fixed it! :D
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post by hoijui »

it would be good to have an error message for that, though i can not see how this error occured. Well, easierst would be to check for the dirs existence in the beginning.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

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

Post by lurker »

Even easier to run a create call without checking at all!
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

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

Post by imbaczek »

...and fail horribly when you don't have write access. or worse, end up in virtualstore.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

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

Post by submarine »

hoijui wrote:it would be good to have an error message for that, though i can not see how this error occured. Well, easierst would be to check for the dirs existence in the beginning.
Agreed :)

I assume checking the return values from fopen(...) would be ok?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

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

Post by Tobi »

Yeah just check for NULL. If it's NULL you can use strerror(errno) to get a char* to an error message.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

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

Post by slogic »

Why not just to create those dirs instead of rasing errors? If you can't create a dir then raise an error.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

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

Post by submarine »

slogic wrote:Why not just to create those dirs instead of rasing errors? If you can't create a dir then raise an error.
Not sure how to do that and what problems could arrise if you dont have proper write acces (e.g. on linux)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

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

Post by imbaczek »

if it isn't possible, the effect will be the same as now, ie. crash, so you lose absolutely nothing by trying.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

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

Post by BrainDamage »

get the current spring datadir and you'll be 100% sure it's writeable in all the OS or spring would have crashed much earlier than the AI would have been initialized
Post Reply

Return to “AI”