SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
04-17-19, 05:55 AM | #1 |
Navy Seal
|
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
__________________
|
04-17-19, 07:00 AM | #2 | ||
Admiral
|
Quote:
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:
|
||
04-17-19, 07:45 AM | #3 |
Navy Seal
|
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?
__________________
|
04-17-19, 10:26 AM | #4 |
CTD - it's not just a job
|
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?
|
04-17-19, 10:56 AM | #5 |
Navy Seal
|
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?
__________________
|
04-17-19, 12:38 PM | #6 | ||
Admiral
|
Quote:
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:
|
||
04-17-19, 12:56 PM | #7 |
Navy Seal
|
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...
__________________
|
04-17-19, 07:08 PM | #8 |
CTD - it's not just a job
|
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.
|
|
|