View Single Post
Old 09-30-18, 03:26 PM   #3636
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,749
Downloads: 440
Uploads: 2


Default

There-in lies the rub... The "Game \ Sea \ NShipName \ NShipName.cfg" file has a line in it "UnitType=101" or whatever the number. The "Game \ Roster \ Country \ Sea \ ShipName.cfg" file has a corresponding "UnitType=0" line. Those have to match (these do not here in my quick example) exactly. You might consult the Names.cfg file in the Roster folder for these kind of lines:
;Warships
Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
... etc.
There's Warships, Merchants,, Subs, Airplanes, Land, etc... Those particular "UnitType=" lines also have to match each and every "call" for them in the Campaign files. However, in something like OM, don't forget that you're more concerned with "Game \ Data \ Campaigns \ CampaignGE \" and all other MIS files on the German side. ~ALL~ the MIS files... As an example, here's a few lines from the 44a_US_Merchants.mis file:
[RndGroup 1]
GroupName=44A_Allied_Merchants_001
Category=0
CommandEntry=0
Long=-14886600.000000
Lat=5797400.000000
Height=0.000000
...
That's a portion of the RGG "definition". Then the "Ships" it uses would be like:
[RndGroup 1.RndUnit 1]
Type=101
Origin=American
Side=1
CargoExt=-1
CargoInt=2
CfgDate=19440601
No=1
Escort=false
SpawnProbability=100
CrewRating=2
Which is a "Generic" call for an American Tanker. Note that there is not a "Class=xxx" line there? Those complicate things a bit further, such as:
[RndGroup 21.RndUnit 59]
Class=DERiver
Type=3
Origin=Canadian
Side=1
CargoExt=-1
CargoInt=-1
CfgDate=19440105
No=1
Escort=true
SpawnProbability=100
CrewRating=2
Which is a ship call in the Lant_Convoys_44.mis file. That Class= has to match the CFG files' "ClassName=xx" line... "xx" being the specific type of ship...

We have the good fortune of working with a spreadsheet wiz with s7rikeback on the FotRSU team, and he has a spreadsheet in the Support folder that makes life oh-so much easier for editing the Campaign and other MIS files. He has the Folder, ShipName, Call Name (might be different because of the use of "N" for a lot of Sea folders), Type= line, Countries used, etc., and all I have to do is click a button to sort them how I need them, and then "Search" through the files with Notepad++ or some other "Search" agent, and find the Calls that I need...
__________________

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