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

Reply
 
Thread Tools Display Modes
Old 06-24-13, 04:37 PM   #1
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

If you look at the big Mis file in the SH5 save game folder .

Name=_BR Large Merchant / War supplies (ProxY)#71
Class=KLWarSupplies
Type=102
Origin=British
LayerOperation=0
Side=1
Commander=0
CargoExt=-1 ?
CargoInt=-1
?
THE_MASK is offline   Reply With Quote
Old 06-25-13, 04:49 AM   #2
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by sober View Post

Name=_BR Large Merchant / War supplies (ProxY)#71
Class=KLWarSupplies
Type=102
Origin=British
LayerOperation=0
Side=1
Commander=0
CargoExt=-1 ?
CargoInt=-1
?
-1 value means "None". It's easy to see in custom missions, where you put several ships with different loadout. Then check the missions .misge-file, and there they are again:

...
Side=2
Commander=0
CargoExt=1
CargoInt=0

Doctrine=0
CfgDate=19391101
...

You can even change the loadouts with text editor, with CargoExt -1 is none, 0 is cargo truck, 1 is fuel truck, 2 is tank etc.

The reason why we don't see cargo in campaign is that the campaign files have also -1 in "CargoExt", and also many ships miss the required K-node. For example, this is the details of one polish convoy unit in Coastal Waters campaign:

[TRAF_POLISH_MERCHANT.ConvoyUnit 1]
Type=102
CountryName=Poland
ExternalCargo=-1
InternalCargo=-1

CrewRating=2
Weapons=0
Sensors=0
Tactics=0
Camouflage=0
Required=false
No=1
SpawnProbability=10
GroupLinkId=0

So just changing that negative number to another value should make a change (if the 102-type cargo ship has the cargo-nodes).
Rongel is offline   Reply With Quote
Old 06-25-13, 09:30 AM   #3
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Did some more studying... I found four big cargo ships (type 102) that had the K-nodes: Liberty Cargo, C1-B Type Medium Merchant, C2-S-B1 Hull Large Merchant and Victory Cargo. The reason why other ships don't have them might be that they are too small for the large external cargo. If you put the biggest pile of crates or train carts on a small or medium size cargo ship, it just won't fit, and there will be some ugly clipping (I witnessed this during testing).

And I also looked into campaign files, in OH 2 there are some convoys that have external cargo specified. But it seems that all random traffic is specified to be without cargo. So if I'm right, we should see some cargo just by editing the campaign! Will test this soon-ish!
Rongel is offline   Reply With Quote
Old 06-25-13, 09:54 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Rongel View Post
Did some more studying... I found four big cargo ships (type 102) that had the K-nodes: Liberty Cargo, C1-B Type Medium Merchant, C2-S-B1 Hull Large Merchant and Victory Cargo. The reason why other ships don't have them might be that they are too small for the large external cargo. If you put the biggest pile of crates or train carts on a small or medium size cargo ship, it just won't fit, and there will be some ugly clipping (I witnessed this during testing).

And I also looked into campaign files, in OH 2 there are some convoys that have external cargo specified. But it seems that all random traffic is specified to be without cargo. So if I'm right, we should see some cargo just by editing the campaign! Will test this soon-ish!
Setting some new cargo types would be nice. Lesser bulky cargo for smaller vessels, for instance. However going by what you are saying cargo types are indexed, and any cargo category got its own number. Could you find any file where cargo categories are linked to their respective 3D models?
gap is offline   Reply With Quote
Old 06-25-13, 01:35 PM   #5
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Gap, I think the only file that deals with ships external cargo is CargoDef.cfg, it's located in data/sea.

So currently the situation is that we can get external cargo to these four big ships if the cargo is specified in mission/campaign editor. Basically it's really easy, just select the cargo from the drop-down menu. But most of the ships are small cargo ships, like HogIsland, and these ships don't have the nodes for cargo. But if we make the new nodes to these ships (I tried it with TDW's great GR2 importer/exporter and worked it fine), large cargo won't fit there. I don't see any way that we could tell the game put only small cargo on small cargo vessels, it's linked with the ships type and large and small cargo ships belong to the same 102-type.

So there is two options. We could just put cargo to these big ships that already have the nodes, and enough space for every type of cargo. Downdside is that these ships are relatively rare, and most of the ships would still be empty. The second option is that we could add the nodes to every cargo ship, and only put small cargo items to them. Ofcourse we can still add large items to specified convoys that have big ships that can carry them.

Phew, I hope this is understandable! My option would be the later, add the nodes to every cargo ship and just place smaller crates, tanks and trucks to the ships, every cargo ship can carry them just fine.

Oh, by the way, I added some missing zone boxes and spheres to the cargo.zon file, and it worked great, we can get the cargo to be destroyed in many different ways! Here is one poor truck heading to depths:

Rongel is offline   Reply With Quote
Old 06-25-13, 03:26 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Rongel View Post
Gap, I think the only file that deals with ships external cargo is CargoDef.cfg, it's located in data/sea.
Okay, I had a look into the cfg file pointed by you. As far as I can see, by editing it we can even add new cargo types, which is good if we are going to need for more smaller cargo objects. The only settings which I don't fully understand are the CargoType= entries, though I suspect that 1 is used for explosive cargo, and 0 for any other cargo type.

Quote:
Originally Posted by Rongel View Post
So there is two options. We could just put cargo to these big ships that already have the nodes, and enough space for every type of cargo. Downdside is that these ships are relatively rare, and most of the ships would still be empty. The second option is that we could add the nodes to every cargo ship, and only put small cargo items to them. Ofcourse we can still add large items to specified convoys that have big ships that can carry them.

Phew, I hope this is understandable! My option would be the later, add the nodes to every cargo ship and just place smaller crates, tanks and trucks to the ships, every cargo ship can carry them just fine.
I agree with you about the second option

Quote:
Originally Posted by Rongel View Post
Oh, by the way, I added some missing zone boxes and spheres to the cargo.zon file, and it worked great, we can get the cargo to be destroyed in many different ways! Here is one poor truck heading to depths
Cool!
By selecting wisely the zone type assigned to each damage box, we can get cargo to explode, take fire, etc. If needed, we can also set new cargo zones
gap is offline   Reply With Quote
Old 06-25-13, 03:31 PM   #7
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Guys, that's a great find
Can't wait to download a new sea folder with brand new cargos full of wonderful loads
Fifi is offline   Reply With Quote
Reply

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 03:42 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.