View Single Post
Old 09-18-09, 12:14 PM   #6
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

I used to have a tench for stock, but when filefront had its meltdown, it went poof. I seriously do not have time to make another stock version, so ill give you a brief rundown of making one.

1.), rip the entire Data\Submarine\NSS_Tench directory right out of TMO. I don't care if anyone does that, but i'll refer you to the licensing & permissions section in the mods readme if you intend to redistribute later on.

2.) copy the \Data\UPCData\UPCUnitsData\UnitParts9Tench.upc file from TMO, you'll need this for your conning tower. Rename this file to be in numberical sequence to existing UnitParts file .

3.) Copy the Data\Roster\American\Submarine\SSTench.cfg file from TMO.

With all of these files in place, you should now have a Tench added to your game, playable in single missions, but not in campaign. To add it to a campaign, now we get to the messy part.

4.) In TMO, go to this file, Data\UPCData\UPCCampaignData\Flotillas.upc. What your going to have to do, is copy the additional entries for the tench, keeping in proper syntax with existing entries. You'll need to:
a.) declare the boat type for the flotilla,
Code:
[Flotilla 1.UserPlayerUnitType 9]
ID= F1Tench
NameDisplayable= Tench class
AvailabilityInterval= 1945-01-01, NULL
IDLinkUserPlayerUnitType= Tench
UnitTypeCommonality= 8  		
IDFlotillaLinkTransferTo= NULL
This is saying, this boat, goes to this flotilla, from this date onward.

b.) define the patrol missions for that boat.
Code:
[Flotilla 1.UserPlayerUnitType 9.Objective 1]
ID= PH9Obj1
NameDisplayable= East China Sea
AvailabilityInterval=1942-01-01, NULL 
ObjectiveCode= East China Sea

[Flotilla 1.UserPlayerUnitType 9.Objective 2]
ID= PH9Obj2
NameDisplayable= Marshalls patrols
AvailabilityInterval=NULL, 1944-04-01
ObjectiveCode= Marshall Islands

[Flotilla 1.UserPlayerUnitType 9.Objective 3]
ID= PH9Obj3
NameDisplayable= Empire Waters
AvailabilityInterval=NULL, NULL
ObjectiveCode= Honshu

[Flotilla 1.UserPlayerUnitType 9.Objective 4]
ID= PH9Obj4
NameDisplayable= Empire Waters
AvailabilityInterval=NULL, NULL
ObjectiveCode= Hokkaido

[Flotilla 1.UserPlayerUnitType 9.Objective 5]
ID= PH9Obj5
NameDisplayable= Caroline Islands
AvailabilityInterval=1942-01-01, NULL 
ObjectiveCode= Caroline Islands

[Flotilla 1.UserPlayerUnitType 9.Objective 6]
ID= PH9Obj6
NameDisplayable= Mariana Islands
AvailabilityInterval=1942-04-01, 1944-04-01 
ObjectiveCode= Mariana Islands

[Flotilla 1.UserPlayerUnitType 9.Objective 7]
ID= PH9Obj7
NameDisplayable= Palau Island
AvailabilityInterval=1943-01-01, 1944-04-01 
ObjectiveCode= Palau Island

[Flotilla 1.UserPlayerUnitType 9.Objective 8]
ID= PH9Obj8
NameDisplayable= Luzon Strait
AvailabilityInterval=1944-01-01, NULL
ObjectiveCode= Luzon Strait

[Flotilla 1.UserPlayerUnitType 9.Objective 9]
ID= PH9Obj9
NameDisplayable= Patrols in the Sea Of Japan
AvailabilityInterval=1944-11-01, NULL 	
ObjectiveCode= Sea of Japan
NOTE: You cannot just copy and past the above. You'll have to rework it so its in sequence to your existing boat entries in your flotilla.upc file. This means you'll have to change
- [Flotilla 1 to whatever
- UserPlayerUnitType 9 to whatever
- ID= PH9 to whatever

Pay VERY CLOSE attention to the sequencing. This file is finicky that way.

Having done that you should get a tench in campaign mode, if your awarded one, however if you want to start with a tench, you'll have to do the following:

5.) in TMO, look at Data\UPCData\UPCCampaignData\CareerStart.upc
and follow the syntax therein. This file is even MORE picky. Data must match what is in the flotilla.upc

After that, your done.
Ducimus is offline   Reply With Quote