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 08-02-10, 11:27 AM   #1
John Channing
Sea Lord
 
John Channing's Avatar
 
Join Date: Sep 1998
Posts: 1,846
Downloads: 163
Uploads: 5
Default Question about Modding sounds

I was wondering if anyone knows where the sounds are triggered from.

For instance when you hit the "D" key you get a voice reply "Periscope Depth, aye sir" and then the diving claxon. What I am looking for is the file that triggers the sound to see if it can be modded. I have located the sounds themselves, but I am looking for the event triggers.

Hopefully they are not hardcoded.

JCC
John Channing is offline   Reply With Quote
Old 08-02-10, 12:29 PM   #2
MGR1
Grey Wolf
 
Join Date: Aug 2006
Location: Aberdeen, Scotland, United Kingdom
Posts: 980
Downloads: 252
Uploads: 0
Default

Have a nose inside the AnimGraphs and AnimGraphsGE folders in the Library folder in the main directory.

The .dat files are for each crewmember's animation - the triggers are in there.

See if you can get a hold of Ducimus - he'll have a shrewd idea as to what to edit.

IIRC, most of the triggers in SH4 are borked - I know there have been attempts to get the sound man to report correctly, but not with much success.

Mike.
__________________
"I am the battleship Jean Bart. This name originates from a certain 'respected' privateer... Yes? You want to know what privateers are? Hmph, they are pirates that rob openly under the banner of their country."

Jean Bart from the mobile game Azur Lane.
MGR1 is offline   Reply With Quote
Old 08-02-10, 12:57 PM   #3
John Channing
Sea Lord
 
John Channing's Avatar
 
Join Date: Sep 1998
Posts: 1,846
Downloads: 163
Uploads: 5
Default

Thanks
John Channing is offline   Reply With Quote
Old 08-02-10, 01:58 PM   #4
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Ordinarily, a sound and it's behavior is defined in the /data/sound/sh.SDL file.

The individual sound entries in this file, are usually called upon a DSD file somewhere. Such as /data/interior/NSS_*.* or, data/submarine/NSS_*.*, or data/air, etc etc.

These sounds in the DSD files, are usually triggered by some controller or action, and have a parent child relationship with that controller and some node somewhere.

For the player submarine, DSD files that effect it are in 3 places.
particles.dsd, the dsd file for whichever interior the boat is using in the interior directory, and the dsd file for whatever submarine it is in the submarine directory.

For the new sounds that are added in SH4. Passing thermal layer, general quarters, etc. I can't find a DSD entriy for any of them. That's not to say it doesnt exist, only that i can't find it.

What is funny about these sounds though, is how they are universal. Regardless of interior, or submarine, these sounds will play. Since individual entries can't be located in any interior, submarine, or particles.dsd, it's reasonable to assume they are global in scope. Or in programming terms, they are global variables. Within the program they can be accessed by ANYTHING.

So my thought is, unless there is a DSD file im missing, or they reside very descretely in a graph file (i've never been able to see find it), then they are most likely hard coded global variables within the program. Another item that makes me think this is the implentation of the bathermalgraph. it *SHOULD* be an upgradable piece of equipment. It' was "tacked on" to all boats from the get go for looks (you'll hear "passing thermal layer" without it), and then some global variable was hashed out to active the sound for it. In sum, i think the implentation of it, was a "quick fix".. or one of those "temporarily permanant" solutions. But that's just a guess.
Ducimus is offline   Reply With Quote
Old 08-02-10, 05:26 PM   #5
tomoose
Grey Wolf
 
Join Date: Aug 2005
Posts: 930
Downloads: 23
Uploads: 0
Default Global variables

Ducimus;
what you say makes sense and if I understand correctly explains the dreadful error regarding the rubber dinghy-bumping-into-the-sub sound which is, in fact, the normal ship collision sound. Ergo you get a horrendous grinding of metal sound when the tiny rubber boat bumps into your sub.

I tried changing the sound to something more suitable (i.e. a canoe bumping against a dock) but that ended up making the ship collisions sound like......a canoe bumping against a dock and a game crash.

All that to say that there must be 'universal' triggers which are hardcoded otherwise that dinghy horror could have been sorted out a long time ago.
tomoose is offline   Reply With Quote
Old 08-02-10, 05:31 PM   #6
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

ship collision is in the particles.dsd if i remember right. But yeah, unless its being called from a DSD lower in the pecking order (submarine, or ship specific file), then its a global variable. It may be possible to override that by creating a specific entry, but i honestly don't know.

edit: as an aside, the reason why you hear ship collisions with life rafts is because the game see's them as ships. They even have damage zones assigned to them, which is why you'd see them explode like a ship.
Ducimus is offline   Reply With Quote
Old 08-03-10, 10:06 AM   #7
John Channing
Sea Lord
 
John Channing's Avatar
 
Join Date: Sep 1998
Posts: 1,846
Downloads: 163
Uploads: 5
Default

So I can already see the water is waaaaay over my head, but what the heck.

What program would you use to read these files so one could see what was going on?

JCC
John Channing is offline   Reply With Quote
Old 08-03-10, 10:12 AM   #8
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 50,369
Downloads: 745
Uploads: 249


Default

Quote:
Originally Posted by John Channing View Post
So I can already see the water is waaaaay over my head, but what the heck.


When I saw the thread title I thought "Oh cool! Here's something I can help with. Then I read your post and thought "Umm, I think I'll be moving along now. I don't even know where to begin to look, much less what to do about it."
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 08-03-10, 01:32 PM   #9
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Quote:
Originally Posted by John Channing View Post
So I can already see the water is waaaaay over my head, but what the heck.

What program would you use to read these files so one could see what was going on?

JCC
S3D. Install it, and just fish around the game files. You'll liable to notice all sorts of things.
Ducimus is offline   Reply With Quote
Old 08-03-10, 05:54 PM   #10
John Channing
Sea Lord
 
John Channing's Avatar
 
Join Date: Sep 1998
Posts: 1,846
Downloads: 163
Uploads: 5
Default

Installed it. First thing I noticed?

That I have absolutely no idea what I am looking at. Looks interesting though.

Hmmmm... I wonder what that does...






Thanks,

JCC
John Channing is offline   Reply With Quote
Old 08-03-10, 06:03 PM   #11
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

hehe :p
skwasjer is offline   Reply With Quote
Old 08-03-10, 06:22 PM   #12
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Quote:
Originally Posted by skwasjer View Post
hehe :p
Once he figure's it out, he'll never be able to stay out of the game files.
Ducimus is offline   Reply With Quote
Old 08-04-10, 02:05 AM   #13
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by Ducimus View Post
Once he figure's it out, he'll never be able to stay out of the game files.


that figures ... it that why I can't "play" anymore ???


keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 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 07:52 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.