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

Reply
 
Thread Tools Display Modes
Old 12-14-24, 04:39 AM   #1
JapLance
A-ganger
 
Join Date: Feb 2024
Posts: 78
Downloads: 83
Uploads: 0
Support External Cargo for merchants

I'm checking the external cargo that can be added to the merchants through the mission editor, and while the system is quite easy to understand, I have a question I couldn't find any reference to in the SH3 or SH4 forums

[CargoEntry 1]
NodeName=Ext Oil
LinkName=Lazi02
StartDate=19380101
EndDate=19451231
CargoType=1

What is that CargoType field? In the stock files it can be 0,1 or 2, but no clue about what it means. Any help would be welcome

JapLance is offline   Reply With Quote
Old 12-14-24, 09:25 AM   #2
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,098
Downloads: 451
Uploads: 2


Default

"Light", "Medium" and "Heavy", if I am remembering correctly - but what THAT refers to, I dunno... There was a note on that somewhere in one of the SH4 or 3 text files, but I can not find the reference of what I am remembering. Perhaps I am thinking of my original v1.01x whatever it was... the one where you lost your home port all of the time, and became The Flying American, never able to dock at home anymore...

All that said, you might contact iambecomelife, if he doesn't directly respond here, and see what he might recall. He has worked on this very subject a few times himself...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 12-14-24, 11:49 AM   #3
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,251
Downloads: 460
Uploads: 29


Default

Quote:
Originally Posted by JapLance View Post
I'm checking the external cargo that can be added to the merchants through the mission editor, and while the system is quite easy to understand, I have a question I couldn't find any reference to in the SH3 or SH4 forums

[CargoEntry 1]
NodeName=Ext Oil
LinkName=Lazi02
StartDate=19380101
EndDate=19451231
CargoType=1

What is that CargoType field? In the stock files it can be 0,1 or 2, but no clue about what it means. Any help would be welcome

not sure where you found that entry...SH3, perhaps? i could not find this anywhere in SH4.

if you know about the next four paragraphs, then i apologize for the repetition.

In SH4 and through the ME, certain ships have the capability of varying their internal and external cargo.
those two "types" of cargo (internal v external) have separate sets of values. these parameters and values are only valid when used in the MIS files that are generated by the ME.

external cargo is limited to three subtypes, freight, ammo, and fuel.
internal cargo can have as many as fourteen subtypes, from ext.oil to engine fuel.

each set of subtypes is numbered 0 to n.

when you see the parameter CargoExt or CargoInt set to a value of -1, that means that there is none. you will see this in the warship entries of the MIS files.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-14-24, 12:51 PM   #4
JapLance
A-ganger
 
Join Date: Feb 2024
Posts: 78
Downloads: 83
Uploads: 0
Default

Quote:
Originally Posted by KaleunMarco View Post
not sure where you found that entry...SH3, perhaps? i could not find this anywhere in SH4.
Oh, it's in the SH4 Data/Sea folder, where the ships are stored, and it works. I modified it to better reflect some external cargoes in my Mediterranean mod.

The stock library with cargo has some smaller items that could be used (you know, those smaller merchants whose cargo comes out of the side ). Apparently they just didn't code them into the CargoDef.cfg file (perhaps just another example of Ubisoft rushing stuff to meet the launch dates).

Added a SH3 library which has drums, added them for oil and fuel, and voila:



No more External fuel on boxes or cantainers (ignore the vehicles, those are part of the ship .eqp file).

Apart from that, my brain has been going round that CargoType field all day, and maybe, bearing in mind which cargo has each type and that there are no .zon files for this library, the 0 means inert cargo (vehicles, food, whatever), the 1 burning cargo (oil and fuel) and the 2 exploding cargo (ammo stuff). But I haven't tested that. But maybe it's just that they didn't add the zones and all this is nonsense .

Leaving all this aside, I'm surprised propbeanie didn't come with the proper answer , and that apparently no one else had looked at that before.
JapLance is offline   Reply With Quote
Old 12-14-24, 01:12 PM   #5
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 29,974
Downloads: 24
Uploads: 0


Default

