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 → Quick Question, hoping for quick answere...
Quick Question, hoping for quick answere...
2004-06-17, 8:06 AM #1
Hi!
I'm making a very large level, doing a lot of cleaving (deleted sectors to replace objects), and a lot of locked doors. I'm just wondering, how many symbols can I have? I'm making this Multi-Locked surface COG where you knock and a message is printed. Now, how many surfaces can I have? I have 32 so far, hoping to go for 256...

/Edward
Edward's Cognative Hazards
2004-06-18, 10:08 AM #2
You might instead be able to do something similar to GBK's global door cog, where a certain set of flags you specify indicate which objects are to be controlled by the cog.
Take a lookie if you need to.

------------------
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-19, 1:45 AM #3
Hm... I see... Yes, I think that could work... Problem would be to count the doors... You see, I've set a different message per door. All messages are on a CogString file. Ah, never mind... I'll try the flagging part. Flag all doors with something and test each one.

/Edward
Edward's Cognative Hazards
2004-06-19, 4:01 AM #4
OK, that didn't work. So I ask... 2 things... One: Again, what's the limit on symbols.
Two: How do I improve this? The COG you gave was a little hard to understand.
Code:
# Appartment doors. Can be very rude.
#
# By Edward
flags=0x240
symbols

message		activated

surface		i		local

sound		knock

int		j=0		local

end
#
code
activated:
	j=0;
	for(i=0; i<=GetSurfaceCount(); i=i+1)
	{
		if(GetSurfaceFlags(i) & 0x8000)
		{
			PlaySoundLocal(knock,1,0,0x0);
			sleep(1);
			jkPrintUNIString(-1, 8000+j);
			j=j+1;
		}
	}
return;
end
Edward's Cognative Hazards
2004-06-19, 4:27 AM #5
Edward, that cog wont work. Your using the Activated message, but you didnt include anything that would send that message. There is no way in cog to get the Activated message from all surfaces, short of defining them all incog. Sorry.


Slaw: Dude! I forgot all about that site! [http://forums.massassi.net/html/eek.gif] /me gets all nostalgic...

BTW, there is an updated version of that cog here. Its not quite as complex, and only works off the 0x10000000 thing flag...

------------------
Dear lady, can you hear the wind blow, and did you know
Your stairway lies on the whispering wind.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-06-19, 11:18 AM #6
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Slaw: Dude! I forgot all about that site! [http://forums.massassi.net/html/eek.gif] /me gets all nostalgic...</font>


I only recently stumbled upon it, and it's in my sig -- hence the name "The lost cogs" [http://forums.massassi.net/html/wink.gif]
Oh wait, agh! I was thinking "capture all the stuff you need" (CaptureThing()) but that won't work with surfaces.
Maybe try a heap instead? Hmm...

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

[This message has been edited by Darth Slaw (edited June 19, 2004).]
May the mass times acceleration be with you.
2004-06-19, 12:48 PM #7
Hm... That's going to be tricky, since this level will be in MP as well...

/Edward
Edward's Cognative Hazards

↑ Up to the top!