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 → Third time isn't the charm
Third time isn't the charm
2002-05-20, 3:34 PM #1
I can't create a cog. I have three particle things and I want two of them to rotate around the middle one at two different orbit paths.
Top View
. <------ This needs to
. <---- rotate around this
. <- And this needs to also

I can create most of the cogs for my projects, but this one has me stuck. It's probably something small, but I can't find out what. [http://forums.massassi.net/html/biggrin.gif] Give me some help please.

------------------
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-05-20, 4:07 PM #2
Not cog, PAR.

------------------
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-05-20, 4:48 PM #3
No it has to be three seperate particles. The outside ones have to have different orbits, so its cogging.
------------------
The Sniper Missions. Current project, The Sniper Missions

[This message has been edited by Descent_pilot (edited May 20, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-05-21, 5:41 AM #4
Oh.

You could use tiny 2d-3d0s and run the 'Rotatepiviot' command around a center ghost...

------------------
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-05-21, 11:28 AM #5
GBK, I'm not quite shure what you mean here. Are you saying to use sprites instead?

I don't quite get how to set up the rotatepivot cogging command and using it in the level. I'm a bit of an advanced cogger, but that's one of the few things I really have trouble with when cogging. [http://forums.massassi.net/html/redface.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

[This message has been edited by Descent_pilot (edited May 21, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-05-21, 1:23 PM #6
Well, sprites would work...

The rotatepiviot command is actully a cinch to use. . . Just remember, the object actully has to have a frame0 for it to work.

------------------
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-05-21, 3:54 PM #7
Would this work GBK?

# Jedi Knight Cog Script
#
# PLANETS.COG
#
# Makes the moons rotate around a planet
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols

thing moon1
thing moon2
flex time

message startup

end

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

code

startup:
RotatePivot(moon1, 1, time);
RotatePivot(moon2, 1, time);
Return;

end

and have the moons frame 1 at the planet's center? For a flat rotation around the planet, would a PYR of 0/0/0 work, or 0/45/0?

------------------
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-05-21, 6:02 PM #8
Close, but no. The objects would only rotate once.

Examine the following cog. It is the simplest one can make a rotpiv cog...

Code:
#05/2002 GBK - Packman573@aol.com
Symbols
Message Startup
Message Arrived
Thing Ghost
Flex Time=1
End
Code
Startup:
Sleep(1);
Arrived: 
Rotatepivot(Ghost, 0, Time);
Stop;
End


And why are you asking me if it would work? Are you incapable of testing it for yourseself? [http://forums.massassi.net/html/tongue.gif]


You have the basic idea down... The frames of the objects should be at the center of the rotation, just remember to add '360' to the Y axis in the frame value.

------------------
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-05-22, 5:02 AM #9
When I asked "Would this work?" I couldn't test it at the time. I was at a library computer. I have to go, I haven't tested it yet, GBK, but I will as soon as I get back from school, and I'll reply agian. Just wanted to clear that up. [http://forums.massassi.net/html/smile.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-05-22, 12:59 PM #10
Here's the cog I used, it didn't work. [http://forums.massassi.net/html/frown.gif]

# Jedi Knight Cog Script
#
# PLANETS.COG
#
# Makes the moons rotate around a planet
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols

thing moon1
thing moon2
flex time

message startup
message arrived

end

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

code
Startup:
Sleep(.25);
Arrived:
RotatePivot(moon1, 0, time);
RotatePivot(moon2, 0, time);
Return;
end

The frame 0 for the moons is the same posistion as the planet, but the PYR for them is 0/360/0. What did I do wrong? What could I change?

------------------
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-05-22, 1:43 PM #11
Do your JED objects have 'numframes' values? If not, add them, and make em '1'

------------------
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-05-23, 12:55 PM #12
GBK, I tried everything. NUMFRMAES is set to 1, read over both of the cogs again. Frame 0 for each of the moons has a PYR of 0/360/0. This is making me so mad! [http://forums.massassi.net/html/mad.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

↑ Up to the top!