Navigation

    TripleA Logo

    TripleA Forum

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

    No battle against AA guns

    Map Making
    3
    10
    404
    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.
    • VictoryFirst
      VictoryFirst last edited by

      I am trying to improve the TripleA D-Day module by finding a way to implement German AA fire. The air units in this game function as AA units because they have the ability to shoot at units that move through the territory. I now have a unit called "aaGun" that functions as a normal unit, which the German player needs to move to the fighter zones (the round territories) to shoot at fighters and the "USAAF" zone to shoot at the bombers. However, for some reason, there is only combat against the bombers (which is classified as an air unit), not against the fighters (which are not classified as air units but as AA).

      Schermafbeelding 2024-08-19 213916.png

      8db70b01-5f0c-4712-a59d-716290e7cb1a-image.png
      Only a battle happened in "USAAF"

      When the bombers and fighters are defending together against the AA guns, a battle happens and the fighters can participate in battle. So it only does not work when there are only defending fighters.

      These are the unit attachments.

      <attachment name="unitAttachment" attachTo="USAfighter" javaClass="UnitAttachment" type="unitType">
        <option name="movement" value="30"/>
        <option name="attack" value="1"/>
        <option name="defense" value="1"/>
        <option name="isAA" value="true"/>
        <option name="typeAA" value="fighter_strafe"/>
        <option name="maxAAattacks" value="-1"/>
        <option name="maxRoundsAA" value="1"/>
        <option name="attackAA" value="1"/>
        <option name="mayOverStackAA" value="true"/>
        <option name="targetsAA" value="infantry:artillery:armour"/>
        <option name="isAAmovement" value="false"/>
      </attachment>
      
      <attachment name="unitAttachment" attachTo="aaGun" javaClass="UnitAttachment" type="unitType">
        <option name="movement" value="99"/>
        <option name="isAir" value="true"/>
        <option name="defense" value="1"/>
        <option name="attack" value="1"/>		
        <option name="isSuicide" value="true"/>
      </attachment>
      B 1 Reply Last reply Reply Quote 0
      • B
        beelee @VictoryFirst last edited by beelee

        @victoryfirst

        why can't the Ftrs be "isAir" ?

        Edit
        Also, a while back, I added some of the Frostion units to D-Day. I can dig it up, if interested 🙂

        VictoryFirst 1 Reply Last reply Reply Quote 1
        • VictoryFirst
          VictoryFirst @beelee last edited by

          @beelee

          I could that but that would conflict with the rest of the module, due to the way it's set up. Do you think that would solve the problem of why there is no combat? In TWW you also have "anti-tank" units that are combat units and function as AA, so I wonder why the fighters can't do the same thing. I've copied most of the code...

          B W 3 Replies Last reply Reply Quote 0
          • B
            beelee @VictoryFirst last edited by

            @victoryfirst

            yea I would think you could. You can have a unit do normal combat and aa both

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

              @victoryfirst

              In G 40 House Rules I gave Tac Bmbrs the ability to target ships withh aa before the regular battle.

              Looks as if you might want something a little different though ?

              1 Reply Last reply Reply Quote 1
              • W
                wc_sumpton @VictoryFirst last edited by

                @victoryfirst

                Using "isAA" default to only isAir units being attacked. Because USAfighter is not isAir the isAA unit will not attack. To have the isAA unit attack different targets targetsAA needs to be used. If targetsAA is used all units will need to be listed.

                Cheers...

                1 Reply Last reply Reply Quote 2
                • VictoryFirst
                  VictoryFirst last edited by

                  @wc_sumpton @beelee

                  I got it to work... not sure what fixed it but this is my unit attachment.

                  <attachment name="unitAttachment" attachTo="UKfighter" javaClass="UnitAttachment" type="unitType">
                  	<option name="attack" value="1"/>
                  	<option name="defense" value="0"/>
                  	<option name="isAAforCombatOnly" value="true"/>
                  	<option name="typeAA" value="fighter_strafe"/>
                  	<option name="targetsAA" value="infantry:artillery:armour"/>
                  	<option name="maxAAattacks" value="1"/>
                  	<option name="maxRoundsAA" value="-1"/>	  
                  	<option name="transportCost" value="2"/>
                  	<option name="mayOverStackAA" value="true"/>
                  	<option name="movement" value="30"/>
                  	<option name="attackAA" value="1"/>
                  	<option name="isLandTransportable" value="true"/>
                  	<option name="damageableAA" value="true"/>
                  	<option name="isAAforFlyOverOnly" value="true"/>
                  </attachment>
                  
                  <attachment name="unitAttachment" attachTo="aaGun" javaClass="UnitAttachment" type="unitType">
                    <option name="movement" value="99"/>
                    <option name="isAir" value="true"/>
                    <option name="defense" value="1"/>
                    <option name="attack" value="1"/>		
                    <option name="canMoveThroughEnemies" value="true"/>
                  </attachment>
                  1 Reply Last reply Reply Quote 1
                  • VictoryFirst
                    VictoryFirst last edited by

                    Could also be one of the properties that fixed it...

                    W 1 Reply Last reply Reply Quote 1
                    • W
                      wc_sumpton @VictoryFirst last edited by

                      @victoryfirst

                      I have said this plenty of times, but it always bears repeating. I do not like using "isAA", "isFactory" or "isSub" because these set other values and can override other values if set improperly. I will always set the other values, and leave these setting alone.

                      In the UKfighter, these are set which define how this unit operates:

                      	<option name="isAAforCombatOnly" value="true"/>
                      	<option name="typeAA" value="fighter_strafe"/>
                      	<option name="targetsAA" value="infantry:artillery:armour"/>
                      	<option name="maxAAattacks" value="1"/>
                      	<option name="maxRoundsAA" value="-1"/>	  
                      

                      This is good, this means that this unit participates in the AA phases of. But this could be problematic.
                      You also have attack/defense values set.
                      For the "aaGun" you use "isAA", but you also have attack/defense set. The aaGun cannot fire at the UKfighter during the AA phase because the UKfighter is not listed as "isAir", but it can engage in normal combat.

                      Hope this helps.

                      Cheers...

                      VictoryFirst 1 Reply Last reply Reply Quote 2
                      • VictoryFirst
                        VictoryFirst @wc_sumpton last edited by

                        @wc_sumpton

                        You are right, I just noticed I had isAA for the fighters when it did not work, and it is missing when it did work, so isAA caused the issue (I changed a lot of parameters so that's why I didn't know what fixed it). I will try to remember not to use the options you mentioned because they indeed cause a lot of trouble. Thanks!

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