MantisBT - VCMI
View Issue Details
0002059VCMIAI - Adventure Mappublic2015-02-09 17:232023-01-10 16:01
SXX 
Warmonger 
normalmajorsometimes
assignedopen 
0.97b 
 
0002059: AI scouts heroes may block path for others when path is blocked by armed instance
So here is problem that can be easily reproduced on attached map or on any map where only one tile way available. Initially AI start to explore on map with not too powerful heroes that usually unable to win any battle so they're not going to try.

When this happen on small map it's possible that there is already 1-2 more other heroes that already blocked way back to this scout. As result hero that have army and assigned to attack this armed instance unable to go here because of scout, but scout can't go back because other heroes block his way.

So there need to be smart way to solve such situations. Though I'm currently made some dirty hack for myself that just make AI delete heroes that block way for others more than few times, but this not solution.
  - Run game on attached map or load save (if it's compatible).
  - Use "vcmieagles" cheat to see map.
  - Now watch what AI's doing and both blue and orange will likely stuck in their zones because one of heroes going to block way for others.
Save is for 1396476869aa52ac21fe92f1ac4ae000dd668b9d.
No tags attached.
? Wasteland.h3m (9,948) 2015-02-09 17:23
https://bugs.vcmi.eu/file_download.php?file_id=2098&type=bug
zip bug_al_stuck_heroes.zip (648,952) 2015-02-09 17:31
https://bugs.vcmi.eu/file_download.php?file_id=2099&type=bug
Issue History
2015-02-09 17:23SXXNew Issue
2015-02-09 17:23SXXStatusnew => assigned
2015-02-09 17:23SXXAssigned To => Warmonger
2015-02-09 17:23SXXFile Added: Wasteland.h3m
2015-02-09 17:31SXXFile Added: bug_al_stuck_heroes.zip
2015-02-09 18:47SXXNote Added: 0005436

Notes
(0005436)
SXX   
2015-02-09 18:47   
Anyone interested may follow this branch:
https://github.com/ArseniyShestakov/vcmi/commits/internalOnlyExperimentAI [^]
Though as should be obvious from it's name this will be never pulled in upstream until I find right solution for AI problems I found. Then I'll create new branch with properly coded solution and will sent pull request.