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 → Comments and Cog Flags
Comments and Cog Flags
2002-07-03, 9:48 AM #1
While I was working on Dash's cogs, I discovered an interesting difference between commenting symbols. The '#' is for commenting anywhere in the cog, but the '//' symbol can only be used in the symbols or code section. If it's used anywhere else, JK counts it as a syntax error.

And also, having symbols//comment will also count as a syntax error. There must be a space inbetween. However, with the pound sign, a space is not needed.


Spaces are not allowed in a flags assignment. If there's a space on either side of the equals sign, JK will "disable" the cog. I had an unusual error stating my cog was disabled and could not receive messages when I had the flags assignment spaced out.

I'll correct my utilities and provide a more complete explanation in the DataMaster as soon as I can.

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-07-03, 10:24 AM #2
Dont you mean, // only works in the code section? I already knew this, learned it the hard way too...


I never comment anyway, so this doesnt affect me. [http://forums.massassi.net/html/smile.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-03, 10:42 AM #3
Only time I comment is on other peoples cog. I too found what you're saying is ture the hard way. (I bet we'll be the only ones who reply to this [http://forums.massassi.net/html/wink.gif] )

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-04, 2:14 AM #4
Quote:
<font face="Verdana, Arial" size="2">Dont you mean, // only works in the code section? I already knew this, learned it the hard way too...</font>


I mean that '//' only works in the symbols or code sections. So you can't use it in, say, the header.

------------------
Author of the JK DataMaster, Parsec, and the EditPlus Cog Files.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-07-04, 4:12 AM #5
Hrm. Ill have to check that.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!