Game Crash when air units in battle
-
What map is this for? And do you have a save game that is already at a battle that shows these issues?
-
@Trevan I recognize this from this thread:
With a stack trace reported in:
It does look like some of these errors might be consistent, a save game at the moment of error would likely be really helpful.
-
The images in that thread are helpful so I'll try to duplicate it in battle.
-
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.
-
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).
-
@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. -
@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.
-
@Trevan are these units actually being transported? Agree, self propelled paratroopers are eligible for AA, they are their own transport.
-
@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.
-
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.
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