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 → What is wrong with this cog?
What is wrong with this cog?
2003-07-20, 12:15 PM #1
I'am learning cog, and started a few days ago, and decide to do a hotkey that would print soe text, but when I activate the hotkey, nothing happens. Is it the cog? I've checked hundreds of times to see if it was a problem in Items .dat or in the jkstrings.uni. Here's the cog:
I began to learn cog just yesturday and I'm doing a hotkey (just for practice) that prints a string. What is wrong with it?


# Jedi Knight Cog Script
#
# HelloWorld.COG
#
# Description
# Prints a string world when I push a hotkey.
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message activated

end

# ========================================================================================

code
# ........................................................................................

activated:
Sleep(1)
Print("Hello there! This is TRSW_Gl, testing his new cog!");

Return;

end

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-20, 12:39 PM #2
you are missing a semicolon on end of your

Sleep(1)

should be

Sleep(1);


------------------
- Wisdom is 99% experience, 1% knowledge. -
- Wisdom is 99% experience, 1% knowledge. -
2003-07-21, 6:50 AM #3
Thank you. That really fixed the cog, Nomore syntax errors. Any ways, I turned it into an inventory item, but it just doesn't come up. I made 2 BM files named them based on how I named the item items.dat there called ichello16.bm and ichello8.bm. Who can I send the gob to so they can fix it?

------------------
"Computer are useless, all they can give you are answers"/Pablo Piacasso
Nothing to see here, move along.
2003-07-21, 2:05 PM #4
Check out this tutorial and make sure you did everything correctly. Sounds like your bin doesn't have the 0x2 bin flag to make it an item.

But if you do have that flag, then JK would have crashed if it didn't find the bms.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!