PDA

View Full Version : Darn Bloody COG won't start!



Edward
03-12-2003, 01:12 PM
Hi!
I'm trying to make an intro COG. I think I've done it right. The COG writer says nothings wrong with it. And I see no gliches. So what's wrong?


# Ugnaut reads and sings
#
# By Edward
symbols

message startup

thing ug
thing 8t

keyframe sit
keyframe walk
keyframe stand

thing lights
thing camera

thing door

thing officer

thing door2
thing droid2

sound UgSing
sound 8tGetToWork
sound UgOK

int inturupt=1 local

end
#
code
startup:
ThingLight(lights,0,0.01);
PlayKey(ug,sit,1,0x000);
SetActorFlags(GetLocalPlayerThing(),0xA00000);
SetCurrentCamera(0);
SetCameraFocus(0,camera);
sleep(2);
ThingLight(lights,1,3);
MoveToFrame(camera,1,1);
PlaySoundLocal(UgSing,1,0,0xC0);
sleep(GetSoundLen(UgSing)+1);
inturupt=PlaySoundLocal(UgSing,1,0,0xC0);
sleep(3);
StopSound(inturupt,1);
MoveToFrame(door,1,8);
WaitForStop(door);
ThingLight(lights,3,1);
PlaySoundLocal(8tGetToWork,1,0,0xC0);
Print("8t: Ugnaut 4145, you have work to do at sector 1414.");
sleep(Getsoundlen(8tGetToWork));
PlayKey(ug,stand,1,0x000);
PlaySoundLocal(UgOK,1,0,0xc0);
Print("Uggy: OK...");
sleep(GetSoundLen(UgOK));
AISetLookPos(ug,GetThingPos(GetLocalPlayerThing()) );
AISetMovePos(ug,GetThingPos(GetLocalPlayerThing()) );
PlayKey(ug,walk,1,0x000);
sleep(2);
DestroyThing(ug);
AISetMovePos(8t,GetThingPos(officer));
SetCameraFocus(0,GetLocalPlayerThing);
MoveToFrame(door,0,8);
sleep(1);
MoveToFrame(door2,1,8);
WaitForStop(door2);
AISetMoveFrame(droid2,1);
sleep(2);
AISetMoveFrame(droid2,2);
sleep(1);
MoveToFrame(door2,0,8);
ClearActorFlags(GetLocalPlayerThing(),0xA00000);
return;
end

Now there is another COG that has the Startup message that converts the player into an Ugnaut, but I don't think that one is the problem.

/Edward

Edward
03-12-2003, 01:14 PM
Startup COG:


# Always do this:
#
# By Edward
symbols

message startup

model ugnaut=u2altx.3do local

end
#
code
startup:
SetThingModel(GetLocalPlayerThing(),ugnaut);
return;
end


/Edward


[This message has been edited by Edward (edited March 12, 2003).]

gbk
03-12-2003, 02:38 PM
Go here (http://www.geocities.com/sabersdomain/files.html). Download Parsec. USE IT. It will answer your question.


Also, download CogPad (http://home.insightbb.com/~gbk/CogPad2.7z). It provides an interface that is, IMO, better than CogWriter. (it also allows you to pass the cog to Parsec without having to save it first).

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');

Edward
03-13-2003, 10:17 AM
THANK YOU! IT REALY HELPED! I found that 8t was incorrect. "Don't use a symbol that starts with a number!" And I forgot the brackets in GetLocalPlayerThing. As Kyle would say... "This should come in handy!"
By the way, I've read your sig, and I'm just wondering... Are you trying to say that your the center of everything?

/Edward

gbk
03-13-2003, 01:41 PM
Parsec is an invaluable tool. I dont know how we ever got along without it.



<font face="Verdana, Arial" size="2">Originally posted by Edward:
...Are you trying to say that your the center of everything?</font>

Very good, grasshopper. http://forums.massassi.net/html/smile.gif

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');

Descent_pilot
03-13-2003, 05:17 PM
Yes, execpt parsec is SMs *moment of scilence* cog thing program.

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

The Magician Saber System.

gbk
03-13-2003, 05:36 PM
Did I ever say it wasnt?

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');

Hellcat
03-14-2003, 04:11 AM
http://forums.massassi.net/html/confused.gif

------------------
Team Battle (http://www.out-post.net/jkteambattle/).

zagibu
03-15-2003, 07:26 AM
*moment of silence* ??? Did he die in that boot camp, or what?

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)