Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Sounds aren't working...
Sounds aren't working...
2004-06-30, 9:29 AM #1
Code:
# WAZZUUUUUUUUUUUUUUUUUUUUUUUUP!
#
# By Edward
symbols

message		startup
message		pulse

thing		ug
thing		zup1
thing		zup2
thing		zup3
thing		aahz

thing		ugcam
thing		ugcampiv
thing		zup1cam
thing		zup2cam
thing		zup2cam2
thing		zup3cam
thing		aahzcam

thing		tvlight
thing		backlight1
thing		backlight2

surface		callswitch1
surface		callswitch2

surface		tv

surface		fridge
surface		telephone

model		bottlezup2
model		bottlezup3
model		phonezup3
model		phoneug
model		bottleandphonezup2

keyframe	ug_chillin
keyframe	ug_takephone
keyframe	ug_phone
keyframe	ug_WAZZUPs1
keyframe	ug_WAZZUPs2
keyframe	ug_WAZZUPs3
keyframe	ug_saywhat

keyframe	zup1_chillinphone

keyframe	zup2_enter
keyframe	zup2_takephone
keyframe	zup2_phone
keyframe	zup2_phoneWAZZUP
keyframe	zup2_walkphone
keyframe	zup2_takecall
keyframe	zup2_call
keyframe	zup2_callWAZZUP
keyframe	zup2_letin

keyframe	zup3_chillin
keyframe	zup3_takephone

keyframe	aahz_WAZZUPs

sound		ug_hello
sound		ug_watsup
sound		ug_game
sound		ug_true
sound		ug_WAZZUP
sound		ug_pickupphone
sound		ug_AAAAAA
sound		ug_AAAAAA2
sound		ug_que

sound		zup1_watsup
sound		zup1_game
sound		zup1_who
sound		zup1_WAZZUP
sound		zup1_ehduke
sound		zup1_AAAAAA
sound		zup1_bud

sound		zup2_WAZZUP
sound		zup2_yo
sound		zup2_wheresduke
sound		zup2_AAAAAA
sound		zup2_hangon

sound		zup3_yo
sound		zup3_WAZZUP
sound		zup3_AAAAAA

sound		aahz_WAZZUP1
sound		aahz_AAAAAA1
sound		aahz_AAAAAA2

sound		phonerings
sound		phoneclickup
sound		phoneclickdown
sound		callerbeep
sound		callerclick1
sound		callerclick2

sound		saberfighting0
sound		saberfighting1
sound		saberfighting2
sound		saberfighting3
sound		saberfighting4
sound		saberfighting5
sound		saberfighting6
sound		saberfighting7
sound		saberfighting8
sound		saberfighting9
sound		saberfighting10
sound		saberfighting11
sound		saberfighting12
sound		saberfighting13
sound		saberfighting14
sound		saberfighting15
sound		saberfighting16
sound		saberfighting17
sound		saberfighting18

material	ugsface
material	zup1sface
material	zup2sface
material	zup3sface

int		ugk=-1			local
int		zup2k=-1		local
int		zup3k=-1		local
int		ugface=0		local
int		zup1face=0		local
int		zup2face=0		local
int		zup3face=0		local
int		ugaaa=1			local
int		zup1aaa=2		local
int		zup2aaa=3		local
int		zup3aaa=4		local
int		aahzaaa=5		local
int		aahzaaa2=6		local

