MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003034VCMIAI - Adventure Mappublic2019-02-11 10:262022-03-22 17:44
Reportermpech 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformUbuntu 16.04.5 LTSOSOS Version
Product Version0.99 
Target VersionFixed in Version 
Summary0003034: endless loop when doing AI does a trade
Descriptionhi 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
...
Steps To Reproduceload game
end turn
look at red player going on the market "trying" to trade
then red does not end its turn
Additional Information
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.

TagsR1
Attached Fileszip file icon sun.zip [^] (2,423,740 bytes) 2019-02-11 10:26

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-02-11 10:26 mpech New Issue
2019-02-11 10:26 mpech File Added: sun.zip
2022-03-22 17:44 Povelitel Tag Attached: R1

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean