custom sound problem
Posted: Tue Dec 20, 2005 8:24 pm
maybe someone can help me????? 
I put a script/model in my map to make a local sound. I made a script file and a precache file and i can hear the sound when I test the map in single player mode (maplist, double click on the map name). But when I launch the map in multiplayer mode, i don't hear the sound and i have a message in the console "snd_river needs an alias in ubersound.scr".
Then I made an ubersound.scr but I have the error again and no sound
here's the .scr files :
test_slasher.scr :
----------------------------------------------------------------------------------
// test_slasher
// ARCHITECTURE: blood01
// SCRIPTING: blood01
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" ""
local.master = spawn ScriptMaster
local.master aliascache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "dm moh obj train"
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/test_slasher.scr
// exec global/ambient.scr mohdm1
wait 1
thread start_sounds
level waittill spawn
end
//------------------------------------------------>
//sound thread
//------------------------------------------------>
start_sounds:
wait 1
$ad loopsound snd_river
end
-------------------------------------------------------------------------
test_slasher_precache.scr:
--------------------------------------------------------------------
exec ubersound/ubersound.scr
exec ubersound/uberdialog.scr
exec global/DMprecache.scr
cache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "dm moh obj train"
----------------------------------------------------------------------------------
ubersound.scr :
---------------------------------------------------------------------------------
aliascache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "m dm moh obj train"
end
---------------------------------------------------------------------------------
I hope U can help me
bld01
I put a script/model in my map to make a local sound. I made a script file and a precache file and i can hear the sound when I test the map in single player mode (maplist, double click on the map name). But when I launch the map in multiplayer mode, i don't hear the sound and i have a message in the console "snd_river needs an alias in ubersound.scr".
Then I made an ubersound.scr but I have the error again and no sound
here's the .scr files :
test_slasher.scr :
----------------------------------------------------------------------------------
// test_slasher
// ARCHITECTURE: blood01
// SCRIPTING: blood01
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" ""
local.master = spawn ScriptMaster
local.master aliascache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "dm moh obj train"
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/test_slasher.scr
// exec global/ambient.scr mohdm1
wait 1
thread start_sounds
level waittill spawn
end
//------------------------------------------------>
//sound thread
//------------------------------------------------>
start_sounds:
wait 1
$ad loopsound snd_river
end
-------------------------------------------------------------------------
test_slasher_precache.scr:
--------------------------------------------------------------------
exec ubersound/ubersound.scr
exec ubersound/uberdialog.scr
exec global/DMprecache.scr
cache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "dm moh obj train"
----------------------------------------------------------------------------------
ubersound.scr :
---------------------------------------------------------------------------------
aliascache snd_river sound/sound/ad.mp3 soundparms 1.0 0.0 1.0 0.0 128 2048 "local" loaded maps "m dm moh obj train"
end
---------------------------------------------------------------------------------
I hope U can help me
bld01