• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Sounds and Trigger questions

Messages
16
Country
austria
Hello everyone,

I have follow problem:

I made in GMax an object and place with the attachment tool an effect (a sound) to it. I converted it with helps the convert wizard (ModelConverterX) and I can hear the effect in FSX.

But the problem is that I can not set the distance using trigger date from which the sound is heard. I read the SDK and here in this forum. It´s to read that the trigger (radius) and the MinAttenuationDistance is in meters.

But when I tell the trigger, the radius is 1 (I meen one meter), and MinAttenuationDistance also 1, I can already hear the sound 20 meters away.

When i change the radius= to 100 or 1000 or 2, all it´s the same, only the change of the MinAttenuationDistance has an impact on the distance. When I change this to 0.1 (lt. SDK is this the beginning or end of the sound in 0.1 meters) I can begin it to here ca. 2 Meters distance from the objekt.

And when I tell the controller the radius and or the distance less than 1000 I can hear nothing.

I can not understand this.

What i want is, the sound should be coming on in 1 Meter distance from the objekt. The trigger sould be turn on the sound only within the meter. Not before.

Can someone explain to me how to do this? And why does the Trigger not work for me? What is going wrong, what I make wrong?

Here the files:

Controller:

[Library Effect]
Lifetime=5
Version=2.00
Radius=1000
Priority=0

[controller.0]
lifetime=0.00, 0.00
type=3
distance=1000.00, 1000.00
delay=300.00, 300.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=testvwave.fx, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 2.00, 3.00

--------------------------------------------------------------

testvwave.fx file:

[Library Effect]
Lifetime=5
Version=2.00
Display Name=testvwave
Radius=1
Priority=0
[Sound]
FileName=testwave.wav
MinAttenuationDistance=1.00
Looping=TRUE

[Properties]

[Emitter.0]
Lifetime=246.00, 246.00
Delay=0.00, 0.00
Bounce=0.00
...
...
...

Many thanks for your help
Best regards
Oli
 
Hi Oli:

[EDITED]

Please try these files, then let me know how they work for you: ;)


Testvwave_Controller.Fx File (...When triggered by user-controlled aircraft within 1 Meter Radius, it "calls" Testvwave_Main.fx):

Code:
[Library Effect]
Lifetime=5
Version=3.00
Display Name=Testvwave_Controller
Radius=1
Priority=0

[controller.0]
Lifetime=0.00, 0.00
Type=3
Delay=300.00, 300.00
Distance=1.00,1.00
effect.0=Testvwave_Main

--------------------------------------------------------------

Testvwave_Main.Fx File (When 'called' by the Testvwave_Controller.Fx file above, it "Plays" testvwave.wav file):

Code:
[Library Effect]
Lifetime=5
Version=3.00
Display Name=Testvwave_Main
Radius=1
Priority=0

[Sound]
Looping=FALSE
MinAttenuationDistance=1.00
FileName=testwave.wav

[Properties]

[Emitter.0]
Lifetime=246.00, 246.00
Rate=0.01, 0.01


[END_EDIT]

Hope this helps ! :)

GaryGB
 
Last edited:
Hello GaryGB,

Sorry for my late reply, but I had too much work this week.

Many thanks for your interpretation and it is correct.

Thank you for your help.

nice greetings
Oli
 
Last edited:
Hi Oli:

I am on the road today, but would be glad to do a few additional tests tomorrow (Sunday) when I get some time free on my FS development computer. :)

I'll follow up with you on this interesting scenario to see if we can add some more to the FS Community knowledge base about implementing sound effects in FS, while hopefully also achieving your precise control criteria for triggering a sound within a 1 Meter radius of the user aircraft.


One initial question which came to my mind this morning (before my first cup of coffee ! :p) was whether in the Controller, you tried setting Radius=1 and Distance=1.00, 1.00 ? :confused:

GaryGB
 
Last edited:
Hi Oli:

Thanks for confirming my initial interpretation as (previously) shown in my Post #2 above.


I have edited Post #2 above to remove that no longer needed text, and there is now some "new" versions of your Effect files to try ! :alert:

http://www.fsdeveloper.com/forum/showpost.php?p=646599&postcount=2



PS: I am assuming the length of time required to play your entire "testvwave.wav file" is 246 seconds based on your use of "Lifetime=246.00, 246.00" in the Testvwave_Main.Fx file.

FYI: With "Looping=FALSE" in the Testvwave_Main.Fx file, the parameter "Delay=300.00, 300.00" in the Testvwave_Controller.Fx file ...can be set to as little as 246 seconds (unless you prefer to have a delay of 54 seconds before the Controller is available to be 'triggered' again).


GaryGB
 
Last edited:
Hello GaryGB,

i´m sorry for the delay. I´ve to many works.

Now I changed my entry in the controller and .fx file just like you wrote. But I can hear nothing.

Anyhow thanks for your help.

nicre greetings
Oli
 
Hi Oli:

If you were to put a copy of your original and edited *.FX files inside a ZIP file and attach it to your post here at FSDeveloper, perhaps we can troubleshoot further. :idea:

GaryGB
 
Back
Top