Opened 10 years ago
Closed 10 years ago
#2441 closed defect (fixed)
AI stops gathering resources at certain point in game
Reported by: | brian | Owned by: | wraitii |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 17 |
Component: | AI | Keywords: | AI |
Cc: | wraitii, mimo | Patch: |
Description
After the AI prints a couple messages about expanding its base, a warning containing "treu" appears. Around this point (not sure if it is exact) the AI stops gathering resources. If you provide the computer with more resources, it will continue to play until it runs out. If you task some of its gatherers to collect resources, it will collect for a while and then stop. This occurs even when the AI has many gatherers and there are still resources of all types remaining on the map.
Have only tested on Hardest difficulty, but Michael confirmed it on Hard also.
warn("treu"); is found in binaries/data/mods/public/simulation/ai/aegis/base-manager.js on line 678
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | mainlog.html added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Not sure what the attachment is doing here, it seems to belong to another ticket.
This one to be exactly: http://trac.wildfiregames.com/ticket/2486
comment:3 by , 10 years ago
Milestone: | Alpha 16 → Alpha 17 |
---|
comment:4 by , 10 years ago
Cc: | added |
---|
I believe this isn't valid anymore for Petra which is now default, Mimo?
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes, fixed now with the switch to petra.
According to those line Aegis counts the number of farms it has : If that number is superior to fifteen it gathers more food.
var numFd = gameState.countEntitiesByType(gameState.applyCiv("foundation|structures/{civ}_field"), true);
if (numFarms+numFd > 15) {
}