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 07-06-12, 03:32 PM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default [TEC] AmbientVolume controller

Hi there,

I am currently working on importing a SHIII unit in SH5. Among other things, I am trying to set the volume of its sounds. For doing it I am using the AmbientVolume controller, that allows us to change sound volumes depending on both camera and parent object's location.

Its main parameters are sorted in arrays. Each array is composed by an identifier (making reference to SounSource identifiers in the same dsd file) and by a group of volume modifiers for different camera and object position:

Code:
ObjectAboveWater
ObjectBelowWater
CameraAboveWater
CameraBelowWater
CameraInterior
CameraSonar
So far so good. I'm experiencing a couple of shortcoming though:

- whenever I set two or more sounds to share the same identifier, trying to set their volume as a group, SounSource stops working and they can be heard "normally" in game as if the controller wasn't there.

- If I am not mistaken, sound modifier parameters seem to be expressed as percentages of the original volume (0=silent, 1=100%); nonetheless, everytime I try to set a value <1, instead of being reduced sounds are zeroed. In other words, the controller behaves like an on/off trigger.

Did anyone else experiment with it? I wonder whether I am missing something, or peraphs AmbientVolume is no longer fully supported by SH5?
gap is offline   Reply With Quote
Old 07-06-12, 03:40 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

AmbientVolume controller works fine in SH5. Take a look at FX update, it uses it for the flares, debris, torp explosion, etc.. Sounds more like you're using an illegal identifier. What identifiers are you using? You did add your sounds to the Sh.sdl file correct?
TheDarkWraith is offline   Reply With Quote
Old 07-06-12, 03:55 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
AmbientVolume controller works fine in SH5. Take a look at FX update, it uses it for the flares, debris, torp explosion, etc.. Sounds more like you're using an illegal identifier. What identifiers are you using? You did add your sounds to the Sh.sdl file correct?
Yes I did, and for any other purpose they play correctly in game.

As for identifiers, I am using custom ones. Suspecting that this could have been the reason, I tried to change them with standard ids (iirc Propeller, or Engine), and it didn't make any difference.

I'll try again anyway. Thanks!
gap is offline   Reply With Quote
Old 07-06-12, 03:59 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Yes I did, and for any other purpose they play correctly in game.

As for identifiers, I am using custom ones. Suspecting that this could have been the reason, I tried to change them with standard ids (iirc Propeller, or Engine), and it didn't make any difference.

I'll try again anyway. Thanks!
For 'normal' sounds Effect is the correct identifier. For underwater sounds hy2 is the correct identifier.
TheDarkWraith is offline   Reply With Quote
Old 07-06-12, 04:01 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
For 'normal' sounds Effect is the correct identifier. For underwater sounds hy2 is the correct identifier.
Ah okay, I'll try it and report back in a few... thank you very much!

EDIT:

WHY hy2? Isn't it hyd? On the unit I am workin on the Identifier hyd seems to work correctly....
gap is offline   Reply With Quote
Old 07-06-12, 03:45 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default Triggering sounds

Another quick question on sounds:

I wish some sounds to be triggered by particle generators (splashes, wakes, etc), i.e. being played during the lifespam of particles, and stopping particles desappear.

I am sure something like this is feasible, but I have no clue on how to do it. Until now simply giving these sound the same parent IDs as the particle generator tha should trigger them, didn't give the expected results.

Probably I could get inspired by some existing unit, but if in the meanwhile some good-hearted oldtimer will read this thread, his help will be much appreciated!
gap is offline   Reply With Quote
Old 07-06-12, 03:51 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Another quick question on sounds:

I wish some sounds to be triggered by particle generators (splashes, wakes, etc), i.e. being played during the lifespam of particles, and stopping particles desappear.

I am sure something like this is feasible, but I have no clue on how to do it. Until now simply giving these sound the same parent IDs as the particle generator tha should trigger them, didn't give the expected results.

Probably I could get inspired by some existing unit, but if in the meanwhile some good-hearted oldtimer will read this thread, his help will be much appreciated!
The sound has to be attached (it's parent node) to the type 4/100 node of the particle (if you want the sound to be associated with just the particle) or of the particle generator (thus sound is played where the type 4/100 node's location is)
TheDarkWraith is offline   Reply With Quote
Old 07-06-12, 04:00 PM   #8
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
The sound has to be attached (it's parent node) to the type 4/100 node of the particle (if you want the sound to be associated with just the particle) or of the particle generator (thus sound is played where the type 4/100 node's location is)
Is this enough? Are there no special names/settings to be given in .sdl file? No special identifier to be set in SoundSource controller? No other controller in .dsd file to be associated with generator's ID?
gap is offline   Reply With Quote
Old 07-06-12, 04:05 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Is this enough? Are there no special names/settings to be given in .sdl file? No special identifier to be set in SoundSource controller? No other controller in .dsd file to be associated with generator's ID?
That is all. It's really that simple to add new sounds (besides needed entries in DSD file and Sh.sdl also)

Your SoundSource, AmbientVolume, and SonarTarget entries parent ID will be what I spoke about above.
TheDarkWraith is offline   Reply With Quote
Old 07-06-12, 04:17 PM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Sorry, one more question:

according to your experience, is sounds volume, especially on hydrophone, somehow related to ship's current speed? Perhaphs through the ShipSound controller (StdByMaxRpm parameter)? If so, is there any way to set sounds free from this constrain?
gap 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 03:38 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.