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

    Question about trenches domination 1914 no mans land

    Scheduled Pinned Locked Moved Map Making
    11 Posts 4 Posters 1.1k Views 4 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.
    • B Offline
      beelee @Ramon
      last edited by

      @Ramon

      Hi Ramon

      What triplea engine are you using ? If it's the latest, you might try using the old 2.5.

      You could also try using the old Domination with the new engine version or whichever version you are using.

      Might let you know if it's engine related then.

      I don't think you can remove the defense completely. You can try it but I think it throws an error.

      @wc_sumpton would probably know or @rogercooper

      1 Reply Last reply Reply Quote 1
      • RogerCooperR Offline
        RogerCooper @Ramon
        last edited by

        @Ramon Are you limiting the number of rounds for battles?

        1 Reply Last reply Reply Quote 1
        • wc_sumptonW Offline
          wc_sumpton
          last edited by

          @ramon

          Is property "Transport Casualties Restricted" set?

          Cheers...

          B R 2 Replies Last reply Reply Quote 2
          • B Offline
            beelee @wc_sumpton
            last edited by

            @wc_sumpton said:

            Transport Casualties Restricted

            Hi WC

            What does that one do ?

            wc_sumptonW 1 Reply Last reply Reply Quote 2
            • wc_sumptonW Offline
              wc_sumpton @beelee
              last edited by

              @beelee said:

              What does that one do ?

              From my understanding this setting restricted the taking of 0 attack/0 defense units as fodder during combat, and allows these units to be auto-destroyed if there are no accompanying units.

              Cheers...

              B 1 Reply Last reply Reply Quote 3
              • B Offline
                beelee @wc_sumpton
                last edited by

                @wc_sumpton

                ahh maybe it only works if the battle starts out that way ? After the hitters are dead, you still have to roll to kill them ?

                I will test 🙂

                1 Reply Last reply Reply Quote 2
                • R Offline
                  Ramon @wc_sumpton
                  last edited by

                  @wc_sumpton

                  Thank you for your response!

                  Turns out that setting was indeed not enabled.

                  Once i enable this setting i'm running into another issue. In our mod, transports have 1 defense and battlecruisers are able to transport 1 inf. However this setup appears to be incompatible, im recieving the following error:

                  Validation errors parsing game-XML file: C:\Users\ramon\triplea\downloadedMaps\war_plan_red_orange\war_plan_red_orange\map\games\War_Plan_Red_Orange.xml, errors: Restricted transports cannot have attack or defense, , for: UnitAttachment attached to: UnitType{name=transport} with name: unitAttachment Restricted transports cannot have attack or defense, , for: UnitAttachment attached to: UnitType{name=battlecruiser} with name: unitAttachment

                  this makes sense, if i understand correctly i cant restrict transport casaulties and making them have 1 defense.

                  Is there a way to make these features compatible?

                  Thank you!

                  wc_sumptonW 1 Reply Last reply Reply Quote 0
                  • wc_sumptonW Offline
                    wc_sumpton @Ramon
                    last edited by

                    @Ramon

                    Try "isCombatTransport" for those units that can transport and also participate in battle.

                    Cheers...

                    R 1 Reply Last reply Reply Quote 3
                    • R Offline
                      Ramon @wc_sumpton
                      last edited by

                      @wc_sumpton

                      Thanks a lot!

                      I hope im not asking too much,

                      We are implementing landmines and currently i have the following unit attachment set up:

                      <attachment name="unitAttachment" attachTo="landmine" javaClass="UnitAttachment" type="unitType">
                      <option name="defense" value="0"/>
                      <option name="attack" value="0"/>
                      <option name="isAA" value="true"/>
                      <option name="attackAA" value="1"/>
                      <option name="maxAAattacks" value="6"/>
                      <option name="targetsAA" value="infantry:tank:cavalry"/>
                      <option name="isInfrastructure" value="false"/>
                      <option name="isFirstStrike" value="true"/>
                      <option name="isConstruction" value="true"/>
                      <option name="constructionType" value="bunker"/>
                      <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
                      <option name="maxConstructionsPerTypePerTerr" value="10"/>
                      </attachment>

                      Right now landmines behave like Anti-aircraft against troops (first strike and hitting a set number of units, which is intentional), but they also have 1 hp

                      In a perfect situation the landmine should act like a normal AA (like the one in domination), but once the territory is captured it should destroy itself.

                      I have looked at other maps, but i couldnt find any that implement landmines in this way. Do you know if this is possible?

                      I tried making it a suicide unit, this didnt work, they all suicide after 1 infantry attacks them.

                      If i make them non-suicide the enemy can capture them

                      I appreciate your help, cheers!

                      wc_sumptonW 1 Reply Last reply Reply Quote 0
                      • wc_sumptonW Offline
                        wc_sumpton @Ramon
                        last edited by

                        @Ramon

                        Try something like this:

                        <attachment name="unitAttachment" attachTo="landmine" javaClass="UnitAttachment" type="unitType">
                        <!-- <option name="defense" value="0"/> removed -->
                        <!-- <option name="attack" value="0"/> removed -->
                        <!-- <option name="isAA" value="true"/> removed -->
                        <!-- Expanding "isAA" values -->
                        <option name="isAAforCombatOnly" value="true"/>
                        <option name="isAAforFlyOverOnly" value="true"/>
                        <option name="typeAA" value="Landmines"/>
                        <option name="attackAA" value="1"/>
                        <option name="maxAAattacks" value="6"/>
                        <option name="targetsAA" value="infantry:tank:cavalry"/>
                        <option name="isInfrastructure" value="true"/> <!-- Changed so units can't be taken as fodder -->
                        <!-- <option name="isFirstStrike" value="true"/> removed -->
                        <option name="isConstruction" value="true"/>
                        <option name="constructionType" value="Landmines"/> <!-- Changed -->
                        <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
                        <option name="maxConstructionsPerTypePerTerr" value="10"/>
                        <!-- The following is added so that mines operate on defense -->
                        <option name="isSuicideOnDefense" value="true"/>
                        <!-- only those units that gets a hit are removed -->
                        <option name="isSuicideOnHit" value="true"/>
                        <!-- Unit can not be captured -->
                        <option name="destroyedWhenCapturedBy" value="BY:$ListOfAllPlayers$"/>
                        </attachment>
                        

                        Also "Units Can Be Destroyed Instead Of Captured" will need to be set.

                        Cheers...

                        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
                        Powered by NodeBB Forums