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

    Negating the loss of capital

    Scheduled Pinned Locked Moved Map Making
    capital
    4 Posts 3 Posters 841 Views 3 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.
    • RogerCooperR Offline
      RogerCooper
      last edited by

      I want a power to be unaffected by the loss of a capital. I tried this code:

          <attachment name="rulesAttachment" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
            <option name="retainCapitalNumber" value="0"/>
            <option name="retainCapitalProduceNumber" value="0"/>
          </attachment>
      
      

      I received the error:

      GameParseException: map name: 'file:/C:/Users/Roger/triplea/downloadedMaps/Hypothetical_Operations/games/Operation-Dandelion.xml', game name: 'Operation Dandelion', Missing property definition for option 'retainCapitalNumber' in attachment 'rulesAttachment'

      What am I doing wrong?

      1 Reply Last reply Reply Quote 1
      • alkexrA Offline
        alkexr
        last edited by

        Try playerAttachment instead of rulesAttachment in both name and javaClass.

        "For the world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air."

        P 1 Reply Last reply Reply Quote 3
        • RogerCooperR Offline
          RogerCooper
          last edited by

          Thank you

          1 Reply Last reply Reply Quote 0
          • P Offline
            PerfectMaple @alkexr
            last edited by

            @alkexr said in Negating the loss of capital:

            Try playerAttachment instead of rulesAttachment in both name and javaClass.mcdvoice

            Thank you for the explanation. It is clear for me.

            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