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 → Rotator cog stops rotating after one turn on client comp
Rotator cog stops rotating after one turn on client comp
2004-05-03, 5:41 AM #1
Hello all, I downloaded the rotator cog from the massassi cogs section, and used it in my level. However, I noticed that it works perfectly on the host side, on the client side it stops rotating after one turn. Maybe this cog is host only? Is there any way to make it work on all players computers? I don't know a thing about cog. Can anyone 'modify' this cog for me, or tell me how to do it?

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-03, 10:34 AM #2
I dunno for sure, but try adding "flags=0x240" just above the symbols keyword.

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-05-03, 1:36 PM #3
Well, thanks for the help, but unfortunately...it didn't fix it [http://forums.massassi.net/html/frown.gif]

It seemed to last a bit longer before it stopped now, but that may be my imagination.

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-04, 3:02 AM #4
this one should work.
Code:
##########################################################
# Jedi Knight Cog Script  (JK)
#---------------------------------------------------------
# ROT_WALKWAY01.COG
# -Rotates an object (walkWay) continously.
# -To change the direction of the spin make the spin_time
#  negative. EXAMPLE: spin_time=-2 will spin in the
#  opposite direction of spin_time=2.
# -Each time you use this cog in your level the SPIN_TRIG
#  needs to be set to a different number.
# -SPIN_TRIG also needs to be different from any
#  other triggers in any other cogs that uses triggers in
#  your level.
#---------------------------------------------------------
# Written By DSLS_DeathSythe
# This COG is NOT supported by LucasArts Entertainment Co.
##########################################################
flags=0x240
symbols
#---------------------------------------------------------
message     startup
message     arrived
message     trigger
#--------------------#
thing       walkWay=-1
sound       spinning_snd=-1
flex        spin_time=2.0
int         spin_trig=1
#--------------------#
int         sync_count=0                                  local
#---------------------------------------------------------
end
#=========================================================
code
#---------------------------------------------------------
startup:
	sync_count = 0;
	JumpToFrame(walkWay, 0, GetThingSector(walkWay));
	PlaySoundThing(spinning_snd, walkWay, 1.0, -1, -1, 0x1);
arrived:
	if(IsServer())
		SendTrigger(-1, spin_trig, sync_count, 0, 0, 0);
return;
#---------------------------------------------------------
trigger:
	if(GetSourceRef() != spin_trig) return;
	sync_count = GetParam(0);
	if(sync_count >= 3)
		{
		JumpToFrame(walkWay, 0, GetThingSector(walkWay));
		sync_count = 0;
		}
	sync_count = sync_count + 1;
	RotatePivot(walkWay, 0, spin_time);
return;
##########################################################
end

setup is the same as the cog on massassi.
only thing different that you need to worry about is the trigger int.

------------------
Famous last words - "It seemed like a good idea at the time."

[This message has been edited by DSLS_DeathSythe (edited May 04, 2004).]
Famous last words - "It seemed like a good idea at the time."
2004-05-04, 2:20 PM #5
Wow, this is absolutely great! Can I just use this one without adding anything?

Thanks a billion! I'll go try it right now!

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-04, 3:45 PM #6
YAY!!!!!!! It Works!!!!

Fantastic! You have no idea how much this has helped me to realize the idea for my level. You're absolutely on the credits list, thanks!

------------------
*There is no death, there is the Force*

[This message has been edited by ORJ_JoS (edited May 04, 2004).]
ORJ / My Level: ORJ Temple Tournament I
2004-05-04, 4:46 PM #7
your welcome, glad to have been able to help.

------------------
Famous last words - "It seemed like a good idea at the time."
Famous last words - "It seemed like a good idea at the time."
2004-05-27, 3:15 AM #8
Oh btw, you may already know, but I thought I'd just mention it:

You managed to 'sync' the rotation. I have two comps, and I experimented with giving the 3do an angled rotation, and it looks and moves in exactly the same way and in the exact same position on both comps!

This is the ultimate version. The rotator cog in the massassi cogs section should actually be replaced by this version. [http://forums.massassi.net/html/smile.gif]

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I

↑ Up to the top!