View Full Version : AI doesn't use bombers


MatzeHH
Jul 27, 2008, 01:36 PM
Hi Solver!

Please notice this post and the following:
http://forums.civfanatics.com/showthread.php?p=7073089#post7073089

Seem like your patch prevents the AI from using bombers.

Matze

Wolfshanze
Jul 28, 2008, 12:48 PM
Hey... I'm using a modified version of Solver's v0.19 patch with BtS v3.17 and I noticed no difference in AI bomber use... at least so far as I could tell from default v3.17 to Solver's patch.

See my test results here (http://forums.civfanatics.com/showthread.php?p=7079124#post7079124).

EDIT:
Didn't know this was in reference to only occurring if interceptors were present... but yes, it's confirmed if interceptors are present the AI won't fly missions.

jdog5000
Jul 29, 2008, 02:43 AM
I tracked down the cause. The additions in CvUnitAI::AI_attackAirMove which I believe were intended to cause lightly damaged planes to keep attacking when no interceptors were present was not placed inside an if( getDamage() > 0 ) and apply to all planes. If there is an interceptor in the area AI bombers will not perform any kind of bombing run with the code as it stands in 0.19.

The next version of Better BTS AI (0.35) will be out soon with one approach to fix this.

Wolfshanze
Jul 29, 2008, 10:22 AM
I tracked down the cause. The additions in CvUnitAI::AI_attackAirMove which I believe were intended to cause lightly damaged planes to keep attacking when no interceptors were present was not placed inside an if( getDamage() > 0 ) and apply to all planes. If there is an interceptor in the area AI bombers will not perform any kind of bombing run with the code as it stands in 0.19.

The next version of Better BTS AI (0.35) will be out soon with one approach to fix this.
Thanks jdog for that info!

Solver
Jul 31, 2008, 09:27 AM
Thanks jdog! I screwed up. I expect to post a new version this weekend and should address this.