Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple long-range teleports

Rihanna Laasonen
Registered User
Join date: 22 Nov 2006
Posts: 287
03-30-2008 14:41
I need a fairly simple teleporter, but the numbers and variety (and prices!) for teleporters on SLX leave me boggled and aghast. I don't mind paying for something that does what I need well, but I ain't paying hundreds of lindens for something that I'm going to have to spend an hour poring over to figure out which parts do what I want and which parts are useless gimmicky crap. :-) _Please_ tell me there's a simple way to script this myself or someone else's non-gimmicky script I can use.

I'm pretty sure I need setPos or warPos, but I don't know anything about them other than their names. I can usually get the gist of and adapt scripts to my needs if I have samples I can look at, but I wouldn't know how to start from scratch.

I don't want to use the map or a multiple-destination menu; I'm just going back and forth between two destinations in the same sim. However, I do need it to be able to go beyond the 300-m range; 1024 would be great, but 768 would do. I don't need any access restrictions, I don't want it to talk in anyway, and I don't want any futzy-wutzy light or sound effects. I just want it to move the avatar to the coordinates I tell it to, that's all. I can't believe this has been so hard to find. *g*

Someone please save my sanity?
Madhu Maruti
aka Carter Denja
Join date: 6 Dec 2007
Posts: 749
03-30-2008 15:05
Rihanna, I have a nice low-frills long-range teleporter (768m I think) that I got on SLX. It comes in a little pyramid-shaped prim but the script can be moved into any prim you like. It configures via a notecard - you just enter the coordinates and you're off. I will contact you in-world about it because at the moment I can't remember what it's called.
_____________________

Visit Madhu's Cafe - relax with your friends in our lush gardens, dance with someone special, enjoy the sounds of classic Bollywood and Monday Night World Music parties - http://slurl.com/secondlife/Milyang/39/16/701/
Rihanna Laasonen
Registered User
Join date: 22 Nov 2006
Posts: 287
03-30-2008 15:26
Thanks! Now, if we could just actually get in world to talk about it... *g*

I do have a pyramid that I got from SLX, called "Long Range Group Teleporter" from Old Newman, which does the job and did let me delete most of the unneeded scripting -- but the primary script is unmoddable so I can't delete the rest.
Madhu Maruti
aka Carter Denja
Join date: 6 Dec 2007
Posts: 749
03-30-2008 15:55
Oooh - that's the one I was talking about >< sorry!
_____________________

Visit Madhu's Cafe - relax with your friends in our lush gardens, dance with someone special, enjoy the sounds of classic Bollywood and Monday Night World Music parties - http://slurl.com/secondlife/Milyang/39/16/701/
Rihanna Laasonen
Registered User
Join date: 22 Nov 2006
Posts: 287
03-30-2008 20:49
Nothing to be sorry about, Madhu! As I mentioned in-world, that one does indeed do the job (and was very cheap, for anyone else reading who wants something easy to use). I just don't like not being able to turn off the talking or see what its innards are doing.

Someone was kind enough to send me a sample script to work with, so I have a rough draft now based on PTP Teleporter (attached below). But I have a lot of questions about the code from that script.

- What's the point of the pauses in the changed block?

- What's the point of the first IF statement? Why do we need two IFs?

- Why is warpPos using a new vector name, destpos, instead of the one already defined (as ArrivalPoint in my version, as gTargetPos in PTP Teleporter)? Why does it use (llVecDist(destpos, llGetPos() instead of (llVecDist(ArrivalPoint, StartingPoint)? Wouldn't the latter be simpler? StartingPoint isn't accurately set yet, but it would be by the time the warpPos gets used, right?

- The jumps bit looks like it's saying we can only move things 10 m at a time; is that really what it's doing? Why are we adding 1 at the end?

- Why would having more than 100 jumps be a problem?

- I get that jumps is the needed jumps and count is the completed jumps, and that it's running while count < jumps. But what's with the count << 1?

And that's enough for now. Probably more after I've slept and when the cat isn't trying to interrupt. :-)
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
03-30-2008 21:07
I'm hungry, so I'm not going to type up answers to your questions :) But if I were to, I would actually be just passing on what I learned in these two places:

1. the original Warppos entry in the LSL wiki:

http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryWarpPos

2. This thread, which is where the "magic" optimized version that your script has in it originated, by Strife, post #29 in the thread.

/54/8d/109523/1.html

Note the mention in the wiki that Warppos won't work in Havok4 ... I haven't looked into that yet.

p.s. I also wrote a teleport script that uses sittarget for short TPs, and warppos for longer ones. But it too has stuff that you prolly don't want.
.
Rihanna Laasonen
Registered User
Join date: 22 Nov 2006
Posts: 287
03-30-2008 21:38
Thanks! Half my problem is that I don't know where to easily find this stuff and don't have the patience to spend hours wading through old search results that may or may not be relevant to my specific problem and may or may not still be accurate if they were relevant. :-)
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
03-30-2008 21:41
From: Rihanna Laasonen

I don't want to use the map or a multiple-destination menu; I'm just going back and forth between two destinations in the same sim. However, I do need it to be able to go beyond the 300-m range; 1024 would be great, but 768 would do. I don't need any access restrictions, I don't want it to talk in anyway, and I don't want any futzy-wutzy light or sound effects. I just want it to move the avatar to the coordinates I tell it to, that's all. I can't believe this has been so hard to find. *g*

Someone please save my sanity?

Is it the same two destinations all the time? Or do the two particular destinations change frequently?
Rihanna Laasonen
Registered User
Join date: 22 Nov 2006
Posts: 287
03-31-2008 08:02
From: Kidd Krasner
Is it the same two destinations all the time? Or do the two particular destinations change frequently?


I only need the two destinations, or rather, two instances of the script with different destinations. I'm perfectly happy to go in and change the arrival coordinates if I ever decide to change the locations -- it takes what? two seconds? four if we're laggy?

I looked at those links, but they just looked like more gobbledygook to me. Have to try again when I have several more hours to pore over them and look up all the technical vocabulary.

If Havok4 breaks warpPos, then people must be using something else; I can't imagine people would have been so quiet and happy in the early adopter sims if suddenly they couldn't get to their skyboxes except by sorting through their landmarks (and hoping the asset server hasn't eaten them). So what are they using instead? The wiki didn't even have a page on setPos.