PDA

View Full Version : huh?



ZOOIkes
06-09-2002, 04:44 AM
Weird bug in a little cutscene I made, I based it off a cog I wrote earlier (which worked fine) and I didn't change anything in the base, I just changed some keys and dialogues and made it start by crossing an adjoin in stead of on startup.

But it does really weird after the adjoin is crossed, it doesn't focus on the camera (CAM), but it stays with the player, the debugtexts on top of the screen start to HOM and then when CAM starts moving it finally focusses on it, the rest of the cog works fine.


symbols

message crossed
thing cam
thing look
thing INS
thing PL
thing DT
thing player local
flex speednormal=4.0
int done=0 local
surface entersec
keyframe key1
keyframe key2
sound Conversation3
int idle0 local
int idle1 local
int check local
end

code
crossed:

if (done) return;
done = 1;
// setup first
player = GetLocalPlayerThing();
jkBeginCutscene();
// switch the player for an Actor
SetActorFlags(player, 0xa00000);
StopThing(player);
Sleep(0.5);
SetCameraFocus(0, cam);
Sleep(1.0);
Print("-82 years ago-");
Sleep(3.0);
MoveToFrame(cam, 3, speednormal);
Idle0 = playkey(PL, key1, 1, 0x00);
Idle1 = playkey(INS, Key2, 1, 0x00);
Sleep(6.0);
PlaySoundLocal(Conversation3, 1, 0, 132);
Print("PL: This is the first temple we found, it's devoted to their god of war...");
Sleep(4.0);
Print("...Those Hallways we came through are the only landroute to the ruins.");
Sleep(4.0);
Print("Ins: What about security?");
Sleep(3.0);
AiSetLookPos(INS, GetThingPos(look));
AiSetMoveFrame(DT, 1);
Print("PL: We could afford ourselves some Darktroopers and many turrets.");
Sleep(3.0);
Print("PL: The next hall, which will magicly illuminate is devoted to their sungod...");
Sleep(3.0);
jkEndCutscene();
SetCameraFocus(0, player);
if (jkGetSaberCam() == 1)
CycleCamera();
// unfreeze's Kyle
ClearActorFlags(Player, 0xa00000);
return;

end


What could be wrong?

ZOOIkes
06-09-2002, 05:33 AM
Consistency checker and parsec stay silent...

SaberMaster
06-09-2002, 06:23 AM
I don't think the problem is caused by the cog, but by the level. Make sure that cam starts out with the correct sector. From what you say, it seems that cam is in the wrong sector to begin with, and when it crosses into a new sector after the MoveToFrame() command, it is given the correct sector and the mistake is corrected.

Also, what do you mean by "switch the player for an Actor"? And do you realize what jkGetSaberCam() is used for?

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/fileframe.html), Parsec (http://www.geocities.com/sabersdomain/fileframe.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/fileframe.html).
Visit Saber's Domain (http://www.geocities.com/sabersdomain).

ZOOIkes
06-09-2002, 07:20 AM
hmmm somehow jed didn't like the camera standing on an adjoin, I placed it up a bit and now it works fine.