Sorry, let me restate what you're saying I'm sure I understand: this is the ADDITIONAL gain by the improvement, e.g. a decision by the AI to change from an existing improvement?Chalid said:But there are some other factors as well. One is the additional gain by the improvement is added with weights:
food*4+production*3+commerce*2 and
So the steps are:
1. Calculate tile's current value for each yield with Improvement A
2. Calculate tile's potential value for each yield with Improvement B
3. Calculate B-A for each yield
4. Weight the difference (4 / 3 / 2 for food/prod/comm) between yield A and B to get a sum
5. Repeat 1-4 for Improvements C...X
6. Pick the best Improvement for this tile
7. Repeat 1-5 for all tiles
8. Pick the highest value and go!
Am I reading you right? Or does the weighting (4/3/2) happen somewhere else (at steps 1 and 2, or at step 6).
21 or 12 points are further added to food, or to other yields?Chalid said:and when more food is generated then needed 21 or 12 points are further added.
So what is the purpose of the "weights" node in the Yields XML file?Chalid said:No those numbers are strictly hard coded and no XML is involved. To change them you'll have to modify the sourcecode ~ SDK usage.
If steps 1-8 above are accurate, then when does this happen, at step 6.1 presumably?Chalid said:The leaderhead weights are multiplied on that with (100+Weight)/100
When our team was young and naive we had proposed that one choice for the civ would be to mutate from a terrain/yield-driven mechanism into a building/yield-driven one (a Borg city, as it were). The idea is that this could best be done by building terrain-destroying improvements that gave huge production boosts to build these massive buildings. A human would figure this out pretty easily, but the AI...?Chalid said:I gladly dig into this as it helps understand the way the game and the ai is working and possibly shows where it can be improved.![]()
Anyway, would be interesting if the AI could be made to understand present discounted value of a cottage, though presumably only if it understood what that value could buy. I assume the AI has the best thinking that powergamers have brought to bear on the Civ series built into it...?