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 → How do you Learn to COG?
How do you Learn to COG?
2003-06-10, 11:34 AM #1
I was wondering how i could learn to cog.

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-10, 2:55 PM #2
experiment.
[http://forums.massassi.net/html/tongue.gif]

Actually, try getting datamaster to learn some of the verbs. I can't remember where 2 get it, though. I think there's other stuff at the site where you get it, but...

*waits for someone else*

------------------
"The Just shall live by faith." - Galatians 3:11
To edit is human... To COG is divine!!
Catloaf, meet mouseloaf.
My music
2003-06-10, 3:22 PM #3
Find the Datamaster here.


The only useful advice I could give you right now, start small. Dont go trying to cog the human brain, or youll get fustrated and youll quit. Start at the begging, make text output cogs. Fool around with conditional statements and variables. Get a feel for the language. Once youve done that, then move on to the harder, more fun stuff.

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-06-10, 4:07 PM #4
The human brain, sounds fun, i might get a team together to do it.

I can see the headlines now "Starwars computer nerds create AI" whoa

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-10, 7:09 PM #5
Dude, thats me and my breakthourghs. You can follow in my footsteps, but like GBK said, start small, also if you can, learn some C++, that is the language cog is based off of. Not the begging, but the beginning. GBK needs to go back to back to 1st grade to learn how to spell. [http://forums.massassi.net/html/tongue.gif]

------------------
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-06-10, 7:49 PM #6
Well actually COG is based off C, naturally since COG isn't object oriented and because JK is written in C. ^_^

But anyways, C++ works too, a great language to learn and will help a lot with COG. Just remember that some things like C++'s shortcut notations, and many of the data structures in C++, in C even, do not exist in COG. You might say that COG is an extremely simple implementation of C, modified to make things easier for the level designer and programmers.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-06-11, 1:39 AM #7
i learn by takeing existing LEC cogs, and changeing them (minimaly at first) untill i got cool stuff..

the first thing i did was make camraff.cog work on surfaces as teh console... that was easy [http://forums.massassi.net/html/biggrin.gif]

------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's

-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO

Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-06-11, 1:48 AM #8
Quote:
<font face="Verdana, Arial" size="2">Originally posted by [SF]pjb:
i learn by takeing existing LEC cogs, and changeing them...
</font>


That will only take you so far....

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-06-13, 7:00 AM #9
Quote:
<font face="Verdana, Arial" size="2"> naturally since COG isn't object oriented</font>


Not necessarily. For me, Cog is entirely object oriented. All of Cog's things, explosions, weapons, ghosts, and players are objects. The Set/Get verbs that we use in Cog are just the same as accessor methods, just with different syntax. The objects ingame are created from templates - just like classes in OOP, JK even calls them classes in some places.

Quote:
<font face="Verdana, Arial" size="2"> and because JK is written in C.</font>


If JK looks for a MSVC++ runtime library, isn't it much more likely to be written in MS Visual C++? I've never heard any official source say what language LEC used.

[This message has been edited by SaberMaster (edited June 13, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!