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 → CreateThingAtPos() / Multiplayer Ghosts
CreateThingAtPos() / Multiplayer Ghosts
2003-07-08, 2:40 PM #1
When I use CreateThingAtPos() to create a thing at the position and sector of another thing, CTAP() will create the new thing at a position slightly higher that the position it was given. Does anyone know why this happens?

I've heard a few editors say that ghosts do not work in MP. I've never had this happen myself, but I've been working with JED recently and doubtless the most annoying bug in JED is that it does not respect Cog's use of templates. In particular, JED doesn't realize that Cog can't use the first template in a .jkl (while the level can).

So it might be that ghosts don't work in some MP levels because JED made the ghost template the first in the jkl. If you've had this problem with a level, could you check the jkl to see where ghost is in the template list?

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

[This message has been edited by SaberMaster (edited July 08, 2003).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-08, 4:40 PM #2
Ive seen many cases where ghost wasnt the first template, but this problem remained. At the same time, though, other *ghost based* objects would work.


Flip a coin, the answer is on the up side.

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-07-08, 7:11 PM #3
SM, I already posted almost the exact same thing here

I never did get around to proving it though. Maybe you could do multiple level tests with different cogs.

------------------
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2003-07-09, 2:10 PM #4
Yeah, I'll do some tests to see if I can get ghosts to not work...

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-07-10, 1:03 PM #5
SaberMaster, I seem to remember seeing the effect you discribed. I don't know if this helps your investigation but if i remember correctly the distance was different in different levels. So I did think it was related to something in the level.

I gave up and ended up assuming that GetThingPos() wasn't returning the exact center of the object. But I would definately like to hear if you learn anymore about this.

------------------
- Wisdom is 99% experience, 1% knowledge. -
- Wisdom is 99% experience, 1% knowledge. -

↑ Up to the top!