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 → Why crule world why!
Why crule world why!
2003-03-15, 5:08 AM #1
ok here is v.3 of my darn cut cog, nothing wong with it, oh and dont say"use parsec" i cant my widows wont let me put 1% on the end!
(i am getting real real *@#£&*@#¬! off whith this cog! here it is!
Code:
#Cutscen Level COG V.03
#Generated by PJB (pokejoyboy@aol.com, pjb@pjb.i8.com) 
#credit to Antony Espindola for making the tutor that 
#helped me make this cog.

Symbols   
	Message   startup	
	Thing	Cameraone	
	Thing      player	local
	Thing      Kyle		local
	Thing	bombghost	   	    
	Template   gunless	 
	Float	speed		
	Sound	shot		
	Keyframe    crouch   
end

code
startup:
		// setup first
	Player = GetLocalPlayerThing();
		// switch the player for an Actor
	SetActorFlags(player, 0xa00000);
	StopThing(player);
	Kyle = CreateThing(gunless, player);
	StopThing(Kyle);
	SetThingCurGeoMode(player, 0);
		// switch to camera view one
	SetCameraFocus(0, Cameraone);
	Print("uhhh.....");
	PlayKey(Kyle, crouch, 1, 0x4);
	sleep(GetKeyLen(crouch));
	MoveToFrame(Cameraone, 1, speed);
	AISetMoveSpeed(Kyle, 1.0);
	Print("Where am I? and for that matter Who am i?");
	AISetLookPos(Kyle, GetThingPos(bombghost));
	sleep(2);
	Print("I must have lost my memory, but why? and how did i do it here?");
	MoveToFrame(Cameraone, 2, speed);
	AISetMoveThing(Kyle, bombghost);
	MoveToFrame(Cameraone, 3, speed);
	Sleep(1);
	PlaySoundLocal(shot,0.6, 0.0,0x4); 
	PlayKey(Kyle, crouch, 1, 0x4);
	sleep(GetKeyLen(crouch));
	Print("What was that?")
	JKendlevel(1);
Stop;
end

Ok, why dosent it work? heres what i have done.
Made the cog, placed it in my project directory /cog put it in the cog window, assighend the correct templates and stuff, refreshed, saved the level JKL'ed it and GOB, placed it in episode and started JK new game/my level. Then in sted of the camra flying around and me doing stuff, nothing, could another cog (like the sound track) be messing it up?

------------------
I am pjb.
Another post......
another moment of my life wasted.....

[This message has been edited by [SF]pjb (edited March 15, 2003).]
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?
2003-03-15, 8:34 AM #2
OK! I'll be your parsec for this evening!
Please Wait! [chugga chugga chugga chugga]
--------------------------------------------
No semicolon after the statement on line 46.

Parse of x.cog Complete. Time elapsed: .726 seconds.
--------------------------------------------
Now it is time for ME to check to see what Parsec missed out on...
--------------------------------------------
The variable, Player (thing), is not defined in the symbols.
The variable, BombGhost (thing), is not defined in the symbols.
The variable, bombghost (thing), is not being used in the code.

Edward's eye done! You have problems...
--------------------------------------------
Need some 'splaining? Just ask!

/Edward
Edward's Cognative Hazards
2003-03-15, 9:19 AM #3
urr....bombghost is used
aisetlookpositon(kyle, bombghost)aisetmovething(kyle, bombghost))
ill sort the semicolon, but er.. whould that stop it from activateing?
and i define the bombghost in jed, and player is set in the cog, not in the symbols section.
------------------
I am pjb.
Another post......
another moment of my life wasted.....

[This message has been edited by [SF]pjb (edited March 15, 2003).]
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?
2003-03-15, 9:36 AM #4
Player is defined in the symbols, so you are good there. All thats wrong is exactly what I said in your accidental second topic, There should be a ; after the print. And yes, that can cause the cog to not activate.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-03-15, 12:42 PM #5
OK... Reason why I said bombghost wasn't being used is because...
JK COG reader is very case sensetive. If you have PLAYER in symbols and player in the code, the reader will say "can't find PLAYER and can't find player.".
I know, it is a drag!

/Edward
Edward's Cognative Hazards
2003-03-16, 3:22 AM #6
Get used to case sensitivity. Most other scripting/programming languages are case sensitive. It's also a sign of concentration and precision.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!