Restart to get sound-tiki files working

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
KungF00
Private
Posts: 3
Joined: Tue May 17, 2005 11:33 pm

Restart to get sound-tiki files working

Post by KungF00 »

N00b question:

Why do I have restart my map to get the sound files to work?

I have a script_model with a fx/dummy.tik files but I never hear the sounds upon initial loadup. I get a bunch of precache errors in the console, even though I already have a _precache file.

This isn't just localized to my maps either... I've downloaded a few tut maps and run into the same problem with them.

As soon as I hit restart from console everything fires off great.

This has been driving me crazy all day.

main:

level.script = maps/dm/mp_pegasus_dm.scr
local.master = spawn ScriptMaster
local.master aliascache crossing_bell sound/bridge/xing3.wav soundparms 3.0 0.0 1.0 0.0 1024 6000 auto loaded maps "m dm moh obj "

///////////////////////
level waitTill prespawn
///////////////////////

// *** Precache DM stuff

exec global/DMprecache.scr
exec global/ambient.scr

end

triggerbell:

$bell playsound crossing_bell

end
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

sound

Post by tltrude »

Sometimes the sound thread needs a short wait, so that the wav file has time to load.

triggerbell:

wait .5
$bell playsound crossing_bell

end
Tom Trude,

Image
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Re: Restart to get sound-tiki files working

Post by Axion »

KungF00 wrote: Why do I have restart my map to get the sound files to work?

I have a script_model with a fx/dummy.tik files but I never hear the sounds upon initial loadup. I get a bunch of precache errors in the console, even though I already have a _precache file.

This isn't just localized to my maps either... I've downloaded a few tut maps and run into the same problem with them.

As soon as I hit restart from console everything fires off great.
You need to create a custom ubersound.scr for your map and cache the sounds in there.
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
KungF00
Private
Posts: 3
Joined: Tue May 17, 2005 11:33 pm

Re: Restart to get sound-tiki files working

Post by KungF00 »

Axion wrote:
KungF00 wrote: Why do I have restart my map to get the sound files to work?

I have a script_model with a fx/dummy.tik files but I never hear the sounds upon initial loadup. I get a bunch of precache errors in the console, even though I already have a _precache file.

This isn't just localized to my maps either... I've downloaded a few tut maps and run into the same problem with them.

As soon as I hit restart from console everything fires off great.
You need to create a custom ubersound.scr for your map and cache the sounds in there.
Thanks Axion. That worked.
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post by Axion »

No problem. :)
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
Post Reply