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 → Cogging!
Cogging!
2004-06-17, 4:47 PM #1
I am looking for some good tutorials on learning how to make cogs for my levels. If you have/know any good tutorials, send me a email, or reply.

Thank You

Vane

------------------
Dark-Vane
[This message has been edited by Vane (edited Tuesday, 1212).]
There's only one thing that im scared of, and it's Pixels... THERE EVERYWHERE!!!! AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH! *runs through a wall*
2004-06-17, 5:08 PM #2
I would say the best way to learn is to view other's cogs and evaluate them. Ask the questions WHAT and WHY when looking at a cog script. Use the JKSpecs Cog section:
http://millennium.meekstreet.com/jkspec/cog_menu.htm

Massassi here has tutorials and cogs up for download too.

try this one first (its from massassi):
http://www.massassi.net/tutorials/misc/c_elements.htm

[This message has been edited by F-Body (edited June 17, 2004).]
This is retarded, and I mean drooling at the mouth
2004-06-18, 10:02 AM #3
One word. Practice.
Taking some sort of programming class (particularly one that decends from C -- I took C++) really helps. [http://forums.massassi.net/html/smile.gif]
Oh, and also what he ^^^ said, which is kinda like practicing [http://forums.massassi.net/html/smile.gif]

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *

[This message has been edited by Darth Slaw (edited June 18, 2004).]
May the mass times acceleration be with you.
2004-06-20, 4:26 AM #4
I have taken a Course that envolves Java, I know how to work with while, if, for etc. It's a Start [http://forums.massassi.net/html/biggrin.gif]

------------------
Dark-Vane
[This message has been edited by Vane (edited Tuesday, 1212).]
There's only one thing that im scared of, and it's Pixels... THERE EVERYWHERE!!!! AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH! *runs through a wall*
2004-06-20, 4:54 AM #5
if someone will nicely provide a link to sabermasters site (considering mine dissapeared from favoites >_< [http://forums.massassi.net/html/wink.gif] then you should download Datamaster, its a one stop guide to cog, and hase some nice tutorials.

then get cogpad and parsec, i use them together as cogpad can launch parsec..

with all that your sorted

------------------
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?
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?
2004-06-20, 6:44 AM #6
Ever heard of Google? It's quite useful...
Here's the link: Saber's Domain

------------------
"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)
2004-06-20, 9:50 AM #7
Yeah, Java should get you there too, but C++ (and even more likely C) are more closely related to Cog. I say this because some of Java's more unique features like dot notation (I think that's the name, I just know it's "object.method()") and such similar things are, sadly, not in cog.
But, all the basics are essentially the same, one difference being variable declaration, but cog's really isn't hard to learn at all [http://forums.massassi.net/html/smile.gif] [http://forums.massassi.net/html/wink.gif] The hardest thing would probably be array declarations, as they're a lot different in Cog than in Java.

Whao boy, I've typed way over my quota [http://forums.massassi.net/html/wink.gif]

Oh, and CogPad + Parsec = Cog editing workshop package, for the remarkably unbeatable and low price of FREE! [http://forums.massassi.net/html/biggrin.gif]
I also recommend Scribe for cleaning up ugly, messy cogs, also at the price of FREE! [http://forums.massassi.net/html/biggrin.gif]

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *

[This message has been edited by Darth Slaw (edited June 20, 2004).]
May the mass times acceleration be with you.
2004-06-22, 7:12 AM #8
Well, the main difference between Java and Cog is, that Java is a strictly object-oriented language, while Cog has no object orientation whatsoever.
And don't confuse Javascript with Java...some people do.

------------------
"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)
2004-06-24, 5:45 AM #9
The biggest difference between COG and C, C++, Java and just about any other language out there, is that COG is event based, the others are function based. Event based is where you have a section of code that gets executed on a certain event, like the startup, entered, etc. messages. Function based is where...well, you write functions. Something COG happens to lack.

------------------
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.
2004-06-24, 10:24 AM #10
It's a snack to write event-driven code in Java. You can do so in any other higher level programming language, too.

------------------
"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)
2004-06-24, 10:31 AM #11
A brief outline of a Java event-based applet.
Code:
public class Blahaha extends JApplet implements ActionListener
{
   init()
   {
      ...
   }
   ActionPerformed(ActionEvent aE)
   {
      //this code executes when a button on your applet is pushed or something similar
   }
}


------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-06-24, 10:56 AM #12
Well yeah, but you're just writing functions called by something else. I was talking about in COG, where you just define a block of code that some completely different interpreter triggers.

------------------
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.
2004-06-25, 9:58 PM #13
Yeah, that's because it's a script language.

------------------
"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!