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

adding sound to scenery

Messages
5,214
Hi,

Hate to admit it but I am at a loss how to add sound to scenery. Read several topics on the subject but still fail to grasp the idea.
Therefore,
- If I am not wrong you use an fx as suggested in another thread.
- how do you put your own sound in?
-and how do you make an xml out of this effect, at least if that is how you do it?
Thanks beforehand. Any help much appreciated.

Roby
 
Hi Folks

Roby -
The sound file is inserted into your effect file,
and the effect is then compiled into the scenery as normal.

See the FSX SDK - Creating Special Effects
It covers all the aspects you're looking for.

Example -
Code:
[Library Effect]
Lifetime=5
Version=2.00
Display Name=NavLt - OcWR6s9MBell - Occult White270/Red90, 6 sec, 9 Miles, Bell sound.
Radius=16668
Priority=0

[Sound]
FileName=_ODG_x_marine_bell_fixed_1.wav
MinAttenuationDistance=250.00
Looping=TRUE

Rest of the effects file.

HTH
ATB
Paul
 
Hi again,

Shoot Paul,

They have sent me a regular version of FSX although I paid for the deluxe version. Never noticed until now. In this stormy weather I could easily use some expletives here.
Now I am at a loss how to go further with making this effect and don't know how to make an xml file out of it as the fs2004 sdk is explaining me mothing. Is there some website that gives more info? I tried scenery design.org and others but without success. Misty Moorings does have sound in their scenery but does not explain how to use it in other scenery. Moreover, although very nice, it is payware and can only be used on their own scenery.
Sorry for bothering. Hope you haven't been battered too much by the raging storm. Wish I were in Spain.

Roby
 
Scenery sounds without effects!

How we can make this in FS2004 without using effects or LAGO's FS Enhancer 2004 tool?

The LAGO, Georender and FSAddon scenes are examples of this!

The FSAddon's Orcas Island scene has a expansion pack (OrcasSound_Beta1.zip) that he contains a .BGL file and .WAV files only! (www.fsaddon.org)

How it is possible to make this in the FS2004?
 
Hi,

And thanks for the explanation,
I tried your xml procedure. Unfortuvately I have no sound.
There can be several reasons, e.g.
The soundfile I used is an MP3 of which I changed the MP3 extension in .wav. Is that allowed?
Secondly, it might be that my coordinates are wrong. But I used the same coordinates as the extracted xml file from an earlier scenery.
Lastly, something is missing from the xml file as Arno's objectplacer gives me at first the message: "error 91 (Object variable or Block with variable not set)in prodedure mOpen_click of form MDIForm1" followed by: "an unexpected runtime error occurred..."
What is wrong?

Roby
 
I have no idea what that error is. The sound file must be a wav file. See if it will play in media player. You might can convert it to a wave file using the Recorder in Windows (Start, Programs, accessories, Entertainment, Sound Recorder. Start that and go to the file and open it. Then click File, Properties, and down low is a convert button , You can use 8 bit or 16 bit ( 8 will be smaller and work just as well) Then you can save it as a wave. Flight Simulator has NEVER supported sterio. It will play them but not as sterio, only as mono.
The coodinates have to be in the area you want to hear it.
This requires several files: the sound file, The FX file, A controler file, and the XML file for all the sounds, this is the file that has the locations. The sound file must be in the FSX\sounds folder, The FX file must be in the Effects folder along with the controller, and the compiled BGL from the xml in the scenery folder. Do not use a placer program to place it. Use my XML or any basic scenery XML and type the coordinates in as well as the effect name.

Be very careful with the names of the WAV and the FX files. The slightest error will cause it to not work with no error warning. If it doesn't work ....... check everything.

Edit ..... I forgot to say that I uploaded a scenery today, 07-12-08 to avsim that has sounds. File name is Hobos_House.zip. Scenery title is "Hobo's Dog House Lodge". This has all I have said except that the XML is not there, the bgl is. If you want email me,( My address is in the scenery) and I will send the XMl.


Joe W.
 
Last edited:
Hi again Joe,

First of all I am talking about FS9.
Then, I switched the sound file and used a wav but to no avail.
I do have a control file:
[Library Effect]
Lifetime=5
Version=1.00
Radius=500
Priority=0

[controller.0]
lifetime=0.0, 0.0
type=3
distance=1500.00, 1500.00
delay=2.00, 2.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=fx_RSgulls, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

and I have the effect file with the abovementioned name:

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

[Sound]
FileName=Staten_Island_Ferry_Depart.wav
MinAttenuationDistance=1075.00
Looping=TRUE

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

[Emitter.0]
Lifetime=0.00, 0.00
Delay=0.10, 0.90
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

Would that be OK?

The xml file reads:

<?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="29.996667" lon="48.35013" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_RSgulls" />
</SceneryObject>
</FSData>

On the other hand, I read in a Holger Sandman thread that you have to set a parameter for your sound and rename your sound to one of the hardcoded sounds in FS but I do not know if this is also true for sounds in scenery effects.
Your help would be much appreciated as you managed to get it done apparently.

Roby
 
Roby
I think I use a program FSSE for sound in FS9. There was a commercial sound program tho.
I don't have FS9 installed nor the SADK anymore.so . I can't help you there.
Joe W.
 
Let me try to make it clearer. In the XML there are entries that are criticle.
<?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.116148" lon="-130.269985" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_Gulls3" />
</SceneryObject>

The FX file:

[Library Effect]
Lifetime=5
Version=2.00
Radius=10
Priority=1
[Sound]
FileName=gulls3.wav
MinAttenuationDistance=35.00
Looping=TRUE

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

I did n't show all of that FX, just the important part.

Then the controler:

[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_Generator, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00

This is the areas you have check and double check to make sure they match exactly.

I hope this clears up some things.
Joe W
 
Last edited:
Back
Top