SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
12-12-16, 11:30 PM | #1 |
The Old Man
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
New construction random choice?
I'm looking for the file or files that control which new sub is given and when during a career. Ideally I should be able to start in a Sugar boat, instead of "new construction" get promoted to a Porpoise, then a Salmon/Sargo, then Gar, etc. What I get instead seems to be a random dice roll.
One possibility would be changing the availability dates for various subs (example the Porpoise not available until July 42, Sargo Jan 43, Gar/Tambor July 43, etc. ) in the flotillas.upc file, but I'm hoping there's another "promotion" file somewhere to make it simpler. |
03-30-17, 07:20 PM | #2 |
The Old Man
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
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. |
03-31-17, 03:55 AM | #3 |
CTD - it's not just a job
|
There is a upc file for the Submarines also, in the Data / Submarine / SubName folder, and that's what you match in the CareerStart for the Submarine. You'll notice an S18 and S42. There's an "ID=" line in that, and that's what goes on that "IDLinkUserPlayerUnitType=" line. Some of those lines have the ;comment of "; enumeration of ID(s) that point to submarine upc file". That's what that means. The Flotilla.upc has similar requirements of "exactly matching" parts of the CareerStart file, and things in the PatrolObjectives.cfg must match things in flotilla.upc... one little "I" not dotted, or "T" not crossed, and you get a CTD to tell you that you made a mistake... There really should be an error trap there, but there isn't... You'll see "DeBug Mode" listed in some areas of the game's internals, but not in others... ??
|
04-12-17, 03:12 PM | #4 |
The Old Man
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Been so busy testing this I forgot to check back on this thread.
Yeah, I don't see where it would make a difference with the missions, unless you're driving a Gato in 1942 you're not gonna get the UserPlayerUnitType 7.Objective 1 mission, you'll get the mission for whatever type you're driving. This is not actually working - started in an S boat, made three short patrols and was offered a new sub after the third patrol in January 42, as expected I got a Porpoise. Made three patrols in the Porpoise, offered new sub in April 42 - got a Gato. [Flotilla 2.UserPlayerUnitType 7] ID= F2Gato NameDisplayable= Gato class AvailabilityInterval= 1944-12-01, NULL IDLinkUserPlayerUnitType= Gato UnitTypeCommonality= 10 IDFlotillaLinkTransferTo= NULL According to that a Gato is not supposed to be available for an Asiatic career until 1944, so I missed a file hack someplace. |
04-12-17, 09:14 PM | #5 |
CTD - it's not just a job
|
I'm not near my computer now, but - from my memory now - I believe it's the CareerStart, there's a number in the listings, after the boats' "definition" line(s), where it's like "Flotilla Commonality = ", or something to that effect, and it's either 1, 2, 3, etc., whichever boat is the "default" to start that particular start with. Look at like Stock Pearl, Career Start 1, and you'll see "points" at the Porpoise, and Manila points at the S-18 boat. I'd have to double-check with CapnScurvy, but there's an "Upgrades" type file, also a cfg, if I'm remembering that correctly, that might control the upgrade path...
|
05-04-17, 12:49 PM | #6 | ||
Pacific Thunder
|
Quote:
After the attack seemed to be over, Quote:
https://en.wikipedia.org/wiki/USS_Silversides_(SS-236) I wanted to correct the GATO Asiatic start date and tell the interesting (story) of part of Silversides fourth patrol. After the above incident, she went on to sink the largest ship of her career before returning to port for major repairs. Happy Hunting!
__________________
" Bless those who serve beneath the deep, Through lonely hours their vigil keep. May peace their mission ever be, Protect each one we ask of thee. Bless those at home who wait and pray, For their return by night and day." |
||
05-05-17, 04:14 PM | #7 |
The Old Man
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
|
Well, the point of this exercise is not about when certain types were actually available, it's about what would be logical. Lt. Peasant has no political connections, starts the war in an S boat. LCDR Prince knows Important People, starts in a Porpoise. LCDR King comes from a wealthy family, starts in a Salmon. So when LT Peasant finishes 3 or 4 successful patrols in an S class, will he get upgraded to a Tambor? Not likely, LCDR Prince and LCDR King get Tambors, LCDR King's XO get promoted to command the Salmon, LT Peasant gets LCDR Prince's old Porpoise for his next command. If LT Peasant does an outstanding job and gets a lot of medals, he could get the best sub available, but the average would get something better than he had but not always the best.
The way the game is set up the "upgrade" is a completely random roll of the dice, it's possible to go from an S boat to a Gato, then for the next "upgrade" you get demoted to a Salmon. What I'm trying to do here is make the progression more logical, and the Flotilla Commonality number still leaves the career programming random rather than something that makes sense. Editing those Flotilla Commonality numbers reduces the odds of going from a Balao to a Gar, but a bad roll of the dice is still possible. |
|
|