Page 1 of 1
Teleport destination locations are off [Solved]
Posted: Sat Jun 28, 2008 5:55 pm
by jangoisbaddest
So my teleporters in my map are not working right. Either it's a problem with the Heizenburg compensators, or it has something to do with the game.
Now, everything is working right except that the destination locations are WAY off from what's in ZE. Observe the destination for entering the lower region:
And for entering the upper region:
This is only supposed to be for the AI, but I changed it momentarilly to all characters to try and see why they were failing so hard. Here's why (this is a video):
http://s83.photobucket.com/albums/j285/ ... I_help.flv
So yeah, wtf eh? Why are the destinations so off? The code is working right, cause one is lower than the other....so they're two different spawn points that is selected depending on the region entered.
Re: Scotty! What did you DO?!
Posted: Sat Jun 28, 2008 7:06 pm
by authraw
Nodes have this funny way of not changing position even when you move them in ZE, clean, and munge. You might want to try renaming all of the nodes that don't work right and then updating your code with the new names.
Re: Scotty! What did you DO?!
Posted: Sat Jun 28, 2008 10:21 pm
by Blade
Hm, this is probably not pertinent at all, but, before Tean' possibly says anything about it, is your map a power of two? If it is, I don't know if it messes up the positions of everything or just objects... if it is a power of two, however, I have no idea...
Re: Scotty! What did you DO?!
Posted: Sun Jun 29, 2008 12:38 am
by Teancum
Blade wrote:...but, before Tean' possibly says anything about it...

Re: Scotty! What did you DO?!
Posted: Sun Jun 29, 2008 12:56 pm
by jangoisbaddest
Alright, so I tried cleaning and re-munging. Now the x and y axis locations are fine, but not the z (as in, I'm teleported high above the node, but right where it is in 2D). I don't get it, because all of the spawn nodes for my CPs on the platforms have worked fine. It's just these two.

Re: Scotty! What did you DO?!
Posted: Sun Jun 29, 2008 1:44 pm
by authraw
Yeah, nodes are weird. I would try renaming them--that's what I always do when they don't respond to changes I make. For example, you could rename them to dest1_n and dest2_n, and then just make sure you change their names in your lua, too. If you rename the paths, VisualMunge will realize that they're something new and fix them.
Re: Scotty! What did you DO?!
Posted: Sun Jun 29, 2008 1:52 pm
by jangoisbaddest
Just tried it - same story. Like I said, the location is right, just not the height.
Re: Scotty! What did you DO?!
Posted: Sun Jun 29, 2008 2:11 pm
by AceMastermind
Try moving the nodes lower in ZE to compensate for the ingame offset, as long is it works correctly ingame like you want then everything is dandy.
Re: Scotty! What did you DO?!
Posted: Mon Jun 30, 2008 11:39 am
by jangoisbaddest
Tried it just now, Ace. No dice.
I have a theory. If this teleport code is simply a "move" command instead of an instant location change, you're probably hitting the object (the platform), and therefore it can't complete the move. Anybody know anything about this?
In any case, I'll do some more fiddling around with it. I'll let everyone know.
Re: Scotty! What did you DO?!
Posted: Mon Jun 30, 2008 12:43 pm
by Aman/Pinguin
jangoisbaddest wrote:If this teleport code is simply a "move" command instead of an instant location change, you're probably hitting the object (the platform), and therefore it can't complete the move.
Yeah, this way of teleporting can't go through objects. Had that problem waaaaaaaaaaaaaaaaaay time ago. That's probably the problem. Try teleporting them with a second teleporter around the object. Thats the way I always use.
Re: Scotty! What did you DO?!
Posted: Mon Jun 30, 2008 12:55 pm
by Maveritchell
Yeah, I can confirm that the teleport is really just an instantaneous move rather than a real position shift. I've had to do the same thing as Pinguin; setting up a double teleport where I teleport into one region above my target and then teleport back down from that region. (In fact if you've played through Spira about half the teleports were that way, since I had to teleport inside closed spaces a lot.)
Re: Scotty! What did you DO?!
Posted: Mon Jun 30, 2008 7:51 pm
by jangoisbaddest
Indeed, I just tried that very tactic, and it worked. Thanks for the advice!
