custom sound problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
blood01
Private
Posts: 5
Joined: Mon Dec 22, 2003 10:44 pm

custom sound problem

Post by blood01 »

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
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

"local"

Post by tltrude »

Try changing "local" to auto (no quotes). Are you runing the map in SH, BT, or Mohaa? You don't need to add another ubersound script, if it is Mohaa.
Tom Trude,

Image
blood01
Private
Posts: 5
Joined: Mon Dec 22, 2003 10:44 pm

Post by blood01 »

hi and thank for the aswer :)

finally i found the solution :)

I'm running under BT, for clear the problem i simply put my .pk3 file (with ubersound) in mainta and folder and now it runs perfectly.


bld01
Post Reply