end
#
code
startup:
	SetActorFlags(GetLocalPlayerThing(),0x800000);
	SetCurrentCamera(0);
	SetCameraFocus(0,ugcam);
	AttachThingToThing(ugcam,ugcampiv);
	sleep(1);
	ugk=PlayKey(ug,ug_chillin,1,0x0);
	PlayKey(zup1,zup1_chillinphone,1,0x0);
	SetThingRotVel(ugcampiv,'0 90 3');
	SetThingModel(zup3,bottlezup3);
	sleep(1);
	StopThing(ugcampiv);
	ThingLight(tvlight,.1,1);
	ThingLight(backlight1,1,1);
	ThingLight(backlight2,1,1);
	SetThingRotVel(ugcampiv,'0 -30 -1');
	sleep(1);
	SetPulse(0.1);
	sleep(2);
	StopThing(ugcampiv);
	sleep(1);
	PlaySoundLocal(phonerings,1,0,0x0);
	sleep(1);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_takephone,1,0x4);
	sleep(GetKeyLen(ug_takephone)/2.00000000);
	SetThingModel(ug,phoneug);
	PlaySoundLocal(phonerings,1,0,0x0);
	sleep(GetKeyLen(ug_takephone)/2.00000000);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_phone,1,0x0);
	PlaySoundLocal(ug_hello,1,0,0x0);
	ugface=1;
	print("Hello?");
	sleep(GetSoundLen(ug_hello));
	ugface=0;
	SetCameraFocus(0,zup1cam);
	PlaySoundLocal(zup1_watsup,1,0,0x0);
	zup1face=1;
	print("Hay... What's up?");
	sleep(GetSoundLen(zup1_watsup));
	zup1face=0;
	SetCameraFocus(0,ugcam);
	PlaySoundLocal(ug_game,1,0,0x0);
	ugface=1;
	print("Eh, watching the game, having a bud... And you?");
	sleep(GetSoundLen(ug_game));
	ugface=0;
	SetCameraFocus(0,zup1cam);
	PlaySoundLocal(zup1_game,1,0,0x0);
	zup1face=1;
	print("Eh, not much... Watching the game, having a bud...");
	sleep(GetSoundLen(zup1_game));
	zup1face=0;
	SetCameraFocus(0,ugcam);
	PlaySoundLocal(ug_true,1,0,0x0);
	print("True... True...");
	ugface=4;
	SetMaterialCel(ugsface,1);
	sleep(GetSoundLen(ug_true)/4);
	SetMaterialCel(ugsface,0);
	sleep(GetSoundLen(ug_true)/4);
	SetMaterialCel(ugsface,1);
	sleep(GetSoundLen(ug_true)/4);
	SetMaterialCel(ugsface,0);
	sleep(GetSoundLen(ug_true)/4);
	ugface=0;
	SetCameraFocus(1,zup2);
	SetCurrentCamera(1);
	sleep(0.01);
	AISetMoveFrame(zup2,1);
	SetCameraFocus(1,GetLocalPlayerThing());
	SetCurrentCamera(0);
	sleep(1);
	PlaySoundThing(zup2_WAZZUP,zup2,1,0,100,0x80);
	zup2face=2;
	print("WAZZUP!");
	zup2k=PlayKey(zup2,zup2_enter,1,0x4);
	sleep(1);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_WAZZUPs1,1,0x4);
	print("WAZZUP!");
	ugface=2;
	PlaySoundLocal(ug_WAZZUP,1,0,0x0);
	StopKey(zup2,zup2k,1);
	sleep(GetSoundLen(zup2_WAZZUP)-1.00000000);
	zup2face=0;
	AISetMoveFrame(zup2,2);
	AISetLookFrame(zup2,2);
	sleep(GetSoundLen(ug_WAZZUP));
	StopKey(ug,ugk,1);
	ugface=0;
	ugk=PlayKey(ug,ug_phone,1,0x0);
	SetCameraFocus(0,zup1cam);
	PlaySoundLocal(zup1_who,1,0,0x0);
	zup1face=1;
	print("Hay, who's that?");
	TeleportThing(zup2,zup2cam);
	sleep(GetSoundLen(zup1_who));
	SetThingModel(zup2,bottlezup2);
	zup1face=0;
	StopKey(ug,ugk,1);
	SetCameraFocus(0,ugcam);
	ugk=PlayKey(ug,ug_WAZZUPs1,1,0x4);
	PlaySoundLocal(ug_pickupphone,1,0,0x0);
	ugface=1;
	print("Hay! Pick up the phone!");
	sleep(GetSoundLen(ug_pickupphone));
	AISetMoveFrame(zup2,3);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_phone,1,0x0);
	ugface=0;
	SetCameraFocus(0,zup2cam);
	sleep(1);
	AISetLookPos(zup2,GetSurfaceCenter(telephone));
	zup2k=PlayKey(zup2,zup2_takephone,1,0x4);
	sleep(GetKeyLen(zup2_takephone)/2);
	SetThingModel(zup2,bottleandphonezup2);
	PlaySoundLocal(phoneclickup,1,0,0x0);
	sleep(GetKeyLen(zup2_takephone)/2);
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_phone,1,0x0);
	PlaySoundLocal(zup2_yo,1,0,0x0);
	print("Hello?");
	zup2face=4;
	SetMaterialCel(zup2sface,4);
	sleep(GetSoundLen(zup2_yo));
	SetMaterialCel(zup2sface,0);
	SetCameraFocus(0,zup1cam);
	zup1face=2;
	PlaySoundThing(zup1_WAZZUP,zup1,1,0,10,0x80);
	print("WAZZUP!");
	sleep(2);
	zup1face=0;
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_phoneWAZZUP,1,0x4);
	SetCameraFocus(0,zup2cam);
	PlaySoundThing(zup2_WAZZUP,zup2,1,0,10,0x80);
	zup2face=2;
	Print("WAZZUP!");
	sleep(2);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_WAZZUPs2,1,0x4);
	SetCameraFocus(0,ugcam);
	PlaySoundThing(ug_WAZZUP,ug,1,0,10,0x80);
	ugface=2;
	print("WAZZUP!");
	sleep(GetSoundLen(ug_WAZZUP));
	SetCameraFocus(0,zup2cam);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_phone,1,0x0);
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_phone,1,0x0);
	AISetLookFrame(zup2,4);
	PlaySoundThing(zup2_wheresduke,zup2,1,0,10,0x80);
	zup2face=2;
	print("Hay, where's Duke?");
	sleep(GetSoundLen(zup2_wheresduke));
	zup2face=0;
	SetCameraFocus(0,zup1cam);
	PlaySoundLocal(zup1_ehduke,1,0,0x0);
	zup1face=1;
	print("Yo Duke?");
	sleep(1);
	zup1face=0;
	zup3k=PlayKey(zup3,zup3_chillin,1,0x0);
	SetCameraFocus(0,zup3cam);
	print("Hay! Pick up the phone!");
	sleep(GetSoundLen(zup1_ehduke));
	StopKey(zup3,zup3k,1);
	zup3k=PlayKey(zup3,zup3_takephone,1,0x4);
	sleep(GetKeyLen(zup3_takephone)/2);
	SetThingModel(zup3,phonezup3);
	PlaySoundLocal(phoneclickup,1,0,0x0);
	sleep(GetKeyLen(zup3_takephone)/2);
	PlaySoundLocal(zup3_yo,1,0,0x0);
	zup3face=4;
	SetMaterialCel(zup3sface,2);
	print("Yo!");
	sleep(GetSoundLen(zup3_yo));
	zup3face=0;
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_phoneWAZZUP,1,0x0);
	SetCameraFocus(0,zup2cam);
	PlaySoundThing(zup2_WAZZUP,zup2,1,0,10,0x80);
	zup2face=2;
	print("WAZZUP!");
	sleep(2);
	SetCameraFocus(0,zup3cam);
	zup3face=2;
	zup1face=2;
	ugface=2;
	PlaySoundThing(zup3_WAZZUP,zup3,1,0,10,0x80);
	ugaaa=PlaySoundThing(ug_AAAAAA,ug,1,0,10,0x81);
	zup1aaa=PlaySoundThing(zup1_AAAAAA,zup1,1,0,10,0x81);
	zup2aaa=PlaySoundThing(zup2_AAAAAA,zup2,1,0,10,0x81);
	print("WAZZUP!");
	sleep(2);
	SetCameraFocus(0,zup1cam);
	zup3aaa=PlaySoundThing(zup3_AAAAAA,zup3,1,0,10,0x81);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_WAZZUPs2,1,0x0);
	sleep(1);
	SetCameraFocus(0,ugcam);
	sleep(1);
	SetCameraFocus(0,zup3cam);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_phone,1,0x0);
	sleep(1);
	SetCameraFocus(0,zup2cam2);
	StopSound(zup3aaa,0.5);
	StopSound(zup2aaa,0.5);
	StopSound(zup1aaa,0.5);
	StopSound(ugaaa,0.5);
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_walkphone,1,0x0);
	ugface=0;
	zup1face=0;
	zup2face=0;
	zup3face=0;
	sleep(0.5);
	SetWallCel(callswitch1,1);
	PlaySoundLocal(callerbeep,1,0,0x0);
	sleep(0.5);
	PlaySoundThing(zup2_hangon,zup2,1,0,10,0x80);
	print("Hang on...");
	Sleep(1);
	AISetMoveFrame(zup2,4);
	while(IsMoving(zup2))
		sleep(.1);
	AISetMoveFrame(zup2,5);
	AISetLookFrame(zup2,5);
	while(IsMoving(zup2))
		sleep(.1);
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_takecall,1,0x4);
	sleep(GetKeyLen(zup2_takecall));
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_call,1,0x0);	
	PlaySoundLocal(callerclick1,1,0,0x0);
	SetWallCel(callswitch2,1);
	sleep(0.1);
	PlaySoundLocal(zup2_yo,1,0,0x0);
	print("Hello?");
	sleep(GetSoundLen(zup2_yo));
	PlaySoundThing(aahz_WAZZUP1,zup2,1,0,10,0x80);
	PlayKey(aahz,aahz_WAZZUPs,1,0x0);
	print("WAZZUP!");
	sleep(2);
	SetCameraFocus(0,aahzcam);
	aahzaaa=PlaySoundThing(aahz_AAAAAA2,aahz,1,0,10,0x81);
	sleep(2);
	ugface=2;
	zup1face=2;
	zup2face=2;
	zup3face=2;
	ugaaa=PlaySoundThing(ug_AAAAAA2,ug,1,0,10,0x81);
	zup1aaa=PlaySoundThing(zup1_AAAAAA,zup1,1,0,10,0x81);
	zup2aaa=PlaySoundThing(zup2_AAAAAA,zup2,1,0,10,0x81);
	zup3aaa=PlaySoundThing(zup3_AAAAAA,zup3,1,0,10,0x81);
	aahzaaa2=PlaySoundThing(aahz_AAAAAA1,zup2,1,0,10,0x81);
	StopKey(zup2,zup2k,1);
	StopKey(ug,ugk,1);
	zup2k=PlayKey(zup2,zup2_callWAZZUP,1,0x0);
	ugk=PlayKey(ug,ug_WAZZUPs3,1,0x0);
	SetCameraFocus(0,zup1cam);
	print("WAZZUP!");
	sleep(1);
	SetCameraFocus(0,ugcam);
	print("WAZZUP!");
	sleep(1);
	SetCameraFocus(0,zup3cam);
	print("WAZZUP!");
	sleep(1);
	SetCameraFocus(0,zup2cam2);
	print("WAZZUP!");
	sleep(1);
	SetCameraFocus(0,zup1cam);
	print("WAZZUP!");
	sleep(.5);
	PlayKey(zup3,zup3_takephone,1,0x4);
	sleep(.5);
	StopKey(ug,ugk,1);
	ugk=PlayKey(ug,ug_phone,1,0x0);
	StopSound(ugaaa,0.1);
	StopSound(zup1aaa,0.1);
	StopSound(zup2aaa,0.1);
	StopSound(zup3aaa,0.1);
	StopSound(aahzaaa,0.1);
	StopSound(aahzaaa2,0.1);
	SetCameraFocus(0,zup3cam);
	sleep(.5);
	PlaySoundLocal(phoneclickdown,1,0,0x0);
	SetCameraFocus(0,zup2cam2);
	StopKey(zup2,zup2k,1);
	zup2k=PlayKey(zup2,zup2_letin,1,0x4);
	SetWallCel(callswitch2,0);
	PlaySoundLocal(callerclick1,1,0,0x0);
	sleep(GetKeyLen(zup2_letin)/4.00000000);
	SetWallCel(callswitch1,2);
	PlaySoundLocal(callerclick2,1,0,0x0);
	sleep((GetKeyLen(zup2_letin)/4.00000000)*3.00000000);
	AISetLookFrame(zup2,6);
	AISetMoveFrame(zup2,4);
	StopKey(zup2,zup2k,1);
	while(IsMoving(zup2))
		sleep(.1);
	AISetMoveFrame(zup2,6);
	sleep(0.5);
	SetCameraFocus(0,ugcam);
	ugface=1;
	PlaySoundLocal(ug_watsup,1,0,0x0);
	print("So... What's up?");
	sleep(GetSoundLen(ug_watsup));
	ugface=0;
	SetCameraFocus(0,zup1cam);
	PlaySoundLocal(zup1_bud,1,0,0x0);
	zup1face=1;
	AISetMoveFrame(zup2,7);
	AISetLookFrame(zup2,7);
	print("Eh, not much... Having a game, watching the bud...");
	sleep(GetSoundLen(zup1_bud));
	zup1face=0;
	SetCameraFocus(0,ugcam);
	StopKey(ug,ugk,1);
	PlayKey(ug,ug_saywhat,1,0x4);
	PlaySoundLocal(ug_que,1,0,0x0);
	sleep(1);
	SetPulse(0);
	ThingLight(tvlight,0,.5);
	ThingLight(backlight1,0,.5);
	ThingLight(backlight2,0,.5);
	sleep(1);
	JKEndLevel(1);
