Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sit Teleport between Sims

Jamie Marlin
Ought to be working....
Join date: 13 May 2005
Posts: 43
03-06-2006 11:14
Hello all-

I am trying to build a sit teleporter that can operate between sims and, of course, I am having problems. I have run into two issues. First of all, llUnSit() seems to operate incorrectly between sims, causing the avatar to be stuck in a sit state on arrival until they either sit down and then stand or relog. Following the suggestions from this thread, I removed the delay between sitting and unsitting, which seemed to help some (though I still get stuck on occasion).

This led me to the second issue. For some reason, teleports between sims seem to be less accurate than teleports within the same sim. Using the same set of destination coordinates, I arrive spot-on when teleporting within the sim, but miss by several meters when teleporting from the next sim over. Additionally (though I am having a hard time proving this) the error seems to be mostly in the z axis. I don't think this a precision error - I calculated the sit target offset using standard vector math:

CODE

vector GetPositionOffset( vector currentDest)
{
return ( currentDest - (llGetRegionCorner() + llGetPos()) );
}


So... has anybody else run into this bug or found a solution since last August? Any suggestions? (other than wait for llTeleport() !)

Thanks!
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
03-06-2006 11:45
Wait fo-- Oh.. No.. :(
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
03-06-2006 11:46
On a serious note, I think its been experimented a lot with in the past (with sit teleports anyway).

I know I've tried it, I think the general thought is its not gonna happen :(
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-06-2006 13:28
I don't know about teleporting between sims, but I did set up a sit teleport that let me take a snapshot from one sim to another across the void between them, by sitting at the destination location and then teleporting from the sit point so that my client was able to render the target before the server told it "hey, you can't really see these objects any more".

That was cool.

I seem to recall that I have had some luck with cross-sim sit teleports when the teleporter was within the 10 meter "gray area" of the origin sim. But it's been a while...
Jamie Marlin
Ought to be working....
Join date: 13 May 2005
Posts: 43
Grey area...
03-06-2006 14:09
I have made an attempt at testing the grey area. I have two 'out of sim' targets set up... one 2m from the border and one 30m. ( It is a diagonal border, btw... that shouldn't make a difference, but who knows?) So far they both seem to be performing equally. The unsit works some of the time. Adding an 0.5 second sleep and unsitting a second time seems to have improved the performance marginally. On the other hand, putting an 0.5 second pause BEFORE the first unsit guarantees that you will be locked into sit position when you arrive, but seems to solve the accuracy problem.

Isn't LSL lovely!

(really! it is the wierd and quirky nature of scripting in Second Life that makes it interesting.)