Topic: AI not building enough smelting works
PkK Topic Opener |
Posted at: 2015-03-23, 13:54
I like playing on maps, where gold is further from the start location than iron. However, this seems to be a problem for the AI: The AI will build exactly 1 smelting works, which will operate at 65% (maximum when there is enough iron ore and coal). Even though the AI economy is starved for iron, and there is plenty of iron ore and coal, the AI will not build further smelting works. The AI will only start building more smelting works after it finds gold ore. Philipp Top Quote |
einstein13 |
Posted at: 2015-03-23, 14:29
Which version are you using? Build-18 or dev one? There were major changes with AI since build-18. einstein13 |
PkK Topic Opener |
Posted at: 2015-03-23, 17:26
bzr from two days ago (btw. is there a bzr equivalent to svn info to tell me the exact revision?). Philipp Top Quote |
Venatrix |
Posted at: 2015-03-23, 18:32
bzr version-info Two is the oddest prime. Top Quote |
PkK Topic Opener |
Posted at: 2015-03-23, 18:49
For the version in which I observed the issue: revno: 7431 Top Quote |
Tibor |
Posted at: 2015-03-23, 20:23
Hi,
Top Quote |
king_of_nowhere |
Posted at: 2015-03-23, 21:51
I remember someone mentioning that AI will build another building of a kind only if they have more than 70% productivity, otherwise it is assumed the problem lies elsewhere. that's good for most situation, but metal smelter is one of those where it doesn't work. Top Quote |
Tibor |
Posted at: 2015-03-23, 22:17
It seems that production buildings are programmed the way that they are idle when particular output can not be produced, even though it might be producing another output instead. If it the really true, this is another complication for AI. I will have to look directly at productionsite's code to see if this can be worked around and how straightforward it could be. Top Quote |
PkK Topic Opener |
Posted at: 2015-03-24, 13:25
Is there a good way to manually counteract this? I tried giving the AI three smelting works in the start condition, but the AI just dismantles two of them. Philipp Top Quote |
Tibor |
Posted at: 2015-03-24, 16:21
No But I made some small change in the code that would mitigate the problem. But still testing and observation is needed to see how effective it was. But it is not in trunk yet. Top Quote |