MantisBT - VCMI
View Issue Details
0001054VCMIAI - Adventure Mappublic2012-08-26 09:562014-05-30 17:41
Warmonger 
Ivan 
normalmajoralways
closedfixed 
0.89 
0.9 
0001054: AI won't build towns beyond certain level
After some games and many months on medium-rich random maps I'm pretty sure that:
In Castle, only upgraded Halbardiers, basic archers & swordsmen are built
In Dungeon, only upgraded Troglodytes, harpies and basic Evil Eyes are built
In Tower, only upgraded Gremlins, basic Gargoyles and Stone Golems

For other towns more dwellings are built, but they always cap at certain level.
No tags attached.
rar AIbuilding.rar (441,489) 2012-08-26 11:23
https://bugs.vcmi.eu/file_download.php?file_id=1044&type=bug
Issue History
2012-08-26 09:56WarmongerNew Issue
2012-08-26 09:56WarmongerStatusnew => assigned
2012-08-26 09:56WarmongerAssigned To => Tow
2012-08-26 10:54IvanNote Added: 0002927
2012-08-26 11:23WarmongerFile Added: AIbuilding.rar
2012-08-26 11:24WarmongerNote Added: 0002928
2012-08-26 11:24WarmongerNote Edited: 0002928bug_revision_view_page.php?bugnote_id=2928#r1850
2012-08-26 11:40IvanNote Added: 0002929
2012-08-26 11:41IvanNote Edited: 0002929bug_revision_view_page.php?bugnote_id=2929#r1852
2012-08-26 12:24IvanNote Added: 0002930
2012-08-26 12:28IvanNote Added: 0002931
2012-08-26 12:28IvanStatusassigned => resolved
2012-08-26 12:28IvanFixed in Version => 0.9
2012-08-26 12:28IvanResolutionopen => fixed
2012-08-26 12:28IvanAssigned ToTow => Ivan
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002927)
Ivan   
2012-08-26 10:54   
Maybe AI doesn't have enough resources for this? For example all gold was spent on creatures or AI does not have captured mines to get enough rare resources. I don't think that AI will use market to build in towns.

Can you upload save after this "certain level" was reached?
(0002928)
Warmonger   
2012-08-26 11:24   
Here you go, have a look.

I'm pretty sure that first AI implemntation had built everything by month 6.

(0002929)
Ivan   
2012-08-26 11:40   
(edited on: 2012-08-26 11:41)
It is just me or it takes around 20 seconds for AI turn to start?
Client processing "FowChange" message for far too long

And it is definitely not resources problem - 100+ of all resources and 600k gold.

(0002930)
Ivan   
2012-08-26 12:24   
Actually it is server generates that pack for too long. Fixed.

And found AI bug too. Building prerequisites include already built buildings so AI thinks that it will take too long to built new buildings.
This is true for all buildings except basic ones.
(0002931)
Ivan   
2012-08-26 12:28   
Committed, rev 2845.

Can't test this a lot - AI is endlessly trying to visit banks but first turn works - AI builds something in every town.