Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    AI doesn't place units

    Map Making
    2
    5
    489
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Numetalfan last edited by

      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.

      1. 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

      1. 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 ?

      N B 2 Replies Last reply Reply Quote 0
      • N
        Numetalfan @Numetalfan last edited by

        here we can see, the frensh as AI received correctly 2 new infantry for 4 territories,
        but, however, the AI did not place them:

        FF.PNG

        1 Reply Last reply Reply Quote 0
        • B
          beelee @Numetalfan last edited by

          @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

          N 1 Reply Last reply Reply Quote 1
          • N
            Numetalfan @beelee last edited by

            @beelee

            unbelievable, but this solved the problem !

            B 1 Reply Last reply Reply Quote 1
            • B
              beelee @Numetalfan last edited by

              @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 ... : )

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums