Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

why did you break llGetOwnerKey() ???

Chilly Charlton
Registered User
Join date: 15 Jun 2004
Posts: 483
07-22-2006 13:26
I am posting here because there was not enough room in my bug report to put the full details.

I am also posting here because I do have a question ... WHEN will it get fixed. This bug has caused me half a week of investigation!

Here is the bug report complete as I could not post it complete in the bug report tool:

---------------------------------


Steps to reproduce the bug:
Have an object A you own rez another object B. Have the rezzed oject B cross sim boundaries.

Observed results:
Call llGetOwnerKey( B ) in the original sim. It reports you as the owner ... this is correct.

Call llGetOwnerKey( B ) in the second sim (the one it crossed into) ... in the second sim it reports the owner ID as the object that rezzed it ... it repots A as the owner. This is WRONG, an object can NOT own another object. Furthermore it has taken me several days and countless hours to determine this is what broke my multi sim enabled multi player games. I have a line of code that says

if (llGetOwnerKey(id) == llGetOwner())

inside of a listen to insure it is an object I own transmitting to the object that is listening but since the object that is listening has crossed a sim boundary llGetOwnerKey() is erroneously giving the wrong id.

Expected results:

I would expect the rezzed object that crossed a sim boundary to correctly report the owner of id as the person who actually owns it!

THIS WORKED BEFORE WEDENSDAY'S UPDATE

My question is ... WHEN will this be fixed?
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
07-24-2006 13:44
Thanks for the details, Chilly. I'm not sure about this--let me check.
_____________________
Brent Linden
eXtreme Bug Hunter
Join date: 16 Feb 2005
Posts: 212
07-24-2006 17:38
I believe you are incorrectly using llGetOwnerKey. It only returns the owning agent if the agent is in the region. In my tests I was not able to reproduce an unexpected result. Please see:

http://secondlife.com/badgeo/wakka.php?wakka=llGetOwnerKey

If you need more help with this please contact Brent Linden inworld.
_____________________
The best way to predict the future is to invent it. -Alan Kay