@TheDog said:
Give the AI a Factory it will not Place it (it will place units). It will only Place a Factory that it has decided it needs, even though it might have a lot them to place.
The AI uses the same rules for placing a purchased unit/factory that a Human player does. The rules only change when the AI attempts to place non-purchased/held/given units/factories.
For S&G add the following to GCD:
<!-- Player Rules -->
<attachment foreach="$All-Players$" name="rulesAttachment" attachTo="@All-Players@" javaClass="RulesAttachment" type="player">
<option name="placementAnyTerritory" value="true"/>
</attachment>
Let the AI play a few rounds, more than 2. Save the game and then reload with Human players and inspect the history. Check purchase with placement.
The AI is now placing the factories!
Most of the units have "requiresUnits". Even with "placementAnyTerritory", "requiresUnits" still has to be fulfilled to place units.
Using "placementAnyTerritory" allows the AI player, not a Human player, to place units into newly captured territories. There are also some side effects to how the AI purchases units, it may in fact stop purchasing altogether.
Cheers...