Page 3 of 3
Posted: 03 Dec 2005, 15:42
by submarine
ok i found the bug: aai crashes if a building which is under construction is destroyed after its builder has been destroyed
Posted: 04 Dec 2005, 18:03
by AF
Submarine, looking through the ported code I copied to NTAI I noticed that there's a possible divide by zero error in AAI.
There's a bit where you get a float3 position then you do some divides based on it but you havent done any checks to see if the returned position is an error value such as UpVector(0,-1,0) or ZeroVector(0,0,0). As a result when you do the likes of pos.x/xSize you're doing 0/Xsize and generating exceptions.
Posted: 04 Dec 2005, 18:24
by jcnossen
0/Xsize is perfectly valid, pos.x/0 is not.
Posted: 04 Dec 2005, 18:28
by AF
Well it fitted in with the pattern of:
exception :: Update
30 lines onwards in AILog.htm..
exception Update
Changed to fix above problem
AIlog has no exceptions save those related to XTA not having AA units as is to be expected.
Eitherway it would be good to keep the check in for godo practise.
Posted: 05 Dec 2005, 05:09
by Iax
nice ai, except for the unhandled exception error that keeps shutting it down.
Posted: 05 Dec 2005, 09:05
by submarine
aai v0.3 is under way and this has already been fixed. i just dont want to release an unfinished version
Posted: 05 Dec 2005, 09:16
by Iax
NP, i just liked that we could play coop vs it using AA
NTAI doesnt even work right now.
Posted: 05 Dec 2005, 20:20
by AF
NTAI has been fixed. I copied over the wrong file into the wrong archive and left out a folder it needed.
Any feature lists for v0.3 sub?
Posted: 05 Dec 2005, 21:04
by submarine
- improved and extended buildtable (mainly to save more cpu time for other stuff and to prepare to support naval units) (done)
- hopefully no more crashbugs (done)
- better ressource management (just started to work on it)
- aai builds base defences (25% done, placement has to be improved)
Posted: 06 Dec 2005, 01:55
by sintri
woot naval support, number 1 best thing about ta, that and air units, ground units just aren't as appealing as a massive fleet fighting with aerial support.
course you're entitled to your own opinions, however wrong they may be
