MegaGlest Forum

MegaGlest => Bug reports => Closed bug reports => Topic started by: filux on 15 June 2013, 19:02:07

Title: [partially fixed] r4458: CPU unnecessary builds buildings for food and wastes resources...
Post by: filux on 15 June 2013, 19:02:07
Bug separated from another topic.
CPU unnecessary builds buildings for food and wastes resources and place.

Quote from: https://forum.megaglest.org/index.php?topic=9099.0
3. "CPU unnecessary builds buildings for food" .
(e.g. more than one farm, more than one main building, more than one other building {for example romans' temple})
There is many different buildings producing food in different factions and will be probably more in the future.
Here I suggested some additional variable being placed directly in the "units.xml" for example:

into farm.xml
<CPU-produce-resource enabled="false"/>

and into cow.xml
<CPU-produce-resource enabled="true"/>

...and cpu of course produces only units with "true".

All the examples described observations about food but the case is similar to other resources (eg energy, housing [e.g. small tent in Indian faction]) so improvements should be universal.

When this will be somehow fixed, then at first glance, you can no longer distinguish whether play cpu or human  :).
Title: Re: r4458: CPU unnecessary builds buildings for food and wastes resources...
Post by: softcoder on 20 June 2013, 20:04:51
Should be fixed in svn rev#: 4476
Title: Re: r4458: CPU unnecessary builds buildings for food and wastes resources...
Post by: filux on 21 June 2013, 12:02:02
r.4482, five farms, where one is sufficient

(http://imgius.com/photos/20130621137181587744428.png)