MantisBT - VCMI
View Issue Details
0000021VCMIAI - Battlespublic2009-10-02 11:412014-02-01 22:24
Tow dragon 
 
normalminorhave not tried
closedopen 
0.71 
 
0000021: AI focuses attack on War Machines rather than units
Originally reported by ral_il_an as 0.71b#81: AI prefers Ballista than units (Attack Ballista first)

Further tests revealed that it's valid for any War Machine (see notes below; summary also updated to avoid confusion) - Zamolxis
copied from sf tracker

Forum report: http://forum.vcmi.eu/viewtopic.php?p=2654#2654 [^]
No tags attached.
Issue History
2009-10-02 11:41Tow dragonNew Issue
2009-10-02 11:49IvanNote Added: 0000005
2009-10-02 13:04ZamolxisNote Added: 0000014
2009-10-02 13:44ZamolxisCategoryAI - battle =>
2009-10-07 21:37ZamolxisNote Edited: 0000014bug_revision_view_page.php?bugnote_id=14#r85
2009-10-17 01:14ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=250#r250
2009-10-17 01:14ZamolxisAdditional Information Updatedbug_revision_view_page.php?rev_id=252#r252
2009-10-17 13:06majaczekNote Added: 0000112
2010-03-02 22:31ZamolxisNote Added: 0000756
2010-03-02 22:32ZamolxisNote Edited: 0000756bug_revision_view_page.php?bugnote_id=756#r674
2010-05-29 18:49ZamolxisProduct Version => 0.71
2010-05-29 18:58WarmongerNote Added: 0000884
2010-05-29 18:58WarmongerNote Edited: 0000884bug_revision_view_page.php?bugnote_id=884#r759
2010-05-29 18:59WarmongerNote Edited: 0000884bug_revision_view_page.php?bugnote_id=884#r761
2010-07-14 10:59ZamolxisNote Added: 0001127
2011-03-02 23:42ZamolxisSummaryAI focuses attack on Ballista (0.71b#81) => AI focuses attack on War Machines rather than units
2011-03-02 23:42ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=1256#r1256
2011-03-02 23:42ZamolxisAdditional Information Updatedbug_revision_view_page.php?rev_id=1257#r1257
2011-03-02 23:43ZamolxisNote Edited: 0001127bug_revision_view_page.php?bugnote_id=1127#r1259
2011-03-02 23:45ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=1260#r1260
2011-03-02 23:46ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=1261#r1261
2011-03-03 06:08WarmongerNote Added: 0001594
2011-03-03 06:14WarmongerNote Edited: 0001594bug_revision_view_page.php?bugnote_id=1594#r1263
2011-03-03 11:47ZamolxisNote Added: 0001595
2014-02-01 22:24IvanNote Added: 0004372
2014-02-01 22:24IvanStatusnew => closed

Notes
(0000005)
Ivan   
2009-10-02 11:49   
It seems that catapult has same problem even with starting troops ( = no chances to kill 1000-hp catapult)
(0000014)
Zamolxis   
2009-10-02 13:04   
(edited on: 2009-10-07 21:37)
I also noticed that some AI shooters prefer my Tent than my troops. So it's possible AI prefers War Machines in general. I'll try to keep an eye on this to see if there is a rule, 'cause I also had it that they were not shooting Tent, no matter how many times I was trying to replay the battle.

(0000112)
majaczek   
2009-10-17 13:06   
In WoG it almost always prefer my war machines if in range. however i use war machine booster scripts. So I think AI focuses on war machines due to importing AI values from heroes don't mind if it is imported properly or not (ie. in H3 there may be flags in AI value which when not cleared to comparison make AI value really huge)

anything in - I think it's considered normal behaviour, but if too often it may need a tweak
(0000756)
Zamolxis   
2010-03-02 22:31   
(edited on: 2010-03-02 22:32)
When Gold & Black Dragons at Utopia go for my Tent & Ammo Cart (maybe because they're more in front of their smoky noses) i/o creatures which could actually deal them damage, than it definitely needs a tweak. ;)

(0000884)
Warmonger   
2010-05-29 18:58   
(edited on: 2010-05-29 18:59)
War machines should not be present at all in banks in first place.

(0001127)
Zamolxis   
2010-07-14 10:59   
(edited on: 2011-03-02 23:43)
I guess now that damage calculation is implemented, perhaps the most basic battle AI tweak that needs implemented, would be to go for the enemy stack on which it can inflict most damage.

Edit: The basic Battle AI changes brought by 0.84 have brought little improvement to this. Some high level enemy creatures do go for the easy kill among our units, but the weaker enemies still waste lots of their shots or melee attacks on our machines.

(0001594)
Warmonger   
2011-03-03 06:08   
(edited on: 2011-03-03 06:14)
I believe attacking war machines with weaker units is not totally pointless and should be avaliable. More subtle AI will be added in the future, as it's not likely to find good solution of this issue algorythmically.

(0001595)
Zamolxis   
2011-03-03 11:47   
I agree with that. I didn't mean they shouldn't attack War Machines, just not so much. I had enemy shooters targeting my machines i/o my Enchanters and in the end they didn't manage to do any kill while I was killing them with the Enchanters.

But I know battle AI is "in the works", so this is not a bug per se, just something to keep in mind for the next AI tweaks.
(0004372)
Ivan   
2014-02-01 22:24   
Fixed long time ago, closing.