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.
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.
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.