Navigation

    TripleA Logo

    TripleA Forum

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

    DestroyedWhenCapturedBy is not working

    Map Making
    3
    5
    1200
    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.
    • RogerCooper
      RogerCooper last edited by

      DestroyedWhenCaptueredBy is not working

          <attachment name="unitAttachment" attachTo="factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
              <option name="isFactory" value="true"/>
              <option name="destroyedWhenCapturedBy" value="police"/>
          </attachment>
      

      0_1509317651059_newyawk.zip I have uploaded the whole mod if you want to see it in context.

      Hepps redrum 2 Replies Last reply Reply Quote 0
      • Hepps
        Hepps Moderators @RogerCooper last edited by

        @rogercooper Should probably reference this with an engine release.

        1 Reply Last reply Reply Quote 0
        • redrum
          redrum Admin @RogerCooper last edited by redrum

          @rogercooper Did you verify that property "Units Can Be Destroyed Instead Of Captured" is set to true? Which XML are you testing as there are 2? If you have a save game to reproduce that would help.

          I glanced at the XML and that property is missing. You need to add:
          <property name="Units Can Be Destroyed Instead Of Captured" value="true" editable="false">
          <boolean/>
          </property>

          RogerCooper 1 Reply Last reply Reply Quote 0
          • RogerCooper
            RogerCooper @redrum last edited by

            @redrum said in DestroyedWhenCapturedBy is not working:

            <property name="Units Can Be Destroyed Instead Of Captured" value="true" editable="false">
            <boolean/>
            </property>

            That worked. Thanks for the help. Those property dependencies are always a nuisance.

            redrum 1 Reply Last reply Reply Quote 0
            • redrum
              redrum Admin @RogerCooper last edited by

              @rogercooper Yeah, I'd like to eventually get rid of some of the properties as they are really unnecessary. Only benefit they provide is if you want to allow them to be editable game options and the map works well both ways but honestly that is pretty rare.

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