Game Crash when air units in battle
-
Above was an example of error message when only Air Balloon was left. I also got same messages for Orcs' Airship, Elfs' Hippogryph, and Humans' Airship
A couple other issues related to Air Units:
- AI doesn't seem to use Air Transports to move land units.
- Air units can attack submarines.
- Used Hippygryph to move Ayaana and attacked lone orc footman. Ayaana didn't get blunderbuss targeted attack in that battle.
Also regarding submarines
4) Targeted attacks, such as Juggernaut, occur before submarine can first strike. I would suggest moving first strike ability before targeted attacks.Other observations:
5) Marryk's frost delivery only stops units with 1 movement. If unit has 2 or more movement, they get full movement out of space, and can use full movement when moving through a frosted space.
6) Crown of Kings treasure is giving 10 elite per turn instead of 5 as stated in treasure pop up.
7) Ally unit can't pick up an unused range weapon left in an allies' space.
Elf's Ceremonial Fire unit dies at start of next round. Unit should remain and sustain wisps like Ogre Mound and other such territory capturable items.
9) Ettin should have 2HP.
10) can't deploy a factory in a space containing a shipyard.
11) no option to build a shipyard. Factories can't build ships.
12) may have mentioned this earlier, but too many targeted attacks don't allow selection of casualties and AI always picks most expensive unit it can kill with attack. Should allow user to select casualty. -
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.