SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-30-18, 03:26 PM   #21
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


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 naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.