MantisBT - VCMI
View Issue Details
0002326VCMIAI - Adventure Mappublic2015-11-13 21:032022-04-12 11:04
SXX 
SXX 
normalminoralways
closedfixed 
0.98e 
0.99 
0002326: AI turn takes really long when there is many completely blocked heroes
It's understandable that AI unfinished, but this one is make testing harder as I use map with blocked enemy heroes to test battles.

Map (v3) can be downloaded on forum:
http://forum.vcmi.eu/viewtopic.php?t=1108 [^]
If you end turn AI try to move each of heroes 18 times which is really slow.
We need some code that let us handle that somehow.
No tags attached.
related to 0001043closed  AI endlessly tries to visit Corpse 
related to 0001590closed SXX border guard - useless expenditure of a turn. 
related to 0001713closed Warmonger very long turn AI - SectorMap memory leak 
Issue History
2015-11-13 21:03SXXNew Issue
2015-11-13 21:03SXXStatusnew => assigned
2015-11-13 21:03SXXAssigned To => Warmonger
2015-11-13 21:44SXXDescription Updatedbug_revision_view_page.php?rev_id=3028#r3028
2015-12-04 15:56SXXRelationship addedrelated to 0002212
2015-12-04 16:01SXXAssigned ToWarmonger => SXX
2015-12-09 14:47SXXRelationship deletedrelated to 0002212
2016-01-30 11:33SXXNote Added: 0006385
2016-01-30 11:33SXXRelationship addedrelated to 0002383
2016-02-04 17:27SXXRelationship addedrelated to 0001713
2016-02-07 11:28WarmongerNote Added: 0006409
2016-02-07 11:29WarmongerRelationship addedrelated to 0001043
2016-02-07 11:30WarmongerNote Edited: 0006409bug_revision_view_page.php?bugnote_id=6409#r3168
2016-02-07 15:07SXXNote Added: 0006410
2016-02-25 03:17SXXRelationship deletedrelated to 0002383
2016-02-25 03:21SXXRelationship addedduplicate of 0001590
2016-02-25 05:56SXXRelationship deleted0001590
2016-02-25 05:56SXXRelationship addedrelated to 0001590
2016-09-12 03:12SXXNote Added: 0006653
2016-09-12 03:12SXXStatusassigned => resolved
2016-09-12 03:12SXXFixed in Version => 0.99
2016-09-12 03:12SXXResolutionopen => fixed
2022-04-12 11:04PovelitelStatusresolved => closed

Notes
(0006385)
SXX   
2016-01-30 11:33   
I suppose problem is decreased by this pull request:
https://github.com/vcmi/vcmi/pull/157 [^]

Looks like there is some problem with quest objects visit that make AI visit them indefinitely. Though applied fix likely make AI stop visiting them after some time.
(0006409)
Warmonger   
2016-02-07 11:28   
(edited on: 2016-02-07 11:30)
This can be general problem with all objects that have "blockVis" property, that is AI can't stand on them, including Corpse, Tavern and Prison.

(0006410)
SXX   
2016-02-07 15:07   
Yeah I suspect problem can be related to some code that pretend that hero may visit specific tile while it's blockvis.
(0006653)
SXX   
2016-09-12 03:12   
With recent AI performance optimizations this is no longer issue.
Still worth to check blockvis objects.