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

    Support for AA Attacks

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    26 Posts 6 Posters 10.9k Views 6 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.
    • redrumR Offline
      redrum Admin @Frostion
      last edited by redrum

      @frostion @alkexr I think both are good ideas but also fairly involved so hard to say if/when.

      1. Multiple AA attacks per unit type would mean having separate aaAttachments similar to supportAttachments. Then either having to convert existing AA unit options to generate an aaAttachment in the engine (like isArtillery generates a supportAttachment) or having to mass convert maps so that the existing AA unit options could be removed. Both of these options are pretty painful.

      2. AA support is probably a bit simpler and would just need some options in the support attachment to indicate its for AA instead of normal attack. Then logic added to check and apply support attachments to AA attacks. I don't think this change would impact compatibility since they would just be new options.

      I don't think it matters that much the order they are implemented in as you could come back to add a supportAttachment option later on to indicate which AA attack per unit type if you did #2 first. I definitely lean towards tackling #2 first as its significantly easier (probably days vs weeks).

      These also probably initially would not be taken into account by the default battle calc casualty selection though it already doesn't handle AA attacks and limited handling of support attachments.

      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

      1 Reply Last reply Reply Quote 2
      • redrumR Offline
        redrum Admin
        last edited by redrum

        So coming back to this.

        Should support for AA attacks only be able to affect the strength or also the number of rolls?

        @Frostion's example looks to re-use the dice parameter to specify it influences AA strength rather than regular strength or rolls.

        <option name="dice" value="AA"/>
        

        Should we consider allowing it to change the rolls as well? So something like:

        <option name="dice" value="AAstrength"/>
        <option name="dice" value="AAroll"/>
        

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        1 Reply Last reply Reply Quote 2
        • FrostionF Offline
          Frostion Admin
          last edited by

          Would the answer to the question not be a matter of "the more options the merrier"? I think that I initially just thought about strength to the dice, but adding dice could of course also be wanted in some situations.

          If a unit was to have more than one AA attachment, then of course it would also be necessary to specify what AA type should be boosted/nerfed.

          Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

          redrumR 1 Reply Last reply Reply Quote 0
          • redrumR Offline
            redrum Admin @Frostion
            last edited by

            @frostion Probably. Just wondering if map makers would want to change number of rolls for AA attacks but generally its probably a good option to have.

            I'm planning to bundle the type of AA with the addition of multiple AA attack per unit with the other feature request. Figure no need to put it in prematurely.

            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

            1 Reply Last reply Reply Quote 3
            • redrumR Offline
              redrum Admin
              last edited by

              Here is the PR: https://github.com/triplea-game/triplea/pull/4350

              AT Support

                  <attachment name="supportAttachmentATSupportgerman" attachTo="germanATSupport" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                    <option name="unitType" value="germanAntiTankGun"/>
                    <option name="faction" value="allied"/>
                    <option name="side" value="defence"/>
                    <option name="dice" value="AAstrength"/>
                    <option name="bonus" value="2"/>
                    <option name="number" value="3"/>
                    <option name="bonusType" value="ATBonus"/>
                    <option name="impArtTech" value="false"/>
                    <option name="players" value="Germany"/>
                  </attachment>
              

              AT Counter Support

                  <attachment name="supportAttachmentATCounterAmerican" attachTo="americanATCounter" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
                    <option name="unitType" value="germanAntiTankGun"/>
                    <option name="faction" value="enemy"/>
                    <option name="side" value="offence"/>
                    <option name="dice" value="AAstrength"/>
                    <option name="bonus" value="-10"/>
                    <option name="number" value="3"/>
                    <option name="bonusType" value="ATBonus"/>
                    <option name="impArtTech" value="false"/>
                    <option name="players" value="Usa"/>
                  </attachment>
              

              TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

              1 Reply Last reply Reply Quote 7
              • C Offline
                Cernel Moderators
                last edited by

                If the other thing of allowing multiple AA attacks per unit can be done fast (I can help with the conversion of existing maps), wouldn't be better to keep this frozen until that is done first, so this can be tailored on that done?

                redrumR 1 Reply Last reply Reply Quote 0
                • redrumR Offline
                  redrum Admin @Cernel
                  last edited by

                  @Cernel Shouldn't matter much since only a few advanced maps will consider using this so would be easy to update them if necessary. I also have no idea if or when I'll add multiple AA attacks per unit.

                  TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators @redrum
                    last edited by

                    @redrum Ok. Seemed to me that multiple was way more important than support, but I guess also the complexity is bigger.

                    1 Reply Last reply Reply Quote 0
                    • FrostionF Offline
                      Frostion Admin
                      last edited by

                      My new Warcraft map will make use of the AA support feature, and also the multiple AA if it becomes available 😊 But testing is a bit difficult right now as I am still building the map.

                      Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

                      1 Reply Last reply Reply Quote 0
                      • redrumR Offline
                        redrum Admin
                        last edited by

                        This is now merged into the latest pre-release and can be tested: https://github.com/triplea-game/triplea/releases/tag/1.10.0.0.13130

                        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                        1 Reply Last reply Reply Quote 2
                        • redrumR Offline
                          redrum Admin
                          last edited by

                          Added info and example to POS2: https://github.com/triplea-maps/the_pact_of_steel/pull/23/files

                          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                          B 1 Reply Last reply Reply Quote 2
                          • B Online
                            beelee @redrum
                            last edited by

                            @redrum thank you

                            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
                            • 2
                            • 2 / 2
                            • First post
                              Last post
                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums