NoAIColonyTerraform

If you liked this item, please rate it up on Steam Workshop page.

Author: zgrssd

Last revision: 25 May, 2017 at 00:06 UTC (1)

File size: 2.05 KB

On Steam Workshop

Description:

Problem:
The AI seems to terraform planets semi-randomly since 1.5, often in a loop from one useless type to another useless type. With 1.6 and the Addition of Ecological Adaptation means it this bug now also affects already colonised planets, resulting in massive loss of energy and population happiness for developed AI Empires across the board.

Working:
All Basic (same Hydorsphere) and advanced Terraforming links have been modified. The Special ones (Gaia, Tomb, Terraforming Candidate) remain unchanged.
It’s function depends on what exactly the function is_ideal_planet_class evaluates.

AI Empries have the followign conditions on top of the Technology:
* They must not have Gaia Creation Technology (as that kind is simply always better)
* The current class must not already be ideal
* The target class must be ideal

Savegame Compatible:
Full.
While it will not cancel already running terraforming or refund wasted resources, the AI should no longer be prone to senseless terraforming of colonies.

Possible issues:
– If the Galaxy ever runs out of planets of a class, the AI will no longer be able to terraform into that class. But that should be late enough that everyone has Gaia Creation.
– As the rules have to be enforced via the Conditions, considerable CPU load might be created by the several orders more complex check. The ordering of the Conditions is important to minimize that impact.
– I have no actual data on how is_ideal_planet_class interacts with integrated Xenos. So the AI might be prone to terraform conquered planets to their primary species preference. If that is a issue, I can fix it later.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.