Page 1 of 1

custom sound not work

Posted: Tue Feb 17, 2004 3:59 pm
by tsensor
hi

I am trying to add some custom sounds.

i saw tut in this homepage, and i followed that exactly

i recorded helicopter sound from site using recording program. i saved sound file to 18_heli.wav


heres the script i am using:


main:

local.master = spawn ScriptMaster

local.master aliascache 18_heli sound/amb/18_heli.wav soundparms 1.0 0.2 1.0 0.2 200 2000 auto loaded maps "obj dm"

thread mover1_mover

level waittill spawn

end

//--
// mover1_mover
//--
mover1_mover:
wait 1
$speaker1 loopsound 18_heli

end





i never hear sound
never!
never!!!!!!!!!!!!!!!!!!!!!!!!!!!

but...when i changed soundfile in original game
example, below:


main:

local.master = spawn ScriptMaster

local.master aliascache Amb_RainRoof_02 sound/amb/Amb_RainRoof_02.wav soundparms 1.0 0.2 1.0 0.2 200 2000 auto loaded maps "obj dm"

thread mover1_mover

level waittill spawn

end

//--
// mover1_mover
//--
mover1_mover:
wait 1
$speaker1 loopsound Amb_RainRoof_02

end



successful.........
i heared sound(Amb_RainRoof_02)

i can play sound file in original game. but i cant play sound my own custom sound file.

i have to insert helicopter sound to my helicopter map
please help me please

try this

Posted: Tue Feb 17, 2004 4:22 pm
by tltrude
Did you try renaming the wav file. I don't know if it will work with a number at the start of the name. Also, there are different types of wav files and yours may not be the right type for the game. It should give an error in the console, if that is the case.