Teleport destination locations are off [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Teleport destination locations are off [Solved]

Post 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. :P

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:
Hidden/Spoiler:
Image
And for entering the upper region:
Hidden/Spoiler:
Image
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.
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Scotty! What did you DO?!

Post 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.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Scotty! What did you DO?!

Post 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...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Scotty! What did you DO?!

Post by Teancum »

Blade wrote:...but, before Tean' possibly says anything about it...
:funny2:
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Re: Scotty! What did you DO?!

Post 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. :?
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Scotty! What did you DO?!

Post 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.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Re: Scotty! What did you DO?!

Post by jangoisbaddest »

Just tried it - same story. Like I said, the location is right, just not the height.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Scotty! What did you DO?!

Post 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.
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Re: Scotty! What did you DO?!

Post 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.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Scotty! What did you DO?!

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Scotty! What did you DO?!

Post 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.)
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Re: Scotty! What did you DO?!

Post by jangoisbaddest »

Indeed, I just tried that very tactic, and it worked. Thanks for the advice! :)
Post Reply