Page 1 of 1
Questions about a teleporter (solved)
Posted: Thu Jan 01, 2009 3:03 pm
by Fiodis
How do you properly set up the teleporter region/node? I know there's a tutorial, and I've followed it; but my teleporter refuses to work. What layer do you have to add the teleport region and node to? And in the tutorial it says to rename the node to "teleporter node" or something like that. Does that mean rename the path or the node itself? If it's the node, how do you rename a node? And what shape does the teleporter region have to be?
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 3:51 pm
by RepSharpshooter
Make a region, doesn't matter which layer it's in, or it's shape. But you do want to name it exactly what the tutorial says. You also need to make the region type be the region's name or else it won't work. Also make sure you have ActivateRegion("name") somewhere.
You rename the entire path teleport node or whatever the tutorial calls for (but it's a path with only 1 node).
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 4:23 pm
by Fiodis
I copied and pasted everything directly from the tutorial - names and scripts.b Didn't work.
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 5:58 pm
by RepSharpshooter
Then it's impossible to debug unless you check it over again. You can't expect anyone to help if you don't give anything but "it didn't work."
RepSharpshooter wrote:You also need to make the region type be the region's name or else it won't work
especially check that.
Also put
Code: Select all
print("Hey I made it to the <insert name here> function")
in everywhere to see what the lua is doing. Make sure it's triggering an on enter region event
then make sure it's calling the move entity to node function
You can see the printed text in the modtools log.
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 6:33 pm
by Fiodis
You can't expect anyone to help if you don't give anything but "it didn't work."
Sorry about that.
Here's the mungelog, I can't believe I forgot to use the debug tool. I was testing in normal fullscreen game mode. It does mention something, but I can't make sense of it.
The first two severity 3's are unrelated, I just included them to show the "Hey I made it to the OnEnterRegion function" line in relation to other errors. Under it is the one that I'm confused about. I do have custom teams, but they work. So why does the map not support them? And what award settings are they talking about?
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 7:34 pm
by RepSharpshooter
Did you put the "hey I made it to on enter region" INSIDE of the function? or before it?
Because with
Code: Select all
Message Severity: 2
.\Source\ActiveRegion.cpp(186)
Region "TeleportRegion" not found
It does not make sense that the on enter region would even work.
Did you verify that the region is in ZE in a layer that is being loaded (base layer or the mode's layer i.e. conquest).
And PLEASE answer me, did you set the region's name AND TYPE as: TeleportRegion ?
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 7:45 pm
by Fiodis
And PLEASE answer me, did you set the region's name AND TYPE as: TeleportRegion ?
Yes.
And the upper section of my LUA:
EDIT - I'm so sorry. I don't know how I could've missed it. I was watching out for just this sort of thing, and it got me. I'm sorry. Looking at my own ZE pic, I see it now.
The region in the LUA is TeleportRegion. The region in ZE, however, is TeleporterRegion. Ditto for the path. I can't believe that slipped past me.
I'll fix it and try it out. Thanks for everything, Rep. And sorry about that.
EDIT 2 - Wait! It wasn't my fault. I looked back through the tutorial, and it tells you to name it "TeleporterRegion" but the code it gives you mentions "TeleportRegion". That's why I messed up while following the tutorial exactly; the tutorial was slightly faulty. Someone ought to fix that.
The tutorial I looked at.
Re: Questions about a teleporter
Posted: Thu Jan 01, 2009 8:22 pm
by RepSharpshooter
Ah, always good to make sure names are the same

(oh, and no need for red and blue text [the rules say no stylized text])
Tutorial edited as well.