SUBSIM Radio Room Forums

SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Thread Tools Display Modes
Old 05-23-2020, 03:19 PM   #1
Sea Lord
Join Date: Apr 2008
Location: Germany, Italy
Posts: 1,620
Downloads: 102
Uploads: 3
Default Single missions & unit types

[Moderator please move this in the SH4 mod section, thanks very much !)

what can cause a mod soup to cause CTD when hitting 'Single Missions' in the main menu?
Also is there are single cfg or tsr file in the game which lists all Type and Class ID's for sea units (and other units) ?

I'm currently trying to adapt a playable ship package to work with different mods, only clash possibilities I can see are badly referenced unit types which are different than those defined in the single mission *.mis files, for example if a single mission contains

[Group 1.Unit 1]
Name=_JP Fast Merchant#1

I understand that the unit '_JP Fast Merchant#1' must be present in the Sea folder and exactly referenced as Type=102, if the number is different then it could crash the game. But what can cause a crash when hitting a menu section like 'Single Missions', I don't see the relation here ?

Problem is also I don't want to browse all unit cfg files to see if there are some 'doubles' that cause a crash (how could I do this anyway...) Is there a single file somewhere listing these ID's ?

XenonSurf is online   Reply With Quote
Old 05-24-2020, 05:42 AM   #2
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 7,752
Downloads: 769
Uploads: 10


Hi XenoSurf,

in SH5 and SHIV you can find a list of all the stock ship types in data\Roster\Names.cfg. The same file also contains all the ship classes and their menu names and this information should be updated every time a new unit is added to the game.

If a megamod / ship mod causes any stock mission to crash, three pre-requisites must be checked.
  • All the ship classes called in that mission must be in the sea folder, they must be named with the exact same class ID names as in the mis file, and they must be available in the roster of the nation(s) specified in that file. If a mod removes one of the stock ships from the game, renames its ID name (the menu name is not relevant) or removes it from the roster of one nation, it will cause the game to crash if a mission calling for the same ship class is launched.

  • Ship classes are assigned to national rosters through cfg files in the Roster folder, where their availability for each nation are marked as game entry/exit dates. I am not 100% sure about what I am going to say, but if a mission with a certain date calls a ship of a given nation, but the mission date is outside the window of availability of that ship class for the specified nation, the mission might crash the game on loading, or the called ship might not spawn in game.

  • For any given ship class, there must be an exact match in its unit Type, as stated in sea folder's .cfg file, roster ship .cfg file and mission file. If a mod changes the unit type of a ship, and that ship is required by one of the stock missions, the game will crash before the mission ends loading.

In my text above I talked about ships, but the same applies to any unit category (Sea, Submarine, Air or Land). I hope that helps
|May the Force be with you!|
gap is online   Reply With Quote
Old 05-24-2020, 10:14 AM   #3
Sea Lord
Join Date: Apr 2008
Location: Germany, Italy
Posts: 1,620
Downloads: 102
Uploads: 3

Thank you Gap, I appreciate your details, I will take a look in the names.cfg files, also your point 2 can be checked easily by modifying an entry date in a single mission to see if the game crashes or instead if the ship doens't spawn (which I remember was the case). An important trait in SH4 & SH5 is that single missions will *always* crash the game after 72 hours or so gameplay chrono time (I know this from SH5, but maybe not the case with SH4.)
As a last ressort I will have to go through all the unit files in Sea folder and the campaign mission files to see if these units are correctly referenced like in the names.cfg you mention, this is cumbersome but possible somehow. Normally I use to delete from a mod the Campaigns, the Sea, and Roster folders if I want to revert to stock campaign for testing and it 'generally' works but there are exceptions.

Have you ever seen or heard that it's possible to make any unit go along with a player's submarine in a mission/campaign ? I mean for example that a destroyer would always follow the waypoints of the submarine like in a defined convoy group? Of course such a 'player group' must be setup in a mission file.

Thanks very much

XenonSurf is online   Reply With Quote

Thread Tools
Display Modes

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 04:39 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 1995- 2020 Subsim