return;
pulse:
	SetWallCel(tv,rand()*8);
	if(rand()>.5) { ThingLight(tvlight,1,0.1); } else { ThingLight(tvlight,.1,1); }
	PlaySoundPos(saberfighting0[rand()*18],GetSurfaceCenter(tv),.25,0,10,0x0);
	if(ugface==1)
	{
		SetMaterialCel(ugsface,rand()*1);
	}
	else if(ugface==2)
	{
		SetMaterialCel(ugsface,2);
	}
	else if(ugface==0)
	{
		SetMaterialCel(ugsface,0);
	}
	if(zup1face==1)
	{
		SetMaterialCel(zup1sface,rand()*13);
	}
	else if(zup1face==2)
	{
		SetMaterialCel(zup1sface,15);
	}
	else if(zup1face==0)
	{
		SetMaterialCel(zup1sface,0);
	}
	if(zup2face==1)
	{
		SetMaterialCel(zup2sface,rand()*13);
	}
	else if(zup2face==2)
	{
		SetMaterialCel(zup2sface,15);
	}
	else if(zup2face==0)
	{
		SetMaterialCel(zup2sface,0);
	}
	if(zup3face==1)
	{
		SetMaterialCel(zup3sface,rand()*13);
	}
	else if(zup3face==2)
	{
		SetMaterialCel(zup3sface,15);
	}
	else if(zup3face==0)
	{
		SetMaterialCel(zup3sface,0);
	}
