No battle against AA guns
-
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).
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>
-
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 -
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...
-
yea I would think you could. You can have a unit do normal combat and aa both
-
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 ?
-
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...
-
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>
-
Could also be one of the properties that fixed it...
-
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...
-
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!