• 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.

How do I use Sound files as effect?

I'd like to use sound files (WAV?) as effects. For e.g. when one flies into a an airport or some particular location, I'd like the sound of birds or some music from a radio station etc playing.

Any idea, how I can achieve this? Where do I start?

I didn't see a sound folder anywhere..thats why I am posting it here.

:eek: :)

Thanks

MAnny
 

n4gix

Resource contributor
You specify the path in the .fx file. The .wav can be anywhere you wish to put it.
 
Thanks Bill. That worked like a charm. I built a bunch of dummy objects using GMax and attached the FX files (The sound files) and then I am using Instant Scenery to place my sound files where ever I want.

The Q I have is..

Most of my sound files are loop and thats no problem. But I have one sound file that I want to use (Crowds clapping and cheering) neither 1 time nor in a loop.

Well...I want it in a loop but with a long pause between each play.

What do I need to do to accomplish that?

Any ideas?

Manny
 
All right Bill.

What does "1 time mean"?

1. Does it mean when a user loads FSX and flies into the proxmity of the location and it triggers that sound file once and thats it?

OR

2. does it mean...when the person flies out of the Radius and comes back in, it retriggers the effect?

I tried (2)...but its not re triggering. So I suspect its 1).

MAnny
 
I'd like to use sound files (WAV?) as effects. For e.g. when one flies into a an airport or some particular location, I'd like the sound of birds or some music from a radio station etc playing.

Any idea, how I can achieve this? Where do I start?

I didn't see a sound folder anywhere..thats why I am posting it here.

:eek: :)

Thanks

MAnny
Hi, can similar be done in FS9? If so, could someone post an example of the lines of text I'd need to add / remove / modify in the .fx file?

Thanks,

Dave.
 
Last edited:
I second Dave's request for FS9 users - I'm working with someone that wants to have the call to prayer being yelled from mosques in Arab countries (in external or tower views). Timed - 3 or 5 per day. He doesn't want to use a standard ambient WAV (the amb*.wav files), but link to one in the scenery itself.
 
You can use the effectParams for controled effects. In the SDK for effects Toward the end it explains how to use this in effects. It works for sound too.
Basically you need a sound file, an effect file for that sound, If you have more than on sound, you need a controller, then you need an XML to place it. this is just like placing a object.
This is for one sound:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<SceneryObject lat="55.118049" lon="-130.316691" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_Gulls3" />
</SceneryObject>

To add another sound just place another object. Effect Params can be added to the line with the effect name.

Next is the FX file:
[Library Effect]
Lifetime=5
Version=2.00
Radius=24
Priority=1
[Sound]
FileName=gulls3.wav
MinAttenuationDistance=75.00
Looping=TRUE

