MantisBT - VCMI
View Issue Details
0003036VCMIAI - Adventure Mappublic2019-02-14 14:022019-03-21 14:48
Dydzio 
Nullkiller 
normalminoralways
resolvedfixed 
Microsoft WindowsWindows 7Home Premium x64
1.next 
1.next1.next 
0003036: Some unexpected crap happens in AI behavior - expecting army exchange then exploration
On attached map AI behaves unexpectedly during its turn. Expected behavior is to give army to one hero during GatherArmy decomposition. Then heroes should move around to explore as army guarding castle is too strong for them. Instead heroes end each turn next to each other, error "Hero Dace tries to visit himself" appears before AI turn ends on each turn passed. Also make sure you read "Additional Information" below before working on this bug.
With newest daily build run attached map, use vcmieagles cheat and see that heroes get stuck next to each other and error related to hero trying to visit himself appears in console before AI ends turn.
Requires newest commit https://github.com/vcmi/vcmi/commit/5f87c98186e9f145c57c036422b1d918b52edff8 [^]

If you move hero Dace in map editor 1 tile upwards the bug won't appear. Changing army composition of heroes may cause bug to not appear as well
No tags attached.
? vcmiaistacksplit.h3m (8,599) 2019-02-14 14:02
https://bugs.vcmi.eu/file_download.php?file_id=2984&type=bug
Issue History
2019-02-14 14:02DydzioNew Issue
2019-02-14 14:02DydzioStatusnew => assigned
2019-02-14 14:02DydzioAssigned To => Nullkiller
2019-02-14 14:02DydzioFile Added: vcmiaistacksplit.h3m
2019-02-16 09:15NullkillerNote Added: 0007751
2019-02-16 13:23WarmongerNote Added: 0007752
2019-03-21 14:48DydzioStatusassigned => resolved
2019-03-21 14:48DydzioFixed in Version => 1.next
2019-03-21 14:48DydzioResolutionopen => fixed

Notes
(0007751)
Nullkiller   
2019-02-16 09:15   
Will be fixed in https://github.com/vcmi/vcmi/pull/552 [^]
(0007752)
Warmonger   
2019-02-16 13:23   
:D Finally someone figured that one out, great job!

Also, might help with heroes trading armies between each other indefinitely (currently patched around).