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)

mainlog.html (711.2 KB ) - added by Jaison 10 years ago.

Download all attachments as: .zip

Change History (6)

by Jaison, 10 years ago

Attachment: mainlog.html added

comment:1 by Stan, 10 years ago

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) {

warn("treu");
this.willGatherfood = 2;

}

comment:2 by Niek, 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

Last edited 10 years ago by Niek (previous) (diff)

comment:3 by leper, 10 years ago

Milestone: Alpha 16Alpha 17

comment:4 by wraitii, 10 years ago

Cc: mimo added

I believe this isn't valid anymore for Petra which is now default, Mimo?

comment:5 by mimo, 10 years ago

Resolution: fixed
Status: newclosed

Yes, fixed now with the switch to petra.

Note: See TracTickets for help on using tickets.