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's been so long...
It's been so long...
2003-09-02, 3:59 AM #1
It's been 6 months since I edited JK and or cogged...
My memory is a bit hazy.

Anyway I'm making this relatively simple cutscene but it makes jk crash to desktop.

Code:
# Jedi Knight Cog Script
#
#
# [CaveDemon, 2002]
# [Vedder, 2003]
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

int		light		local
int		effect		local
int		i		local

flex		oi=3

keyframe	l_key0=takealookaround.key

thing		cam
thing		camc
thing		player		local
sound		line1
sound		line2
sound		line3

surface		cave
surface		ved
surface		d11
surface		d12
surface		d13
surface		d14
surface		d15
surface		d16
surface		d17
surface		d18
surface		d19
surface		d20
surface		d21
surface		d22
surface		d23
surface		d24
surface		d25

message startup
message timer

end

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

code
startup:

player = jkGetLocalPlayer();

SetCurrentCamera(0);

SetCameraFocus(0, camc);
PlaySoundLocal(LoadSound("dumdumdumdum.wav"), 1, 0, 0x100);
Sleep(8);
MoveToFrame(camc, 2, oi);
Sleep(2);
SetSurfaceLight(cave, 1, 0); 
Sleep(10);
MoveToFrame(camc, 3, oi);
Sleep(8);
SetSurfaceLight(ved, 1, 0); 
Sleep(9);
MoveToFrame(camc, 4, oi);
Sleep(9);
i = 10;
while(i < 26)
{
i = i + 1;
SetSurfaceLight(d, 1, 1);
}
Sleep(15);
i = 10;
while(i < 26)
{
i = i + 1;
SetSurfaceLight(d, 0, 1);
}
SLeep(3);
(it goes on but that's irrelevant and proven to work)


Now the game crashes to desktop when it reaches the first while statement.
I'm puzzled...

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2003-09-02, 7:06 AM #2

Hi there [http://forums.massassi.net/html/smile.gif]

*cough*indentation*cough* [http://forums.massassi.net/html/wink.gif]

But other than that, I think your array assignment is slightly off - it should be d11 I believe (because that's where you're array list begins, and not at d). Easy mistake to make though [http://forums.massassi.net/html/wink.gif]

Why you don't start the array at 0 though, is another kettle of fish [http://forums.massassi.net/html/wink.gif] lol

Hope this helps [http://forums.massassi.net/html/biggrin.gif] and welcome back ZOOIkes [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-09-02, 9:08 AM #3
You hit the jackpot. That indeed fixed it.

And indentation isn't that needed in such a short and easy cog, don't you think? Will you forgive me [http://forums.massassi.net/html/wink.gif]

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com
2003-09-02, 11:01 AM #4
No probs [http://forums.massassi.net/html/biggrin.gif]

Incidentally ZOOIKes, you get the prize for being first with the joke about my name [http://forums.massassi.net/html/biggrin.gif]. I was wondering who'd make it first - you'll go down in the record books... [http://forums.massassi.net/html/wink.gif]

-Jackpot

PS: I suppose I can let you off about the indentation issue ... but don't let me catch you doing it again.... [http://forums.massassi.net/html/wink.gif] lol [http://forums.massassi.net/html/biggrin.gif]

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-09-03, 9:00 AM #5
I shall be on my guard, sir!
And: Wooh, I'm going down some record!

------------------
Call me Vedder.
Author of: A Pirate's Tale (Mots SP)
APT homepage
----
<phantom> You're always going to be aloser if you attempt to aspire to massassi standards.
<phantom> They're a bunch of socially inadequate <beep> whores who have little or no lives.
APT 1, 2, 3/4, 5/6
TDT
DMDMD

http://veddertheshredder.com

↑ Up to the top!