View Single Post
Old 03-30-17, 07:20 PM   #2
Sniper297
The Old Man
 
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
Default

After several false starts (including assorted CTDs) I edited two files in the \Data\UPCData\UPCCampaignData folder;

CareerStart.upc

Flotillas.upc

It turns out to be tricky since some of the data is interdependent, for example if you set the availability of the GAR class for sometime in 1943 in Flotillas.upc, then try to start a 1941 career when the GAR is listed as one of the choices to start in CareerStart.upc, the game will crash when you select career.

So I deleted all but the S-18 from the CareerStart.upc:

[CareerStart 1.Flotilla 2]
ID= C1Flotilla2
NameDisplayable= Manila
IDLinkFlotilla= FremantleCommand
IDLinkUserPlayerUnits= F2Sboat, 6

Then in Flotillas.upc;

[Flotilla 2.UserPlayerUnitType 1]
ID= F2Sboat
NameDisplayable= S-18 class
AvailabilityInterval= NULL, 1942-04-15
IDLinkUserPlayerUnitType= S18
UnitTypeCommonality= 6 ; to be used when a random choice is assigned
IDFlotillaLinkTransferTo= BrisbaneCommand ; when the flotilla is disbanded, the subs of this type are transferred to this one

[Flotilla 2.UserPlayerUnitType 2]
ID= F2Porpoise
NameDisplayable= Porpoise class
AvailabilityInterval= 1942-01-01, 1943-02-01
IDLinkUserPlayerUnitType= Porpoise
UnitTypeCommonality= 7
IDFlotillaLinkTransferTo= NULL

[Flotilla 2.UserPlayerUnitType 3]
ID= F2Salmon
NameDisplayable= Salmon class
AvailabilityInterval= 1944-12-01, 1945-01-01
IDLinkUserPlayerUnitType= Salmon
UnitTypeCommonality= 6
IDFlotillaLinkTransferTo= NULL

[Flotilla 2.UserPlayerUnitType 4]
ID= F2Sargo
NameDisplayable= Sargo class
AvailabilityInterval= 1943-01-01, 1944-08-01
IDLinkUserPlayerUnitType= Sargo
UnitTypeCommonality= 11
IDFlotillaLinkTransferTo= PearlHarborCommand

[Flotilla 2.UserPlayerUnitType 5]
ID= F2Tambor
NameDisplayable= Tambor class
AvailabilityInterval= 1944-05-01, 1945-03-01
IDLinkUserPlayerUnitType= Tambor
UnitTypeCommonality= 1
IDFlotillaLinkTransferTo= NULL

[Flotilla 2.UserPlayerUnitType 6]
ID= F2Gar
NameDisplayable= Gar class
AvailabilityInterval= 1944-05-01, 1943-12-01
IDLinkUserPlayerUnitType= Gar
UnitTypeCommonality= 3
IDFlotillaLinkTransferTo= BrisbaneCommand

[Flotilla 2.UserPlayerUnitType 7]
ID= F2Gato
NameDisplayable= Gato class
AvailabilityInterval= 1944-12-01, NULL
IDLinkUserPlayerUnitType= Gato
UnitTypeCommonality= 10
IDFlotillaLinkTransferTo= NULL

[Flotilla 2.UserPlayerUnitType 8]
ID= F2Balao
NameDisplayable= Balao class
AvailabilityInterval= 1944-08-01, NULL
IDLinkUserPlayerUnitType= Balao
UnitTypeCommonality= 10
IDFlotillaLinkTransferTo= NULL

This is purely experimental right now, the idea being a low ranking officer starting with an S boat, promoted to a Porpoise, then a Sargo. The availability dates eliminates the possibility of getting something weird like first promotion to a Gato, then a second promotion that takes you backwards into a Porpoise or Salmon. I wish there was a simpler way, since it's so blasted touchy, but near as I can tell both files will have to be carefully coordinated for the different flotillas and career start years. If one of the choices in 1941 is a Tambor or Gar then both of those have to be available in 1941 or the game will crash, and if they're available then either one could be assigned as a "new" sub later in the career.
Sniper297 is offline   Reply With Quote