Page 1 of 1

Spearhead ubersound problem

Posted: Thu Sep 04, 2003 1:02 pm
by Whisky
L-O all,

Before beginning: sorry for my poor english :P

So, I would like to play a sound in a specific place of my SH map, but nothing doesn't work :cry:

After have try without succes the AA method, I've read a lot of posts of jv_map which explain that for playing a custom sound in SH, we only need to make a custom ubersound with sound aliases...
So i've made this:

:arrow: In radiant, I've made a dummy script/model with a targename = chant, and a trigger_multiple with targetname = soundtrigger

:arrow: Here's my script:

Code: Select all

main:

	level.script = maps/dm/ste-mere-eglise.scr

	// set scoreboard messages
	setcvar "g_obj_alliedtext1" "        [NER]"
	setcvar "g_obj_alliedtext2" "NEW EUROPEAN REGIMENT"
	setcvar "g_obj_alliedtext3" "    www.ner-clan.net"
	setcvar "g_obj_axistext1" "June 6, 1944, 01.00 pm"
	setcvar "g_obj_axistext2" "Saint-Mere-Eglise, Normandy"
	setcvar "g_obj_axistext3" "  *An exclusive NER map*" 

	setcvar "g_scoreboardpic" "Ste-mere-2" 


level waitTill prespawn

	//*** Precache Dm Stuff
	exec global/DMprecache.scr
	exec global/door_locked.scr::lock

	level.fogplane = 13000 
	$world farplane level.fogplane 
	$world farplane_color ( 0.15 0.10 0.10) 


level waittill spawn

	thread chant_partisans              
	$airgun1 TurnOn
	$airgun2 TurnOn
	$airgun3 TurnOn
	$airgun4 TurnOn
	$airgun5 TurnOn
	$airgun6 TurnOn
	
end

chant_partisans:
	
	while(1)
	{
		$soundtrigger triggerable
		$soundtrigger waittill trigger
		$chant playsound ts_chant
		$soundtrigger nottriggerable
		wait 150 // dur?e du chant des partisans
	}
End
:arrow: I've added in my pk3 a folder "ubersound", wich contain my custom ubersound file, and named it "ubersoundSME.scr"
This files just contains these lines:
aliascache ts_chant sounds/amb_SME/chant.wav soundparms 3.0 0.0 1.00 0.00 400 1500 auto loaded maps "ste-mere-eglise"

:arrow: and I've of course in the folder "sounds/amb_SME/", the sound "chant.wav"

In game, When I activate the trigger "soundtrigger", I've got this message in console "... ts_chant need an alias in ubesround.scr or...."
And no other error messages :(

I think I've tried all I could for playing this putain de sound :evil:, more than 6 Hours spended on this problem! SO please HELP ME :cry:

Posted: Thu Sep 04, 2003 3:55 pm
by bdbodger
try taking the ubersound out of the .scr file name I did it with another name and got this in the console even when I loaded a map that didn't need it .
-----------PARSING 'ubersound/dogsounds.scr' (SERVER)------------
Any SetCurrentTiki errors means that tiki wasn't prefetched and tiki-specific sounds for it won't work. To fix prefetch the tiki. Ignore if you don't use that tiki on this level.
CG_Command_ProcessFile: ubersound/dogsounds.scr
Parse/Load time: 0.005000 seconds.
-------------PARSING 'ubersound/dogsounds.scr' DONE (SERVER)---------------

Posted: Thu Sep 04, 2003 4:18 pm
by jv_map
If this is a dm map, 'maps' should include 'dm', if it's a obj map 'maps' should include 'obj'.

Example:
aliascache ts_chant sounds/amb_SME/chant.wav soundparms 3.0 0.0 1.00 0.00 400 1500 auto loaded maps "obj dm"

Posted: Fri Sep 05, 2003 9:37 am
by Whisky
Tks for your help, finally it works fine 8-) 8-) 8-)

Posted: Fri Sep 05, 2003 2:02 pm
by bdbodger
I guess I overlooked the obvious again although I made a ubersound2.scr and kept haveing problems with it but haven't had any problems useing a different .scr name but that may just be luck .