Always forget something, AA guns. With the Gato using the Elite conning tower it automatically includes fore and aft single mount 40mm Bofors AA cannon, for other subs you might need to edit the
\Data\UPCData\UPCUnitsData\UnitParts(number)(subty pe).upc
file. Example UnitParts5Salmon.upc at the very bottom has AcceptedTypes=USLightAA and 20mmsingle or double, no heavy AA so no Bofors.
Edit that whole smash;
[UnitPart 3.UpgradePackSlot 1]
ID= UpgAAGun
NameDisplayable= Aft Anti-Aircraft Gun
Type=NULL
AcceptedTypes=USLightAA, USHeavyAA
UserCustomizable=Yes
IDLinkUpgradePackSlots= CTBackAA
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, Upack20mmSingle
IDLinkUpgradePackSlotsIntervalDefault2= NULL, NULL, Upack40mmSingle
[UnitPart 3.UpgradePackSlot 2]
ID= UpgBowAAGun
NameDisplayable= Fore Anti-Aircraft Gun
Type=NULL
AcceptedTypes=USLightAA, USHeavyAA
UserCustomizable=Yes
IDLinkUpgradePackSlots= CTForeAA
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, Upack20mmSingle
IDLinkUpgradePackSlotsIntervalDefault2= NULL, NULL, Upack40mmSingle
And when you start a new career with the late war Salmon conning tower you can change the default Oerlikons to Bofors. If you edited the UpgradePacks.upc file previously;
[UpgradePack 10]
ID= Upack40mmSingle
NameDisplayable= 40mm AA Gun
FunctionalType= UpFTypeWeaponFlak
UpgradePackSlotType= USHeavyAA
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= NULL, NULL, 0
IDLinkUpgradePackElements= 40mmSingleUS
The swap won't cost any renown, the last number is the cost.
|