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 04-17-19, 05:55 AM   #1
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,742
Downloads: 456
Uploads: 0


Default Sound question to modders

Hi,

What is calling a sound when clicking an item like in the order bar?

I suspect it’s not only in the SH.sdl file...

Could you tell me the right procedure to add a sound to an action?

Thanks in advance
Fifi is online   Reply With Quote
Old 04-17-19, 07:00 AM   #2
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by Fifi View Post
Hi,

What is calling a sound when clicking an item like in the order bar?

I suspect it’s not only in the SH.sdl file...

Could you tell me the right procedure to add a sound to an action?

Thanks in advance
What sound are you trying to add; to what action?

There are "Sounds" found in the SH.sdl file which are "linked" to .wav files that are stored in the same folder. Then there are "Speech" files which are stored in the Data/Sounds/Speech folder (.ogg files) which are linked to a "command" (order), which comes from an entirely different area. So it makes a difference to know what are you trying to do?

You have to remember this...……....We can substitute sounds for an action. Meaning we could take a quacking duck and make it be heard when the "Man Battle Stations" command is given. But, we can't make-up a completely new "command" and insert it into the game. The game is hard coded with that kind of limit. It has a specific number of "commands", it understands what to do when a specific "command" (order) is given. This is hard coded in it's game engine. We can't make-up a new "command" and expect it to do something......the game won't know what to do with it. We can only change an existing commands "linked" item's (like a sound that goes with it) into something else. It just won't work any other way.
__________________


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!"
CapnScurvy is offline   Reply With Quote
Old 04-17-19, 07:45 AM   #3
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,742
Downloads: 456
Uploads: 0


Default

Ah ok Capt

So no way to add new action linked to a sound...i thought it was like that unfortunately.

Anyway, atually it’s an order from command bar icon (man the deck gun and man the AA gun) wich is not giving sound. Even though there is the good speech file (i tested it, i can hear the sound) in the different speech sections.
Could you tell me where to check to make it work with appropriate sound please?
Fifi is online   Reply With Quote
Old 04-17-19, 10:26 AM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,749
Downloads: 440
Uploads: 2


Default

Fifi, are you clicking on a menu button and not getting the sound? Or are you using a short-cut key and not getting the sound? ie: "Man the deck gun!" is not heard when you press the menu button?
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 04-17-19, 10:56 AM   #5
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,742
Downloads: 456
Uploads: 0


Default

Yes, clicking menu button doesn’t play sound.
Not using key, because no key to call the « man the Deck gun »...

And now, i’ve Lost other few sounds as well, even though i could hear them before!
Could it be a sound card issue?
Fifi is online   Reply With Quote
Old 04-17-19, 12:38 PM   #6
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by Fifi View Post
Ah ok Capt

So no way to add new action linked to a sound...i thought it was like that unfortunately.

Anyway, atually it’s an order from command bar icon (man the deck gun and man the AA gun) wich is not giving sound. Even though there is the good speech file (i tested it, i can hear the sound) in the different speech sections.
Could you tell me where to check to make it work with appropriate sound please?
Your "Orders Panel" (along the bottom of the game interface) comes from the Data/Menu/cfg/OrdersBar.cfg file. The specific "Man the Deck Gun" command for the Stock game is found in [Section 5]; Button2...…"Toggle_activate_deck_gun_team". This is the "command" to "Man the Deck Gun".

The actual file that put's a "sound" with an "order" is found in the Data/Library/AnimGraphs folder. For the "Man_the_deck_gun" speech to play you will have to learn what each "Lead" individual is called......for instance the "Weapons Officer" is in the WCO.dat file. Opening it is not for the faint of heart! But to narrow down your search, look in "StateMachineClass/Stalker_Order/Conditions/[24]=Order/Actions/[1]=PlayMsg/Value"......poof, you're at "WaO_K_,Man_the_deck_gun". There's the connection.

It goes without saying there are three different "States" the game AI can be in.....Stalker/Hunter/Prey......and you'll find the same kind of "Order" found in each. So, don't just meddle with one, look at them all.

Now here's the thing, all of this is "superficial", the real meat and potatoes of what the game does with these values are hard coded. We can't do anything about it IF that's what actually makes it all come together. The game is "stuck" on needing to repeat "Yes Sir" when most command orders are given...….Why, well it's in the hard coded files because there's no place else it could be. We don't have access to even prove our theory, but that's the only explanation we can give when everything else seems correct.
__________________


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!"
CapnScurvy is offline   Reply With Quote
Old 04-17-19, 12:56 PM   #7
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 5,742
Downloads: 456
Uploads: 0


Default

Many thanks for your time with me
I understand better now.

Now, strange thing is some sounds are playing while in submarine school, but not on a career save game!
(Like Fire at will, aim for water line etc)
Could it be an SH4 save issue?

It’s with OM+OMEGU...
Fifi is online   Reply With Quote
Old 04-17-19, 07:08 PM   #8
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,749
Downloads: 440
Uploads: 2


Default

There seem to be issues like that in OM+OMEGU. We would have to have KaleunMarco run you through his findings in some of our experiments with OM, where we have found some of the boats "squirrelly" under certain circumstances. Are you using the English speech, or the German speech? CapnScurvy is the one who discovered the time length of some of the speech files are too long in FotRSU, which interferes with the next phrase being spoken, so you may also be encountering that, if the files have been altered from Stock (which really isn't much better in this regard). Some of the phrases are "built" from several words or phrases, linked together, so sometimes the issue is compounded.
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie 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 01:13 AM.


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