Page 5 of 6
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 25 Nov 2008, 23:21
by Fulano
Has anybody made any config files for NOTA?
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 26 Nov 2008, 00:36
by Pressure Line
afaik AAI doesnt work with NOTA because of the hubs (AAI cannot do buildings making buildings)
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 21 Dec 2008, 02:40
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 21 Dec 2008, 18:03
by daryl
Is there the last version of AAI for linux 64 Bit??
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 25 Dec 2008, 15:58
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...
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 26 Dec 2008, 01:48
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 07 Feb 2009, 01:45
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 07 Feb 2009, 11:50
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 16:43
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 :)
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 17:12
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 19:32
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
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 20:56
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 21:21
by lurker
Even easier to run a create call without checking at all!
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 08 Feb 2009, 21:30
by imbaczek
...and fail horribly when you don't have write access. or worse, end up in virtualstore.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 10 Feb 2009, 20:12
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?
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 11 Feb 2009, 13:05
by Tobi
Yeah just check for NULL. If it's NULL you can use strerror(errno) to get a char* to an error message.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 11 Feb 2009, 23:01
by slogic
Why not just to create those dirs instead of rasing errors? If you can't create a dir then raise an error.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 12 Feb 2009, 16:54
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)
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 12 Feb 2009, 16:56
by imbaczek
if it isn't possible, the effect will be the same as now, ie. crash, so you lose absolutely nothing by trying.
Re: AAI v0.86 released - AAI v0.875 in SVN
Posted: 12 Feb 2009, 17:29
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