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 → cutscenes...
cutscenes...
2002-03-29, 8:48 AM #1
Ok, so I made my own cutscene modeled off others that I saw, and when I was doing it, it looked really great (in my eyes).
So, then I made all amy actors and frames and the stage and such. But when I load my level, it just starts off with no cutscene!!!! I'm almost positive that this is a problem with the cog, so can anyone tell me some common mistakes when writing a cutscene cog?
2002-03-29, 9:05 AM #2
(1) Make sure you have read the tutorial.

(2) Post the cog in question.

------------------
Dead Reckoning and Dead Reckoning 2
Dead Reckoning
2002-03-29, 10:03 AM #3
heres the cog:


symbols

thing door
thing camera1
thing camera2
thing camera3
thing chi
thing master
thing lightmurdoc
thing jengar
thing player local
thing kyle local
sound meditate=i00je04z.wav local
sound saberswing1=ltsaberswing02.wav local
sound saberswing2=ltsaberswing03.wav local
sound saberhit1=ltsaberhit15.wav local
sound saberhit2=ltsaberhit03.wav local
sound saberhit3=ltsaberhit07.wav local
sound scream=i00mn01z.wav local
sound fall=bodyfall05.wav local
sound laugh=i00ma01z.wav local
sound taunt=i00ma02z.wav local
int starttrack
int endtrack
int loopto
message startup

end

code

startup:


Player = GetLocalPlayerThing();

// freeze Kyle
SetActorFlags(Player, 0xa00000);
StopThing(Player);

