Thread: [REL] FOTRS Ultimate Project
View Single Post
Old 11-01-17, 07:55 AM   #5439
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,761
Downloads: 441
Uploads: 2


Default

The Tench class wasn't available "historically" until late 1944. The Tambor class would be "historical", and are available in-game with FotRSU.

However, if you're wanting a Tench all the way through, you need to add the boat to the CareerStart.upc and Flotilla.upc files, in addition to having missions assigned to it. You will also most likely run into issues with the equipment files, since a bit of what is on the boat isn't available to any boats until later in the war... Be sure an work with copies of the files, and build what you do into an add-in mod so that you can back it off if necessary. You'll also have to edit the "Roster \ American \ Submarine \ SSTench.cfg" file to include an actual boat for the dates you'll use.

Use the files there already as examples of what you want to add:

(Both files are in Data \ UPCData \ UPCCampaignData)

CareerStart.upc file
---------------


Pick your base, and add a boat to it. The "F2" portion of the names below refer to the "Flotilla 2" designation. Don't forget which one you're working on. The number after the boat is how many boats are available of that particular class. The "Sboat" has six, the added Tench has one:

[CareerStart 1.Flotilla 2]
ID= C1Flotilla2
NameDisplayable= Manila
IDLinkFlotilla= FremantleCommand
IDLinkUserPlayerUnits= F2Sboat, 6, F2Porpoise, 7, F2Salmon, 6, F2Sargo, 11, F2Narwhal, 2, F2Tench, 1
FlotillaBriefingText=
FlotillaCommonality= 2 ; to be used when a random choice is assigned


You'd need to add the boat to each of the Starts you'll use with the boat. btw, the semi-colons (";") are to designate "Comments", so watch for those.

You'll also have to add the boat to the Flotillas file, incrementing the UserPlayerUnitType number, such as

Flotillas.upc
-------------
[Flotilla 2.UserPlayerUnitType 6]
- It is the 6th boat listed
ID= F2Tench
NameDisplayable= Tench class
AvailabilityInterval= NULL, NULL
IDLinkUserPlayerUnitType= Tench
UnitTypeCommonality= 1
IDFlotillaLinkTransferTo= NULL


- and - you have to have Objective assignments for the boat. If you copy another boat's assignments (recommended), you just have to change the boat's designation:


[Flotilla 2.UserPlayerUnitType 6.Objective 1]
ID= Fre6OBj1
NameDisplayable= Objectives placed around the Phillipines
AvailabilityInterval=NULL, 1944-10-01
ObjectiveCode= Philippines

[Flotilla 2.UserPlayerUnitType 6.Objective 2]
ID= Fre6OBj2
NameDisplayable= Java Sea
AvailabilityInterval=1942-02-01, 1945-08-01
ObjectiveCode= Java Sea


... blah blah blah - thru Obj9 in this particular Flotilla...

Be careful of what Flotilla you put your boat in. In this particular case, Manila moves to Surabaya, and then to Fremantle. There are other boats that enter this particular Flotilla at different times, and you're particular edits are "butting in line", so to say. That could possibly mess-up the other boats later. Also, watch for when the real Tench comes in. You might just use Pearl Harbor as your Base, and edit the current Tench listings. I'd probably stay away from the Manila start with this...

Now, all that said, following all this to the letter, you may very well trash your installation with this. After all, I may have missed a step, or you might make a typo, hence my cautioning you. Make a folder such as "ModBuilds", and below that "EarlyTench", with the data files below that, so that you end up with something like "C:\ ModBuilds \EarlyTench \Data \ UPCData \UPCCampaignData \" and then these two edited files. Put your Tench.upc file in a "Submarine" folder under "Data". Don't forget the "Roster" folder changes also. The "EarlyTench" folder is what you would copy to the game's "MODS" folder for activation with JSGME. So you'll have the game's "MODS" folder, and "EarlyTench" below that (the "name" that will show up in JSGME), with "Data" below that. Below that would be the "Roster", "Submarine" and "UPCData" folders, each with their own folders and / or files...

You'll have to experiment with the other files, since I know next to nothing about what equipment becomes active when for what boats, much less how to edit the files. Just be sure and build this as a Mod, and you can back it off if it blows things up the wrong way... One little typo, and the game will crash. You can guess which file it is by when the crash occurs. If it dumps as soon as you ask for the Career Screen, then it's probably the CareerStart. If it crashes when you choose a boat, it's probably the Flotillas file, in the boat definition, or a mis-match to CareerStart. If it crashes when loading the mission, it could be Flotillas in the assignment for the Objective - but maybe not... If the game itself crashes when starting at the beginning... well... I dunno... - back off the mod and try without it. If it still won't start, move the Save folder so that the game can't find it, and try again (that does re-set you to 1024x768, and all settings back to Stock)... Good luck with it, and I warn you - this is a disease, and will take over your life... "modding", that is... you have been warned!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote