sound Q

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

sound Q

Post by small_sumo »

Ok log says

ERROR: Entity::LoopSound: sound/amb/amb_fireplace.wav needs an alias in ubersound.scr or uberdialog.scr - Please fix.

But there is one in ubersound that reads as such.

//================================================================================
//POSITIONAL AMBIENCES
//================================================================================


aliascache cricket sound/amb/Amb_Cricket.wav soundparms 0.28 0.0 1.0 0.0 100 900 auto loaded maps "dm moh obj train"
aliascache fireplace sound/amb/Amb_FirePlace.wav soundparms 1.3 0.0 1.0 0.0 150 1000 auto loaded maps "m4l3 m6l2a m5l1a dm moh obj train"
alias radio_loop sound/mechanics/Me.......blah blah bs bs bs

it says obj loaded maps.

it lies! grrrrrrrrr
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

In your script I take it you typed:

Code: Select all

$something loopsound "sound/amb/amb_fireplace.wav"
Instead, type:

Code: Select all

$something loopsound fireplace
And you'll be fine 8)
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Duz it matter what it is ? A model or should it be a sound speaker?

Thanks Sire.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Anything that has a model can make sound.
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Ok from the top, I have put in my map a script model.

classname script_model

model fx_dummy.tik

targetname river


then in my script $river loopsound cricket

and it doesnt work, though now I think about it I havent precashed the sound in my map precashe.....
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

i think u must precache it, or make a tiki file sound fix.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Parts
Sergeant
Posts: 72
Joined: Thu Apr 10, 2003 12:35 pm
Location: UK
Contact:

Post by Parts »

This should work. Check the log to see if you have any errors.

Check your scipt to make sure the command is being ran atthe right time and is being ran. Just put a println in the script just before or something.

Ubersound is a bit wierd, make sure there aren't other pk3 files overriding ubersound.
[VS-UK]Capt.Parts[BnHQ]
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

here is a line from ubersound.scr
// Sound channel priorities:
//0 - auto - This is considered the lowest audio channel priority. It always plays if possible (hardware audio channel available) and they don't override previously played sounds. If no channels are available, the sound will just not play.
maybe the auto channel is being used . Maybe play one at a time on that channel or use a tiki and put the sound on a different channel
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

as you already said, you'd better use and precache the tiki. If it's still not working even after you've precached then check the location of your sound-thread in the script.

When I had put my thread after 'level waittil spawn' and started the game with my own shortcut (+set cheats 1 +set g_gametype 4 +set pleaseletmelive 1, etc..blahblah) it gave me the same error. Only after I picked a team and joined the game the sounds were loaded (doh). I had then put the thread after 'level waittil prespawn' and it seemed to work fine (in most of the cases, 'cause I still get that error now and then...)

Ubersound is weird indeed, it worked for their game but they didn't really think ahead of us mappers when precaching all those aliases and then stuff it all in one file.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Model should be fx/dummy.tik. If you don't select a valid model, script_models may act very weird in Radiant.
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

i think a script model won't work.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Yeah I used a script model and selected fx/dummy.tik as my model. Still no workie. I also cashed in my custom.tik the folowng.

aliascache cricket sound/amb/Amb_Cricket.wav soundparms 0.28 0.0 1.0 0.0 100 900 auto loaded maps "obj"
aliascache fire_large sound/amb/Amb_FireLoop_02.wav soundparms 1.0 0.0 1.0 0.0 400 6000 auto loaded maps "obj"
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

are u sure "obj" is ur mapname?
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Jv told me to do it. And it seams to work, like all the weathersounds are in my level now, since I added these lines to my custom.tik file.

alias rain_roof sound/amb/Amb_RainRoof_02.wav soundparms 1.0 0.0 1.0 0.0 160 320 local streamed maps "obj"
alias rain_window sound/amb/Amb_RainWindow_01.wav soundparms 1.0 0.0 1.0 0.0 160 320 local streamed maps "obj"
alias rain_puddle sound/amb/Amb_RainPuddle_01.wav soundparms 1.0 0.0 1.0 0.0 3000 6000 local streamed maps "obj"
alias rain_plant sound/amb/Amb_RainPlant_01.wav soundparms 1.0 0.0 1.0 0.0 3000 6000 local streamed maps "obj"
alias wind_weak sound/amb/wind_weak.wav soundparms 1.0 0.0 1.0 0.0 3000 6000 local streamed maps "obj"
alias wind_strong sound/amb/wind_strong.wav soundparms 1.0 0.0 1.0 0.0 3000 6000 local streamed maps "obj"
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Do you get ubersound errors or can't you hear the sound? Do you realise the volume set in the soundparms is very low?
Image
Post Reply