Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

For those that uses the Offline Importer (warpPos issue)

Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
03-20-2007 21:17
For those like me that uses the offline importer created by Thraxis, my business partner Saii Hallard has a small fix (similar concept from the Sl blog) that casues anything more than 10 to 15m away from the importer to not rez correctly. Simply replace the function wPosLoop with this one.

// Workaround for the warpPos 'fix'
wPosLoop( vector gvDest ) // Saii Hallard, 2007/03/21
{
vector gvCurrPos = llGetPos();
while (gvCurrPos != gvDest)
{
llSetPos(gvDest);
}
}

We hope that helps everyone using the importer

Mobius and on behalf of Saii
_____________________
Project Mobius - Web/Graphic Design and Tech Reviews

Please check out my items @

Blog about games, gadgets & technologies @
Mobius Hashimoto
Registered User
Join date: 18 Aug 2006
Posts: 146
03-21-2007 04:25
correction obtained from slexchange:

wPosLoop(vector gvDest)
{
do llSetPos(gvDest);
while (llGetPos() != gvDest);
}
_____________________
Project Mobius - Web/Graphic Design and Tech Reviews

Please check out my items @

Blog about games, gadgets & technologies @
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
03-21-2007 05:21
This code may end up in an endless loop because it does not take into account minor object drift.

See how it should be done by looking at the WarpPos script in the scripting library.

Use llVectDist to get the distance to the desired target position and compare it to a very small number like 0.01

Thus, if you get close but not exactly on the spot this will bail out of the loop instead of looping over and over again.
Zuv Voom
Registered User
Join date: 26 Feb 2007
Posts: 1
03-22-2007 05:12
I'am totaly no idea how to script, where can I get in SL, ready tu use 15m importer?