PDA

View Full Version : Why crule world why!



[SF]pjb
03-15-2003, 08:08 AM
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!


#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).]

Edward
03-15-2003, 11:34 AM
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

[SF]pjb
03-15-2003, 12:19 PM
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).]

SG-fan
03-15-2003, 12:36 PM
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!"

Edward
03-15-2003, 03:42 PM
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

zagibu
03-16-2003, 06:22 AM
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)