AAI v0.86 released - AAI v0.875 in SVN
Moderators: hoijui, Moderators
Re: AAI v0.86 released - AAI v0.875 in SVN
Has anybody made any config files for NOTA?
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: AAI v0.86 released - AAI v0.875 in SVN
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
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.
- 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
Is there the last version of AAI for linux 64 Bit??
Re: AAI v0.86 released - AAI v0.875 in SVN
This bug will be fixed in the next versionDjMorgul wrote:Instead, it seems to like to build radar towers.
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...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.
Re: AAI v0.86 released - AAI v0.875 in SVN
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.
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
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.
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.
Re: AAI v0.86 released - AAI v0.875 in SVN
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.
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
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 :)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.
Added log, just in case :)
- Attachments
-
- infolog.txt
- (8.03 KiB) Downloaded 172 times
Re: AAI v0.86 released - AAI v0.875 in SVN
check if the folder structure in the /AAI/ directory looks like
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.
Code: Select all
\aai
\aai\cache
\aai\cfg\map
\aai\cfg\mod
\aai\learn\map
\aai\learn\mod
\aai\log
Re: AAI v0.86 released - AAI v0.875 in SVN
That fixed it! :Dsubmarine wrote:check if the folder structure in the /AAI/ directory looks like
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.Code: Select all
\aai \aai\cache \aai\cfg\map \aai\cfg\mod \aai\learn\map \aai\learn\mod \aai\log
Re: AAI v0.86 released - AAI v0.875 in SVN
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
Even easier to run a create call without checking at all!
Re: AAI v0.86 released - AAI v0.875 in SVN
...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
Agreed :)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.
I assume checking the return values from fopen(...) would be ok?
Re: AAI v0.86 released - AAI v0.875 in SVN
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
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
Not sure how to do that and what problems could arrise if you dont have proper write acces (e.g. on linux)slogic wrote: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
if it isn't possible, the effect will be the same as now, ie. crash, so you lose absolutely nothing by trying.
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: AAI v0.86 released - AAI v0.875 in SVN
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