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 → Darn Bloody COG won't start!
Darn Bloody COG won't start!
2003-03-12, 10:12 AM #1
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?
Code:
# 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's Cognative Hazards
2003-03-12, 10:14 AM #2
Startup COG:
Code:
# 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).]
Edward's Cognative Hazards
2003-03-12, 11:38 AM #3
Go here. Download Parsec. USE IT. It will answer your question.


Also, download CogPad. 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');
And when the moment is right, I'm gonna fly a kite.
2003-03-13, 7:17 AM #4
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
Edward's Cognative Hazards
2003-03-13, 10:41 AM #5
Parsec is an invaluable tool. I dont know how we ever got along without it.


Quote:
<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');
And when the moment is right, I'm gonna fly a kite.
2003-03-13, 2:17 PM #6
Yes, execpt parsec is SMs *moment of scilence* cog thing program.

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

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-03-13, 2:36 PM #7
Did I ever say it wasnt?

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-03-14, 1:11 AM #8
[http://forums.massassi.net/html/confused.gif]

------------------
Team Battle.
Team Battle.
2003-03-15, 4:26 AM #9
*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)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!