AI build order issues

So I've been mucking about in the governors.xml in order to see how we can make the AI build in a better way.

 

There's a few things worth noting in the default gov.xml. First thing worth mentioning is that, while the AI does have 'specialist' worlds listed (research, influence, wealth, manufacturing and 'growth' are all there), these worlds all have the following at the bottom:

 

<FillerImprovement>Manufacturing</FillerImprovement>
<FillerImprovement>Food</FillerImprovement>
<FillerImprovement>Research</FillerImprovement>
<FillerImprovement>Influence</FillerImprovement>
<FillerImprovement>Wealth</FillerImprovement>
<FillerImprovement>Approval</FillerImprovement>

 

This means that, even on the worlds it's supposedly using for science, it will build a few research buildings and then fill up the remainder of the planet with random buildings. This makes a bit of sense presently, while the AI can't actually specialize spending plans, but is generally kinda weak.

 

On top of that, the AI seems prone to both upgrading buildings before building new ones (the most horribly inefficient way of increasing bonuses), and also insists on doing terraforming improvements very early in it's build queue, too; I've often seen planets with just 1 factory and no other improvements trying to terraform land and upgrade the factory to top level before it attempts to build anything else. 

 

This is astonishingly bad play. If the AI is unlucky enough to pick up improved factories or soil enhancement, it immediately leads to it spending the next 50 turns plodding along with almost no manufacturing capacity while it attempts to build a factory, convert a useless tile, and then upgrade the factory. By the late game, this can be devastating; having to get the first factory to T4 and use all the terraforming can leave the AI with extremely low production bonuses for literally a hundred turns, while picking the lowest return on investment.

 

Could it be changed so the AI upgrades and terraforms last?

18,963 views 2 replies
Reply #1 Top

Yes to all of this.  This is exactly my anecdotal perception and analysis.  These little tweaks alone would greatly improve AI performance.  It would add synergy to a lot of other tweaks being made, too.

I know I can plan now for terraforming I will do later.  I can even do a quick terraform now before putting in a block of improvements if it puts some key building in just the right adjacencies.  But all of that is a lot to ask from the AI right now.  Therefore, a little common sense, or its equivalent, could go a long way.

I am glad to see there are some hooks in place for specialization.  That is an encouraging sign.

 

Reply #2 Top

As far as build order, it would appear that it isn't as direct as it appears in this file although it should be, i tried to help a guy with a unique building in this thread https://forums.galciv3.com/467417/page/1/#3566476 , i made the building special type and added the appropriate tag to this file, it made them build it on like 80% of planets but assumed it would be 1st, you seem to be doing well with ai modding so will definitely leave this to you, just wanted to mention in case it helps you at all