AI doesn't place units
-
As a human player both, the Chinese und the French, in my game work well.
This means I play them and receive new units according to the rules that I can place in my territories.If the AI is playing them there is a big difference: as the Chinese, the AI places new units, as the French it doesn't - I have no idea why.
- The coding for the Chinese
<attachment name="rulesAttachment" attachTo="Chinese" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="movementRestrictionTerritories" value="Chinghai:Ningxia:Sikang:Yunnan:Hupeh:Fukien:Suiyuan:Manchuria:Kiangsu:Kwangtung:Xinjiang"/>
<option name="movementRestrictionType" value="allowed"/>
<option name="productionPerXTerritories" value="2:Chinese_infantry"/>
<option name="placementAnyTerritory" value="true"/>
<option name="placementCapturedTerritory" value="true"/>
<option name="placementPerTerritory" value="3"/>
</attachment>this the same as in the anniversary 50-41
- The French
...
<player name="Free_French" optional="false"/>
...
<step name="Free_FrenchPurchase" delegate="purchaseNoPU" player="Free_French"/>
<step name="Free_FrenchCombatMove" delegate="move" player="Free_French"/>
<step name="Free_FrenchBattle" delegate="battle" player="Free_French"/>
<step name="Free_FrenchNonCombatMove" delegate="move" player="Free_French" display="Non Combat Move"/>
<step name="Free_FrenchPlace" delegate="place" player="Free_French"/>
<step name="Free_FrenchEndTurn" delegate="endTurnNoPU" player="Free_French"/>
....
<attachment name="rulesAttachment" attachTo="Free_French" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="movementRestrictionType" value="allowed"/>
<option name="productionPerXTerritories" value="2:free_french_infantry"/>
<option name="placementAnyTerritory" value="true"/>
<option name="placementCapturedTerritory" value="true"/>
</attachment>what might confuse the AI ?
-
here we can see, the frensh as AI received correctly 2 new infantry for 4 territories,
but, however, the AI did not place them: -
@numetalfan said in AI doesn't place units:
<option name="placementPerTerritory" value="3"/>
The Chinese have this and the French don't. You could try playing around with that. I think you'd want a higher value than 3 though if that's what it is.
I would look it up in POS2 or the other xml place
-
unbelievable, but this solved the problem !
-
@numetalfan heh heh : ) Make sure you can still place as many dudes as you want in France and aren't limited in case you get liberated and they Power up.
Rare but ... : )