[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1

[Emitter.0]
Lifetime=0.00, 0.00
Delay=0.50, 0.50
Bounce=0.00
Rate=5.00, 10.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=-0.20, 0.20
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=1.00, 2.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

The emmitter area has to be there or it wont work. The radius= ## is in meters. this is explained in the effects SDK.
The MinAttenuationDistance= is also in meters and it's the maximum distance it will be heard. this wont work unless you have a controller.

The controller:
[Library Effect]
Lifetime=5
Version=1.00
Radius=200
Priority=0

[controller.0]
lifetime=1.00, 1.00
type=3
delay=10.00, 10.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
random count=0, 0
effect.0=fx_Gulls3, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.1=fx_RRL_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.2=fx_HDH_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

This is for 3 effects The type 3 is for the distance parameter. This is also explained in the SDK.

With the above altered for you sounds and effects you can place an effect anywhere you want.
If you want to see this in a scenery, go to avsim and search for Joe Watson or Raptors Roost Lodge.

Would you guys like me to try and write this subject up for the Wiki? I have done about 5 sceneries with sounds. Only one has been uploaded. another is up over at SOH but will be on avsim over the weekend.

Joe W
 
Last edited:
Yes- I would, for FS9. Step by step. Also- any ideas how to get my rwy/txi lights brighter, especially farther away. File I made on Avsim- rwy/txi lights , author Robert Lacy in scenery design fs9. These lights are radio nav2 controlled and a set for adf controlled. On approach you go to desired freq and your rwy, txi lights come on before you land. Had fun making this, but they just are bright enough. Bob (did these with FSDS)
 
Yes- I would, for FS9. Step by step. Also- any ideas how to get my rwy/txi lights brighter, especially farther away. File I made on Avsim- rwy/txi lights , author Robert Lacy in scenery design fs9. These lights are radio nav2 controlled and a set for adf controlled. On approach you go to desired freq and your rwy, txi lights come on before you land. Had fun making this, but they just are bright enough. Bob (did these with FSDS)

This should work in FS9 but I'm not sure. I started doing this in FSX the hard way because there was no way to do it.
Your lights effects can be edited to make it bigger and brighter. It's in the SDK in the Effects area.

Joe W.
 
Thanx- I'll take a look. I've been reading up on efects. Looks very involved. Way over my head. Want a good laugh? I was trying to add some bright alpha objects directly on top of a campfire and set it rotating to make the fire look animated. It worked but looked terrible! bwahahaha! Bob
 
Could someone please tell me what is wrong with my coding, I just cannot get any sound file to work with my effect

My XML file is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject
lat="-23.1099391657211"
lon="20.173862019539"
alt="0"
pitch="0"
bank="0"
heading="0"
altitudeIsAgl="TRUE"
imageComplexity="NORMAL" >
<Effect effectName="fx_explosion" />
</SceneryObject>

The effects file is like this:
[Library Effect]
Lifetime=5
Version=2.00
Display Name=explosion
Radius=800
Priority=1

[Sound]
FileName=explosion.wav
MinAttenuationDistance=100.00
Looping=True


[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1


[Emitter.0]
Lifetime=50.00, 50.00
Delay=0.40, 0.40
Bounce=0.00
Rate=110.00, 110.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=-50.00, 50.00
Y Particle Velocity=-70.00, -60.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.0]
Lifetime=2.00, 8.00
Type=19
X Scale=200.20, 300.20
Y Scale=200.20, 300.20
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=-1.00, -1.00
Color Rate=0.30, 0.70
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Face=1, 1, 1

[ParticleAttributes.0]
Blend Mode=2
Texture=fx_2.bmp
Bounce=0.00
Color Start=255, 255, 0, 255
Color End=255, 0, 0, 0
Jitter Distance=0.00
Jitter Time=0.00
TempK=108.00
TempRate=-2.00
uv1=0.75, 0.50
uv2=1.00, 0.25
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00

The controller like this:
[Library Effect]
Lifetime=5
Version=1.00
Radius=200
Priority=0

[controller.0]
lifetime=1.00, 1.00
type=3
delay=1.00, 1.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
random count=0, 0
effect.0=fx_explosion, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

The sound .wav is in the Fs9 sound directory

The effect shows up where it should be, but no sound?
 

HolgerSandmann

Resource contributor
Hi guys,

sorry but the FSX method for attaching sounds to effects doesn't work in FS9.

There is one way for adding sounds to FS9 effects but it's very limited and has the serious drawback that it doesn't fade with distance meaning you'll hear it at the same level within the active radius of the effect (which can't be adjusted either). For example, I once attached splash sounds to AI floatplanes that would trigger on landing but ended up removing them because I could hear those sounds while flying dozens of miles away.

Here's an old AVSIM thread that explains how effects with sounds work in FS9: http://forums.avsim.net/dcboard.php?az=show_topic&forum=123&topic_id=15140&mode=full

Cheers, Holger
 
Last edited:
You can use the effectParams for controled effects. In the SDK for effects Toward the end it explains how to use this in effects. It works for sound too.
Basically you need a sound file, an effect file for that sound, If you have more than on sound, you need a controller, then you need an XML to place it. this is just like placing a object.
This is for one sound:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">

<SceneryObject lat="55.118049" lon="-130.316691" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_Gulls3" />
</SceneryObject>

To add another sound just place another object. Effect Params can be added to the line with the effect name.

Next is the FX file:
[Library Effect]
Lifetime=5
Version=2.00
Radius=24
Priority=1
[Sound]
FileName=gulls3.wav
MinAttenuationDistance=75.00
Looping=TRUE

[Properties]
Cockpit=1
VirtualCockpit=1
Spot=1
Tower=1
Map=1

[Emitter.0]
Lifetime=0.00, 0.00
Delay=0.50, 0.50
Bounce=0.00
Rate=5.00, 10.00
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=-0.20, 0.20
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=1.00, 2.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

The emmitter area has to be there or it wont work. The radius= ## is in meters. this is explained in the effects SDK.
The MinAttenuationDistance= is also in meters and it's the maximum distance it will be heard. this wont work unless you have a controller.

The controller:
[Library Effect]
Lifetime=5
Version=1.00
Radius=200
Priority=0

[controller.0]
lifetime=1.00, 1.00
type=3
delay=10.00, 10.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
random count=0, 0
effect.0=fx_Gulls3, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.1=fx_RRL_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
effect.2=fx_HDH_Wolf, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

This is for 3 effects The type 3 is for the distance parameter. This is also explained in the SDK.

With the above altered for you sounds and effects you can place an effect anywhere you want.
If you want to see this in a scenery, go to avsim and search for Joe Watson or Raptors Roost Lodge.

Would you guys like me to try and write this subject up for the Wiki? I have done about 5 sceneries with sounds. Only one has been uploaded. another is up over at SOH but will be on avsim over the weekend.

Joe W

Hi Joe
I have attatched a sound file to an effect and dont seem to be able to adjust the distance of the sounds, I have adding various MinAttenuationDistance settings,are you saying for the distance to work the effect must have a controller?

Cheers Alan
 
Top