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 → It ends the episode!
It ends the episode!
2002-06-26, 4:53 PM #1
Code:
# Jedi Knight Cog Script
#
# filename.cog
#
# Description
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message	startup
thing		cookedhaggis
thing		playeractor
thing		playerlook
thing		lieutenant
thing		console5
thing		cam1
thing		cam2
surface	consoleface
key		suxbad=kyusew0.key	local
material	switch=planetboard.mat	local
material	kahn=kahnscreen.mat	local
material	barkeep=barkeep.mat	local
sound		beep=beep1.wav		local
sound		beep2=beep2.wav		local

end

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

code

startup:
  Player = GetLocalPlayerThing();
  SetActorFlags(player, 0xa00000);
  StopThing(player);
  SetCameraFocus(0, cam1);
  Sleep(2.0);
  MoveToFrame(cam1, 1, 5);
  Sleep(2.0);
  Print("COOKEDHAGGIS: Thank you for coming on such short notice.");
  Sleep(2.0);
  Print("COOKEDHAGGIS: We've analyzed the data you brought back from Planet 9...");
  Sleep(5.0);
  Print("COOKEDHAGGIS: ...and have discovered that there is a secret Imperial facility on Dangoon IV.");
  Sleep(2.0);
  AiSetLookPos(cookedhaggis, GetThingPos(lieutenant));
  Sleep(2.0);
  SetCameraFocus(0, cam2);
  Print("COOKEDHAGGIS: Lieutenant?");
  Sleep(1.0);
  AiSetLookPos(lieutenant, GetThingPos(console5));
  Sleep(1.0);
  PlaySoundLocal(beep, 1, 0.0, 0x0);
  Sleep(0.5);
  AiSetLookPos(playeractor, GetThingPos(playerlook));
  MoveToFrame(cam2, 1, 3);
  Sleep(4.0);
  PlaySoundLocal(beep2, 1, 0.0, 0x0);
  SetSurfaceMat(consoleface, switch);
  Sleep(2.0);
  Print("COOKEDHAGGIS: The only major city is Ans.");
  Sleep(4.0);
  PlaySoundLocal(beep2, 1, 0.0, 0x0);
  SetSurfaceMat(consoleface, kahn);
  Print("COOKEDHAGGIS: We have reason to believe access is at a 'Kahn's Books.'");
  Sleep(5.0);
  PlaySoundLocal(beep2, 1, 0.0, 0x0);
  SetSurfaceMat(consoleface, barkeep);
  Print("COOKEDHAGGIS: Meet our contact at the local bar; he'll give you the password to get in.");
  Sleep(5.0);
  Print("COOKEDHAGGIS: Good luck, and the may the Force be with you.");
  Sleep(3.0);
  jkEndLevel();
return;

# ........................................................................................

end


It does everything fine, except that after the "may the Force be with you" line, it goes back to the JK main menu, as though I've told it to be the end of the episode.

I've re-written the episode.jk file. I've set jkEndLevel to 1 and 0. Why is it closing the episode?!

------------------
"Do you have any idea how long it takes to dig graves for twenty-three oak trees?"
-- Davram Bashere, The Fires Of Heaven
"She shall make you a real boy, and I shall make her a real woman."
-- Joe, A.I.
NMGOH
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2002-06-26, 5:48 PM #2
jkEndLevel(int); - int as 1 goes to the A line number in the Episode, int as 0 does B instead. The problem has to be in the Episode. Post that and I'll check it over.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-06-27, 4:42 AM #3
No, the problem IS 'JKendlevel()'... You need to but a 1 or 0 in there.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-06-27, 6:32 AM #4
Wolfy tried that.
Quote:
<font face="Verdana, Arial" size="2">I've set jkEndLevel to 1 and 0.</font>
I bet the problem is in the episode.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-06-27, 6:37 AM #5
I fixed it.

I realized I was running the level in debug mode, and that goes back to the JK main menu when you finish a level.

[http://forums.massassi.net/html/redface.gif]

------------------
"Do you have any idea how long it takes to dig graves for twenty-three oak trees?"
-- Davram Bashere, The Fires Of Heaven
"She shall make you a real boy, and I shall make her a real woman."
-- Joe, A.I.
NMGOH
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2002-06-27, 6:50 AM #6
Yep, that'll do it.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-06-27, 7:13 AM #7
Oops, sorry.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-06-27, 9:40 AM #8
As for the cog, "key" should be "keyframe" in the symbols, and player is undefined.

Good luck, Wolfy. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.

[This message has been edited by SaberMaster (edited June 27, 2002).]

[This message has been edited by SaberMaster (edited June 27, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-06-27, 9:58 AM #9
SaberMaster, here's a part from JK's default episode.
Code:
150:     2     15       CUT      39a.smk           0           0           151   -1
151:     2     15       LEVEL    16aEscapeShip.jkl 0           0           160   152      # Level 15: Escape Ship
152:     2     15       CUT      41da.smk          0           0           150   -1

This is the lightside path. If you fail the mission, it plays the failed cutscene. If you complete it, you watch the next level's cutscene. The same is true for the darkside. I bet you're thinking of DECIDE lines. Those will send you off to A or B depending on if your light or dark.

------------------
The Sniper Missions. Current project, The Sniper Missions

[This message has been edited by Descent_pilot (edited June 27, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-06-27, 3:14 PM #10
Yes, I was thinking of decide levels, but then again, I'm not a level editor. [http://forums.massassi.net/html/smile.gif]

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-06-29, 6:01 AM #11
Whoa, wait: seeing the GotoA and GotoB...

HOW WOULD YOU MAKE ALTERNATE ENDINGS (that lead to alternate levels)?!?!

(and can it be dont for MotS? [http://forums.massassi.net/html/tongue.gif])
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-06-29, 10:07 AM #12
Not sure about MotS, but see JK's default episode. use the same sort of thing as posted above Grismath.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-01, 1:26 AM #13
Yes, but what would the command be to differentiate between the 'path' the player has chosen?
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-01, 3:37 AM #14
Read my first reply, [http://forums.massassi.net/html/rolleyes.gif] Then read my fourth post, the one with the episode.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-03, 12:59 AM #15
Ohhhhhhhh...

Thus, it would be jkEndLevel(1); for GotoA, and jkEndLevel(0); for GotoB?
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-07-03, 3:56 AM #16
Yes Grismath. Now let this vanish into the dead topics.

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!