Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Map not displaying correctly

Roj Snook
Registered User
Join date: 2 Jun 2007
Posts: 49
06-30-2007 10:16
Hi, relative newbie here having some problems with the map displaying correctly.

Basically, I've used a script from the forums here and although I can hear you all saying it should be in the scripting forum, this issue only seems to be affecting me and not others and I wonder if it could be a Mac client problem.

If I drop a landmark into the object (which is a teleporter which basically brings up the landmark in the map), others can click, see it on the map and go to it but for me it only displays the boundary of my home (where I have land). It does this no matter where I am.

I've passed the script to others and they've been able to use it no problem, but it still wont work for me when I click on it - it just shows my home sim regardless of where the bookmark is.

I'm using a Mac Intel Powerbook, using the latest and earliest clients to try and get it to work, but to no avail.

I've deleted preferences from the system and it makes no difference. I've tried an earlier client and no difference. I've rebooted several times. No difference.

I'd normally put it down to a dodgy script, but the fact that it works for others makes me wonder if its a problem with the Mac client as the others are on PC's.

The script is below, should anyone else wish to try and see if they have the same issues.

If anyone knows of anything that may be causing this, I'd be very interested to hear it!

Roj.

//Script start
key request;
string name;
string sim_name;
vector pos;

default
{
state_entry()
{
llAllowInventoryDrop(1);
if(llGetInventoryNumber(INVENTORY_LANDMARK))
{
name = llGetInventoryName(INVENTORY_LANDMARK,0);
request = llRequestInventoryData(name);
}
else
llWhisper(0,"Please drop a landmark on me";);
}
dataserver(key id, string data)
{
if(id == request)
{
pos = (vector)data;
sim_name = llGetRegionName();
llSetText("Touch to show \""+name+"\" on the map.",<1.0,1.0,1.0>,1.0);
}
}
//

touch_start(integer a)
{
if(name != "";)
llMapDestination(sim_name, pos, pos);
else
{
llWhisper(0, "No Landmarks found";);
llResetScript(); //this will cover grid crashes and upgrades for static prims
}
if(name != "";)
llMapDestination(sim_name, pos, pos);
}
changed(integer a)
{
if(a & (CHANGED_INVENTORY | CHANGED_ALLOWED_DROP))
if(llGetInventoryNumber(INVENTORY_LANDMARK))
request = llRequestInventoryData(name = llGetInventoryName(INVENTORY_LANDMARK,0));
}
}

//Script stop
Roj Snook
Registered User
Join date: 2 Jun 2007
Posts: 49
Update
07-01-2007 03:58
An update to the above issue - having been using an Intel Mac, the issue continues. However, I have got access to a PowerPC G4 mac (using motorola processor, not intel) and the script works perfectly.

So, it points to a problem with the intel client...