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 > SH4 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-01-16, 08:56 AM   #11
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

For everyones information, the Campaign Files need to be changed/modified whenever a "Type" change is made. I thought this was evident.

It's one thing to have a ship actually become an "Air Base" (allowing planes to spawn from it when the enemy is detected) and make a specific playable mission that has it do so........its another to have the Campaign files recognize a change has been made to a specific ship and expect it to do the same.

The Campaign files sometimes allow random ships from a specific "Type" to be spawned. The files simply call on a "Type19" (a Super Fleet Carrier) to appear. Out of the inventory of Type 19's....a ship is made to spawn for that mission.

At other times the Campaign mission states specific ships (by their specific name) to be spawned.....like when a specific ship is used for a specific battle mission (the Enterprise, Yorktown may be used during the Battle of Midway). When these specific named ships are called on in the Campaign files, the ship "Type" had better be what's listed in the ships .cfg files.

It's these two issues that need to be remembered when getting all the parts to fit together.

When I made some of the BB's, CA's, CL's turn into "Air Bases" it was with the above understanding of how things work that I left some of the BB's, CA's, CL's as they are. Those that were not categorized as "Air Bases" will fill in the inventory of their original "Types".....the others were going to fill in the role of their new "Type". Which means the Campaign files need to be modified to allow for this change. Just switching ship "Types" wasn't going to make a flawless transition......all Campaign or Dynamic Campaign files are going to have to be looked at for correct ship "Type" changes, especially when a specific "Named" ship is called on.

Just figured you "Campaign" guys knew that.

==============

Quote:
Originally Posted by propbeanie
(Referring to ship "Type").......the list is hard-coded, but the naming scheme is "mod-able", correct? That's how you changed the names of 18 and 19, right?
Yes, the naming is whatever you wish to call it. What the specific "Type" does is hard coded.

Quote:
Can you explain how the use of Type=21 allowed the showing of a warship flag on the cloned vessel?
Having a specific ship on a particular side, Axis/Allied/Neutral, or showing a particular flag for that ship is done within the Roster folder and the .cfg file that lists the nationalities and at what time they are listed either neutral....friend or foe (sorry I'm not at home now to look up the specific .cfg file, I just know there is one).

Take the neutral Red Cross entry. You make a folder called Red Cross in the Roster folder (its your new "nation"). Fill it as you would any other nations folder with the other folders (Air, Sea, etc). Put a ship in the "Sea" folder that follows the conventions as the other ships in the other nationalities folders (based on a ship that's been correctly placed in the Data/Sea folder). This ship can be cloned, yet you need to have completely different indexes for the ship in its 3D modeled parts so the game doesn't get confused when its called on to render the two ships at the same time. Put a flag that represents your new nation into the proper "Flag" file and poof.....you've got a ship flying its new flag, for a new nations entry into the game.

Quote:
Do you happen to know if there are available "slots" in the list, above what Stock SH4 shows in Names.cfg?...
If you mean......can you add additional ships to the Names.cfg? Sure can.

The Red Cross ship has a ClassName=HMSGimpy in its .cfg files (both in the Data/Sea/xxxx.cfg folder, and in the Data/Roster/Red Cross/Sea/xxxx.cfg file). In the Names.cfg file, add the name HMSGimpy=Hospital Ship under the Sea group of listed names. The name "Hospital Ship" will appear whenever you open the Recognition Manual, or when you look at the Museum list of ships under the new nations name of Red Cross, or on the Position Keeper when you use Auto Targeting for game play. The number of ships is infinite, even having the ship named in the Names.cfg makes no difference if the ship doesn't exist...the game just ignores it. If you've ever looked at RSRDC's Names.cfg file you'll see many ships are from Lurkers Operation Monsun mod......no need to remove them, the game doesn't use them.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"

Last edited by CapnScurvy; 11-01-16 at 09:07 AM.
CapnScurvy 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 11:35 PM.


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.