TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    AI doesn't place units

    Scheduled Pinned Locked Moved Map Making
    5 Posts 2 Posters 1.1k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            Numetalfan @beelee
            last edited by

            @beelee

            unbelievable, but this solved the problem !

            B 1 Reply Last reply Reply Quote 1
            • B Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums