Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Undocumented Changes to llMapDestination in 1.9

Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
03-18-2006 21:18
Apparently, there was an undocumented change to llMapDestination. Previously, you could put your current sim name and use the result of a dataserver event on a landmark and bring up the landmark destination on the map.

Now this only works if you are in the same sim as the landmark. If the vector position is beyond the current sim, the map destination will be set within the sim. This makes llMapDestination mostly useless, and llRequestInventoryData almost completely useless.

To see a demonstration, make a HUD attachement with the script below from the wiki. Drop a landmark into it, the map will come up with your current sim and a spot within it highlighted.

(If you happen to have a copy of my Landmark Pal, you can try that too. It's also broken.)

Here are the questions:
  1. Was this change intentional?
  2. If so, are you going to give us a way to obtain the data from a landmark that is useable with llMapDestination, since llRequestInventoryData is now useless for this?
  3. If not, is it a known bug? (I have reported it)



CODE
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);
}
changed(integer a)
{
if(a & (CHANGED_INVENTORY | CHANGED_ALLOWED_DROP))
if(llGetInventoryNumber(INVENTORY_LANDMARK))
request = llRequestInventoryData(name = llGetInventoryName(INVENTORY_LANDMARK,0));
}
}
_____________________
imakehuddles.com/wordpress/
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
03-19-2006 00:01
Fortunately for us I just happen to have a Landmark Pal to repro this easily! I experienced exactly the problem you describe.

Thanx for already sending a bug report, looks like as Jillian Callahan posted earlier, that's not the only thing amiss with llMapDestination.

I'll also send a bug report because what you mention isn't a known issue yet--appreciate the headsup! It will be scoped out.
_____________________