MantisBT - VCMI
View Issue Details
0003034VCMIAI - Adventure Mappublic2019-02-11 10:262022-03-22 17:44
mpech 
 
normalminoralways
newopen 
Ubuntu 16.04.5 LTS
0.99 
 
0003034: endless loop when doing AI does a trade
hi guys,

got an infinite loop when ai(red) doing a trade


Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
Cannot evaluate goal TRADE 40 of wood at Trading Post
...
load game
end turn
look at red player going on the market "trying" to trade
then red does not end its turn

by dumbly commentating (from b/AI/VCAI/Goals/CollectRes.cpp)

- return sptr(Trade(resID, value, objid).setisElementar(true)); //we can do this immediately
+ std::cout<<"new trade"<<resID<<":"<< value<<":"<< objid<<":"<<howManyCanWeBuy<<std::endl;
+ //return sptr(Trade(resID, value, objid).setisElementar(true)); //we can do this immediately

red can end its turn.

R1
zip sun.zip (2,423,740) 2019-02-11 10:26
https://bugs.vcmi.eu/file_download.php?file_id=2982&type=bug
Issue History
2019-02-11 10:26mpechNew Issue
2019-02-11 10:26mpechFile Added: sun.zip
2022-03-22 17:44PovelitelTag Attached: R1

There are no notes attached to this issue.