return;
end

Problems... Some sounds won't play (I have 'normalized' them all (No MSSR) and have right freq). And some won't play correctly... The lightsaber sounds give me the sound of zup3_AAAAAA, and some WAZZUPs I can't hear... And also, my custom faces aren't animating. Could someone please help me here? And please, before assumptions, read through the stuff carefully.

/Edward
Edward's Cognative Hazards
2004-07-01, 5:12 AM #2
Maybe they are not loud enought or try to rename them...

------------------
Sprite Mod (JO 2003)
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-07-01, 9:36 AM #3
Quote:
<font face="Verdana, Arial" size="2">Originally posted by G-Man:
Maybe they are not loud enought or try to rename them...

</font>


Not loud enough? *looks at oscilloscope* Nope, loud enough... And the filenames aren't named after any verbs... Is the a limit to the filename's length?

/Edward
Edward's Cognative Hazards
2004-07-01, 10:02 AM #4
dont quote me on this, but i think there is a limit to the number of symbols a cog can have...

try cutting it into two cogs, or useing two sound cogs and a system of triggers.

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2004-07-01, 12:55 PM #5
OK, I've fixed it... God, it's that terrible? Anyway, I fixed it by making a 2nd COG playing at the same time, and now I have to go through the pain staking job of syncing it... DARN LIMITS!

/Edward
Edward's Cognative Hazards

↑ Up to the top!