jkBeginCutscene();
Sleep(0.0);
AiSetMoveFrame(door, 1);
AiSetMoveFrame(chi,1);
Sleep(0.55);
AiSetMoveFrame(door, 1);
SetCameraFocus(0, camera1);
Sleep(2.0);
MoveToFrame(camera1, 1, 1.5);
MoveToFrame(camera1, 2, 1.5);
Sleep(1.5);
AiSetMoveFrame(chi, 1);
Sleep(1.0);
Print("Master, what is wrong?");
Sleep(1.0);
PlaySoundLocal(meditate, 1, 0, 132);
Print("I am troubled, young one, by a great disturbance in the force.");
SetCameraFocus(0, camera2);
Sleep(2.0);
Print("I feel it also, Master.");
MoveToFrame(camera2, 1, 1.5);
MoveToFrame(camera2, 2, 1.5);
Sleep(1.5);
Print("Ahhhh, maybe so. But yo do not know the extent of it.");
Sleep(3.0);
Print("There is am evil out there, spawning more evil from himself.");
MoveToFrame(camera2, 3, 1.5);
AiSetMoveFrame(master, 1);
Sleep(3.0);
Print("His name is Jengar, and he is a hedious creature of the Sith.");
AiSetMoveFrame(chi, 1);
Sleep(1.5);
Print("Master...");
Sleep(0.5);
AiSetMoveFrame(master, 1);
Print("There is more. I'm sure you remember your fellow training partner, Murdoc?");
AiSetMoveFrame(master, 1);
Sleep(2.0);
Print("Yes, I remember. He went away about a year ago, though.");
Sleep(1.5);
SetCameraFocus(0, camera3);
MoveToFrame(camera3, 1, 1.5);
Print("I had sent him to stop Jengar.");
Sleep(1.5);
Print("But back then, I didn't know that Jangar was training more Dark Jedi.");
playsong(starttrack, endtrack, loopto);
MoveToFrame(camera3, 2, 1.5);
AiSetMoveFrame(lightmurdoc, 1);
Sleep(1.0);
MoveToFrame(camrea3, 1, 2);
Sleep(0.5);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.25);
PlaySoundLocal(saberswing2, 1, 0, 132);
Sleep(0.20);
PLaySoundLocal(saberhit1, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberhit2, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberhit2, 1, 0, 132):
Sleep(0.12);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.12);
PlaySoundLocal(scream, 1, 0, 132);
Sleep(0.55);
PlaySoundLocal(fall, 1, 0, 132);
Sleep(0.55);
PlaySoundLocal(laugh, 1, 0, 132);
Sleep(1.5);
PlaySoundLocal(taunt, 1, 0, 132);
MoveToFrame(camera3, 1, 1.5);
Print("And now, I fear things have gone arwy.");
Sleep(1.0);
SetCameraFocus(0, camera1);
MoveToFrame(camera1, 1, 1.5);
AiSetMoveFrame(master, 1);
Sleep(1.5);
AiSetMoveFrame(chi, 1);
Print("Master, what would you have me do?");
Sleep(1.0);
MoveToFrame(camera1, 1, 1.5);
AiSetMoveFrame(master, 1);
Print("I would do something myself, if time had not aged my body and made me frail.");
Sleep(2.0);
AiSetMoveFrame(master, 1);
MoveToFrame(camera1, 1, 1.5);
Print("I am almost hesitant to do what must be done.")
Sleep(1.0);
AiSetMoveFrame(master, 1);
Print("But now, there is no choice.");
SetCameraFocus(0, camera2);
MoveToFrame(camera2, 1, 1.5);
MoveToFrame(camera1, 1, 1.5);
Print("Young One, your training with me is now over.");
Sleep(0.55);
SetCameraFocus(0, camera1);
Print("WHAT?!?);
Sleep(0.25);
MoveToFrame(camera1, 1, 1.5);
Print("No, Master, I am not ready yet! I mean, I...");
Sleep(1.0);
Print("I'll hear none of that. You are ready.");
Sleep(1.5);
Print("But I charge you with one last mission:");
Sleep(1.0);
Print("Seek out the evil that Jengar has spawned and created, including himself,");
Sleep(1.0);
Print("And destroy them, therefore shedding light on all of us.");
AiSetMoveFrame(master,1);
Sleep(1.5);
Print("Also, I will keep in contact through my telepathic messages.");
Sleep(1.0);
AiSetMoveFrame(chi, 1);
Print("If it is my quest,");
MoveToFrame(camera1, 1, 1.5);
Sleep(1.0);
Print("Then so be it!");
Sleep(2.0);

// stop cutscene
jkEndCutscene();

// switch back to player focus
SetCameraFocus(0, Player);

// unfreeze Kyle
ClearActorFlags(Player, 0xa00000);

Return;

end
2002-03-31, 6:56 AM #4
I redid the cog, but the problem still persists...... Could someone tell me whats wrong with it?
Code:
#======================================================
symbols

thing		door
thing		camera1
thing		camera2
thing		camera3
thing		chi
thing		master
thing		lightmurdoc
thing		player                             local
thing		kyle                               local

sound		meditate=i00je04z.wav              local
sound		door=woodenslidingdoor01.wav       local
sound		saberswing1=ltsaberswing02.wav     local
sound		saberswing2=ltsaberswing03.wav     local
sound		saberhit1=ltsaberhit15.wav         local
sound		saberhit2=ltsaberhit03.wav         local
sound		saberhit3=ltsaberhit07.wav         local
sound		scream=i00mn01z.wav                local
sound		fall=bodyfall05.wav                local
sound		laugh=i00ma01z.wav                 local
sound		taunt=i00ma02z.wav                 local

int		starttrack
int		endtrack
int		loopto

message		startup

end

#=======================================================

code

startup:


Player = GetLocalPlayerThing();

                // freeze Kyle
                SetActorFlags(Player, 0xa00000);
                StopThing(Player);

jkBeginCutscene();
Sleep(0.0);
PlaySoundLocal(door, 1, 0, 132);
MoveToFrame(door, 1, 2.0);
AiSetMoveSpeed(chi, 1.5);
AiSetMoveFrame(chi,1);
Sleep(1.0);
PlaySoundLocal(door, 1, 1, 132);
MoveToFrame(door, 2, 2.0);
SetCameraFocus(0, camera1);
Sleep(2.0);
MoveToFrame(camera1, 1, 1.5);
MoveToFrame(camera1, 2, 1.5);
Sleep(1.5);
AiSetMoveFrame(chi, 2);
Sleep(1.0);
Print("Master, what is wrong?");
Sleep(1.0);
PlaySoundLocal(meditate, 1, 0, 132);
Print("I am troubled, young one, by a great disturbance in the force.");
SetCameraFocus(0, camera2);
Sleep(2.0);
Print("I feel it also, Master.");
MoveToFrame(camera2, 1, 1.5);
MoveToFrame(camera2, 2, 1.5);
Sleep(1.5);
Print("Ahhhh, maybe so. But yo do not know the extent of it.");
Sleep(3.0);
Print("There is am evil out there, spawning more evil from himself.");
MoveToFrame(camera2, 3, 1.5);
AiSetMoveSpeed(master, 1);
AiSetMoveFrame(master, 1);
Sleep(3.0);
Print("His name is Jengar, and he is a hedious creature of the Sith.");
AiSetMoveFrame(chi, 3);
Sleep(1.5);
Print("Master...");
Sleep(0.5);
AiSetMoveFrame(master, 2);
Print("There is more. I'm sure you remember your fellow training partner, Murdoc?");
AiSetMoveFrame(master, 3);
Sleep(2.0);
Print("Yes, I remember. He went away about a year ago, though.");
Sleep(1.5);
SetCameraFocus(0, camera3);
MoveToFrame(camera3, 1, 1.5);
Print("I had sent him to stop Jengar.");
Sleep(1.5);
Print("But back then, I didn't know that Jangar was training more Dark Jedi.");
playsong(starttrack, endtrack, loopto);
MoveToFrame(camera3, 2, 1.5);
AiSetMoveSpeed(lightmurdoc, 2.0);
AiSetMoveFrame(lightmurdoc, 1);
Sleep(0.30);
MoveToFrame(camrea3, 3, 1.5);
Sleep(0.05);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.25);
PlaySoundLocal(saberswing2, 1, 0, 132);
Sleep(0.20);
PLaySoundLocal(saberhit1, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberhit2, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.15);
PlaySoundLocal(saberhit2, 1, 0, 132);
Sleep(0.12);
PlaySoundLocal(saberswing1, 1, 0, 132);
Sleep(0.12);
PlaySoundLocal(scream, 1, 0, 132); 
Sleep(0.55);
PlaySoundLocal(fall, 1, 0, 132);
Sleep(0.55);
PlaySoundLocal(laugh, 1, 0, 132);
Sleep(1.5);
PlaySoundLocal(taunt, 1, 0, 132);
MoveToFrame(camera3, 4, 1.5);
Print("And now, I fear things have gone arwy.");
Sleep(1.0);
SetCameraFocus(0, camera1);
MoveToFrame(camera1, 3, 1.5);
AiSetMoveFrame(master, 4);
Sleep(1.5);
AiSetMoveFrame(chi, 4);
Print("Master, what would you have me do?");
Sleep(1.0);
MoveToFrame(camera1, 4, 1.5);
AiSetMoveFrame(master, 5);
Print("I would do something myself, if time had not aged my body and made me frail.");
Sleep(2.0);
AiSetMoveFrame(master, 6);
MoveToFrame(camera1, 5, 1.5);
Print("I am almost hesitant to do what must be done.")
Sleep(1.0);
AiSetMoveFrame(master, 7);
Print("But now, there is no choice.");
SetCameraFocus(0, camera2);
MoveToFrame(camera2, 4, 1.5);
MoveToFrame(camera1, 6, 1.5);
Print("Young One, your training with me is now over.");
Sleep(0.55);
SetCameraFocus(0, camera1);
Print("WHAT?!?);
Sleep(0.25);
MoveToFrame(camera1, 7, 1.5);
Print("No, Master, I am not ready yet! I mean, I...");
Sleep(1.0);
Print("I'll hear none of that. You are ready.");
Sleep(1.5);
Print("But I charge you with one last mission:");
Sleep(1.0);
Print("Seek out the evil that Jengar has spawned and created, including himself,");
Sleep(1.0);
Print("And destroy them, therefore shedding light on all of us.");
AiSetMoveFrame(master,8);
Sleep(1.5);
Print("Also, I will keep in contact through my telepathic messages.");
Sleep(1.0);
AiSetMoveFrame(chi, 5);
Print("If it is my quest,");
MoveToFrame(camera1, 8, 1.5);
Sleep(1.0);
Print("Then so be it!");
Sleep(2.0);

// stop cutscene  
  jkEndCutscene();

// switch back to player focus
    SetCameraFocus(0, Player);
    
// unfreeze Kyle
    ClearActorFlags(Player, 0xa00000);

Return;

end


[This message has been edited by Fetch (edited March 31, 2002).]
2002-04-02, 9:52 AM #5
[http://forums.massassi.net/html/frown.gif] Anyone? [http://forums.massassi.net/html/frown.gif]
2002-04-02, 10:48 AM #6
woah cutscenes look rock, i thought i was ready to give them ago but after seeing that i will wait a bit lol. Why is it so hard making stuff on this, i am a creative genius i cannot work unde these frustrating circumstances.

------------------
NEB
NEB
2002-04-02, 10:51 AM #7
can you only do cutscenes in mots, that sucks if so!!!

------------------
NEB
NEB
2002-04-03, 5:33 AM #8
No, you can make MOTS style cutscenes in JK.

At least, that what I think.....

[This message has been edited by Fetch (edited April 03, 2002).]
2002-04-03, 12:49 PM #9
Always check your cog with Cogwriter to make sure that there are no syntax errors.

You spelled camera3 as "camrea3" in one place, and you have a missing end-quote after the "WHAT?!?". There may be a few more errors like that, so look through your code carefully.

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-04-03, 4:53 PM #10
Umm, if this is for JK, you cant use the 'JKcutscene()' verbs.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-04-04, 11:46 AM #11
Geeze, I must be blind to miss those. And, um, what do I use instead of JKcutscene() verbs?

[http://forums.massassi.net/html/confused.gif]
2002-04-04, 12:17 PM #12
Use nothing. You dont need them.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-04-04, 5:11 PM #13
[http://forums.massassi.net/html/confused.gif] Then when will JK know when to start/stop a cutscene?
2002-04-05, 5:27 PM #14
The cutscene "ends"? [http://forums.massassi.net/html/confused.gif] Irrelevent. The cutscnene ends when player control is restored. The JK engine is not aware that a cutscene is being played. It doesnt care, either.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-04-06, 5:26 PM #15
Ok, I used cogwriter, and now the cutscene works.............except the view doesn't switch to the cameras.....but that isn't a cog question.

↑ Up to the top!