Adding Sounds to Effects

Discuss and share how to create, install, mod, etc... All about special flight simulator effects.

Moderators: rd, mel wilson, groundsquirrel, gbesoain, Cat1

Post Reply
User avatar
rd
Forum Moderator - Master member
Forum Moderator - Master member
Posts: 6866
Joined: Thu Mar 10, 2005 9:34 pm
Location: COMFORTABLY NUMB, in U.S.A. *** KOFF ***

Adding Sounds to Effects

Post by rd » Mon Oct 22, 2012 10:47 pm

This is very basic for now, so I'll be updating it as needed, as I want to get the basics of it here now, before I forget. After manipulating a few sound files, I've finally gotten the sound working for my NukemV2 effect (new Nuke effect) for FS9/FS2004.

This is the sound file I overwrote with my custom Nuke Explosion:

Sound=5
Sound Param=firework

Tried to upload the firework.wav file, and it wouldn't take. Hmmm, Lets see if I can upload it as a zip. Cool, just unzip and listen. :twisted: :twisted: :twisted:

Open the file fx_barnstorm.fx (in the FS9\effects folder)
with Notepad and see the lines:

Sound=5
Sound Param=40


These lines call a sound that is "hard-coded" into the Sim. The Sim looks for a specific wav file connected to the number "40", in this case the wav file "barn.wav" found in the FS9\sound folder.

Cfs2 used this a lot in the effects files, here is the list:


----------------------------------------------------
Sound filenames associated with effects file entries
----------------------------------------------------

Sound type "5"

Where three filenames are listed, one will play at
random at each initiation of the effect...

----------------------------------------------------
FX file entry sound file(s)
----------------------------------------------------
Sound=5
Sound Param=0
firework.wav
----------------------------------------------------
Sound=5
Sound Param=3
xvlg_exp.wav
----------------------------------------------------
Sound=5
Sound Param=4
amb_aexp1a.wav
amb_aexp1b.wav
amb_aexp1c.wav
----------------------------------------------------
Sound=5
Sound Param=7
amb_aexp2a.wav
amb_aexp2b.wav
amb_aexp2c.wav
----------------------------------------------------
Sound=5
Sound Param=10
amb_aexp3a.wav
amb_aexp3b.wav
amb_aexp3c.wav
----------------------------------------------------
Sound=5
Sound Param=13
amb_aexp4a.wav
amb_aexp4b.wav
amb_aexp4c.wav
----------------------------------------------------
Sound=5
Sound Param=16
amb_wexp1a.wav
amb_wexp1b.wav
amb_wexp1c.wav
----------------------------------------------------
Sound=5
Sound Param=19
amb_wexp2a.wav
amb_wexp2b.wav
amb_wexp2c.wav
----------------------------------------------------
Sound=5
Sound Param=22
amb_wexp3a.wav
amb_wexp3b.wav
amb_wexp3c.wav
----------------------------------------------------
Sound=5
Sound Param=25
amb_wexp4a.wav
amb_wexp4b.wav
amb_wexp4c.wav
----------------------------------------------------
Sound=5
Sound Param=28
amb_gexp1a.wav
amb_gexp1b.wav
amb_gexp1c.wav
----------------------------------------------------
Sound=5
Sound Param=31
amb_gexp2a.wav
amb_gexp2b.wav
amb_gexp2c.wav
----------------------------------------------------
Sound=5
Sound Param=34
amb_gexp3a.wav
amb_gexp3b.wav
amb_gexp3c.wav
----------------------------------------------------
Sound=5
Sound Param=37
amb_gexp4a.wav
amb_gexp4b.wav
amb_gexp4c.wav
----------------------------------------------------

Sound type "6"

These sounds play at one of four different "speeds"
or "tones", chosen randomly each time by the Sim...

The filename listed will play at each initiation
of the effect, with four possible variations...

----------------------------------------------------
FX file entry sound file(s)
----------------------------------------------------
Sound=6
Sound Param=1
imp_large_a.wav
----------------------------------------------------
Sound=6
Sound Param=2
imp_large_b.wav
----------------------------------------------------
Sound=6
Sound Param=3
imp_large_c.wav
----------------------------------------------------
Sound=6
Sound Param=4
imp_large_d.wav
----------------------------------------------------
Sound=6
Sound Param=5
imp_large_e.wav
----------------------------------------------------
Sound=6
Sound Param=6
imp_med_a.wav
----------------------------------------------------
Sound=6
Sound Param=7
imp_med_b.wav
----------------------------------------------------
Sound=6
Sound Param=8
imp_med_c.wav
----------------------------------------------------
Sound=6
Sound Param=9
imp_med_d.wav
----------------------------------------------------
Sound=6
Sound Param=10
imp_med_e.wav
----------------------------------------------------
Sound=6
Sound Param=11
imp_small_a.wav
----------------------------------------------------
Sound=6
Sound Param=12
imp_small_b.wav
----------------------------------------------------
Sound=6
Sound Param=13
imp_small_c.wav
----------------------------------------------------
Sound=6
Sound Param=14
imp_small_d.wav
----------------------------------------------------
Sound=6
Sound Param=15
imp_small_e.wav
----------------------------------------------------
Sound=6
Sound Param=16
imp_small_f.wav
----------------------------------------------------
Sound=6
Sound Param=17
imp_small_g.wav
----------------------------------------------------



In FS2002/4 these still work, just use one of the combos above in naming the new sound....

EDIT:

I forgot to mention the limitations:

Sounds are "global" (heard everywhere).
Sound plays once per effect initation, for the length of the wav file.

RD
Attachments

[The extension zip has been deactivated and can no longer be displayed.]

RD


"shhh.... I'm going undercover. "

User avatar
mel wilson
Forum Moderator - Master member
Forum Moderator - Master member
Posts: 4391
Joined: Thu Oct 26, 2006 9:18 pm
Location: Stowmarket, Suffolk.
Contact:

Re: Adding Sounds to Effects

Post by mel wilson » Mon Oct 22, 2012 11:58 pm

Jesus ...... had my sound up a tad too high... Just blown my freekin brains out................ yeah, nice one RD ...... I SAID NICE ONE RD... 8O

Mel.
http://www.mid-suffolk-radio-modellers.com/index.html

User avatar
rd
Forum Moderator - Master member
Forum Moderator - Master member
Posts: 6866
Joined: Thu Mar 10, 2005 9:34 pm
Location: COMFORTABLY NUMB, in U.S.A. *** KOFF ***

Re: Adding Sounds to Effects

Post by rd » Tue Oct 23, 2012 2:48 am

What part of "BIG" did you not understand in the title??? lol :twisted:

Sorry about that Mel. It sounds really good when making a video when you put on a music overlay. hehehe

RD
RD


"shhh.... I'm going undercover. "

ardie
New Forum Member
New Forum Member
Posts: 2
Joined: Mon Apr 09, 2018 11:23 pm

Re: Adding Sounds to Effects

Post by ardie » Mon Apr 09, 2018 11:25 pm

Cool stuff!!

Post Reply