• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: SVC-4313
Type: Bug Bug
Status: Open Open
Priority: Low Low
Assignee: Unassigned
Reporter: Crap Mariner
Votes: 3
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Unusual behavior of llGetRegionCorner and llGetPos

Created: 28/May/09 05:36 PM   Updated: 28/May/09 05:36 PM
Component/s: Scripts
Affects Version/s: 1.26 Server
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Second Life 1.22.11 (113941) Mar 6 2009 12:50:02 (Second Life Release)
Release Notes

You are at 241795.3, 278897.1, 52.3 in Edloe located at sim3461.agni.lindenlab.com (216.82.21.196:13000)
Second Life Server 1.26.4.120562
Release Notes

CPU: Intel Pentium III/Pentium III Xeon (0.25 micron process) with external L2 cache (2260 MHz)
Memory: 4090 MB
OS Version: Microsoft Windows Vista Service Pack 1 (Build 6001)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9800M GTS/PCI/SSE2


 Description  « Hide
I run a ferryboat that runs a set of nine islands.

The boat reports its location every 10 seconds. Here's the LSL that gets the location and then gets coordinates relative to the southwest corner of the islands cluster (Marylis is the SW corner):

vector worldlocation;
float frequency= 10.0;
float boatx;
float boaty;
integer maryliszerox= 241408;
integer maryliszeroy= 278016;
integer mapx=125;
integer mapy=134;

default
{
state_entry()

{ llSetTimerEvent(frequency); }

timer()

{ worldlocation = llGetRegionCorner() + llGetPos(); boatx= (llRound(worldlocation.x) - maryliszerox); boaty= (llRound(worldlocation.y) - maryliszeroy); llRegionSay (-101010, "X"+(string)boatx +" "+(string)boaty); }

}

This is reported through a set of chat relays back to a map, which then plots the location of the boat with a temporary prim relative to the size of the map and the corner:

The script :

float delay = 10.0;
float mapx;
float mapz;
integer listen_Channel = -101010; //change this to your channel
integer broadcast_Channel = -202020; //change this to your channel

default
{
state_entry()

{ llSetText("", <1.0,1.0,1.0>, 1); llListen(listen_Channel,"",NULL_KEY,""); }

listen(integer channel, string name, key id, string message)
{

llRegionSay(-303030, message);

if (llGetSubString(message, 0, 0) == "X")

{ mapx=(float)llGetSubString(message, 1, 10); mapz=(float)llGetSubString(message, 12, 21); mapx= mapx / 1280; mapz= mapz / 1280; mapx= 113.040 + mapx; mapz= 24.362 + mapz; llRezObject("Display Prim",<mapx,150.65,mapz>, ZERO_VECTOR, ZERO_ROTATION, 1); }

}

}

Things get odd when the boat reaches the middle of Mare Draconus sim, as demonstrated with this YouTube video:

http://www.youtube.com/watch?v=2L57Zad7biY

The incident happens about 1 minute and 50 seconds into the video. While looping around a pirate ship on Mare Draconus. The tracking map thinks the boat has leaps down to Marylis sim, jumps further south, then pops back to its actual position.

Have I discovered The Bermuda Triangle of SL?

Thanks,
-ls/cm



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.