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

    Game Crash when air units in battle

    Scheduled Pinned Locked Moved Maps & Mods
    11 Posts 4 Posters 1.8k 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.
    • T Offline
      Trevan
      last edited by

      What map is this for? And do you have a save game that is already at a battle that shows these issues?

      1 Reply Last reply Reply Quote 0
      • LaFayetteL Offline
        LaFayette Admin
        last edited by

        @Trevan I recognize this from this thread:

        • https://forums.triplea-game.org/topic/1031/warcraft-war-heroes-official-thread/256?page=13

        With a stack trace reported in:

        • https://github.com/triplea-game/triplea/issues/7678

        It does look like some of these errors might be consistent, a save game at the moment of error would likely be really helpful.

        1 Reply Last reply Reply Quote 0
        • T Offline
          Trevan
          last edited by

          The images in that thread are helpful so I'll try to duplicate it in battle.

          1 Reply Last reply Reply Quote 1
          • T Offline
            Trevan
            last edited by

            I've been able to duplicate it. The issue is that the transported units are available as targets for the AA phase. And if you have defenders that can target the transported units during that phase, then the transported unit will die before it is "landed". Then when the "landParatroopers" phase runs, it tries to land a dead unit and goes into a bad state.

            My question is: Should paratroopers be targeted during the AA phase? If they shouldn't then I can remove them from the attacker list until after they've landed. If they should, then I'll need to change the "landParatroopers" phase to ignore dead units.

            PantherP 1 Reply Last reply Reply Quote 1
            • LaFayetteL Offline
              LaFayette Admin
              last edited by

              Good work digging into this @Trevan

              Typically paratroops are not eligible for AA shots, they are essentially cargo and it's their air transport that is getting shot at. AFAIK paratroops units are removed if their air transport is destroyed.

              I'm a bit curious why these units are different from paratroops infantry in the WWII maps, those paratroop infantries are not targets for AA.

              I wonder if the right fix is to make these units not get shot at by AA. So it would be to be sure if a unit is being air transported, then AA does not fire against that unit, but if the air transport is hit then it needs to be removed and any paratroops it is carrying (which presumably should be handled already in the land paratroop phase, otherwise I really wonder how this works for WWII maps).

              T 1 Reply Last reply Reply Quote 0
              • PantherP Offline
                Panther Admin Moderators @Trevan
                last edited by

                @Trevan said in Game Crash when air units in battle:

                My question is: Should paratroopers be targeted during the AA phase?

                It depends on the game. We have maps where Paratroopers are "flying infantry", so they are not transported by anything.
                But they are subject to AA-fire.

                Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  Trevan @LaFayette
                  last edited by

                  @LaFayette said in Game Crash when air units in battle:

                  I'm a bit curious why these units are different from paratroops infantry in the WWII maps, those paratroop infantries are not targets for AA.

                  "AA phase" is probably an inaccurate term for the phase since units can target non-airplane units in that phase.

                  They are targeted because the units firing during the AA phase can hit them. If they weren't paratrooped (?), they would be normally fired at during the AA phase without any problems.

                  LaFayetteL 1 Reply Last reply Reply Quote 0
                  • LaFayetteL Offline
                    LaFayette Admin @Trevan
                    last edited by

                    @Trevan are these units actually being transported? Agree, self propelled paratroopers are eligible for AA, they are their own transport.

                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      Trevan @LaFayette
                      last edited by

                      @LaFayette said in Game Crash when air units in battle:

                      @Trevan are these units actually being transported? Agree, self propelled paratroopers are eligible for AA, they are their own transport.

                      Yes, they are actually transported. The code doesn't prevent shooting air transported items. This is probably because when air transport was written, maps only could shoot at air units during the AA phase.

                      1 Reply Last reply Reply Quote 0
                      • LaFayetteL Offline
                        LaFayette Admin
                        last edited by

                        Thanks for finding that. I think the fix is for AA to not shoot at air transported units. On the flip side we should be sure they are removed as casualties if the transport is shot down.

                        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