https://www.ssjohnwbrown.org/blog/20...-hold-how-many
Quote:
This aerial photograph of the JOHN W BROWN outbound from the US carried a large deck cargo even after her conversion to a "Limited Capacity Troopship." This shot is most likely taken in the summer of 1943 during her second voyage. Notice how low in the water she is.
....and let's not forget secret Operation Ivory Soap 'aircraft repair units" http://www.usmm.org/felknorivory.htmlThen again, I'm glad I wasn't top cargo a few years back aboard the D-Day survivor SS Jeremiah O'Brian at Fisherman's Wharf in San Fancisco a few years back!
__________________

"Only two things are infinite; The Universe and human squirrelyness?!!

Last edited by Aktungbby; 12-14-24 at 01:26 PM.
Aktungbby is online   Reply With Quote
Old 12-14-24, 01:19 PM   #6
JapLance
A-ganger
 
Join Date: Feb 2024
Posts: 78
Downloads: 83
Uploads: 0
Default

Quartermaster playing Tetris on deck . Are those P47 Thunderbolts?

I think this is doable, but probably easier to get the right result on an .eqp file than the external cargo settled through the editor.
JapLance is offline   Reply With Quote
Old 12-14-24, 02:40 PM   #7
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,251
Downloads: 460
Uploads: 29


Default

Quote:
Originally Posted by JapLance View Post
Oh, it's in the SH4 Data/Sea folder, where the ships are stored, and it works.
well....it serves me right for believing 010Editor.

glad you were able to figure it out.

now i have to decide how i am going to archive this info such that i can find it the next time i need it. good luck with that, eh!
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-14-24, 02:47 PM   #8
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,251
Downloads: 460
Uploads: 29


Default

Quote:
Originally Posted by JapLance View Post
Oh, it's in the SH4 Data/Sea folder, where the ships are stored, and it works. I modified it to better reflect some external cargoes in my Mediterranean mod.


to what file does NodeName and LinkName refer?

[CargoEntry 10]
NodeName=American Tanks
LinkName=father_AMER

StartDate=19380101
EndDate=19451231
CargoType=0
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-14-24, 03:03 PM   #9
JapLance
A-ganger
 
Join Date: Feb 2024
Posts: 78
Downloads: 83
Uploads: 0
Default

Quote:
Originally Posted by KaleunMarco View Post
to what file does NodeName and LinkName refer?

[CargoEntry 10]
NodeName=American Tanks
LinkName=father_AMER

StartDate=19380101
EndDate=19451231
CargoType=0
NodeName is the name displayed in the external cargo dropdown list of the mission editor.

LinkName is the object in the libraries that is displayed in the game (in the Kxx nodes). In this example, father_AMER is in the cargos.dat library (the original one for SH4).
JapLance is offline   Reply With Quote
Old 04-13-25, 07:25 AM   #10
JapLance
A-ganger
 
Join Date: Feb 2024
Posts: 78
Downloads: 83
Uploads: 0
Default

Adding this to bump the thread, as I'm still not sure about the question I did in the opening post, in case somebody knows the answer.

Also handy to test the file attachment, which I had never used before .

Alex.B SH3 Liberty ship, with some nodes added to accept external cargo.
Attached Images
File Type: jpg SH4Img@2025-04-13_14.03.27_573.jpg (85.5 KB, 14 views)
JapLance is offline   Reply With Quote
Old 04-13-25, 08:56 AM   #11
ElCid97
Machinist's Mate
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 122
Downloads: 120
Uploads: 5


Default

In the "digging" I've been doing around files, I've seen what you are referring to.

I'm not too sure, but I believe the original answer by Propbeanie may be correct since it would make sense from a "computer" standpoint where "0" means "nothing".

You may want to ask over at the "Wolves of the Kaiser" mod thread as he stated since "ihavebecomelife" has been doing some EXCELLENT work over there with regards to things like this.

Hope this helps!

ElCid97

PS/clarification: No estoy muy seguro, pero de una perspectiva de "computadoras/ordenadoras" me parece que "0" como "light" o "none" me parece creible.

Chequea en el foro de WotK con "ihavebecomelife" o mandale un mensaje a ver si puede hechar un poco de luz en esto.

Saludos!
ElCid97 is offline   Reply With Quote
Reply


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 09:39 AM.


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