Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Unexpected behaviour of attached objects' keys

Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
09-29-2008 19:47
I had always thought, since I had read it in the wiki at http://www.lslwiki.net/lslwiki/wakka.php?wakka=key that the key of an attached object changes each time you tp. Someone questioned this the other day, and we have both tested it, and they don't seem to change, much to my surprise. Well, llOwnerSay((string)llGetKey()); returned the same result before and after teleporting between two sims, even after resetting the script.

Is this a recent change, does anyone know, and does it have any wider implications? Or did I test it the wrong way?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-29-2008 20:00
Attachment key changes on teleport went away a couple of years ago. All the LSL wikis have outdated info in them, and hardly anything in the way of official specs ever get released, so if what you see first hand doesn't match what you read, go with what you see (and expect it to change without notice).
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-29-2008 20:06
And before you ask..... the key doesn't change when you attach/detach either.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-29-2008 21:49
However, it CAN change.. if you relog.

It's an old trick, when moving a networked, non-web-enabled server object, to right click it and attach it to some bodypart, Then teleport to your new location, and select "drop".

It's really convenient when you're wearing 30 server objects at once. Your avatar looks very funny, a shifting pile of boxes.

It kinda stops being funny when you crash during the teleport.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-30-2008 00:05
From: Jesse Barnett
And before you ask..... the key doesn't change when you attach/detach either.

Not when you attach from in-world and then drop back in-world, but it DOES change if you detach it (to inventory) then reattach it from inventory again. Basically, a new key is generated at the same times an 'on_rez' event is generated, not when the 'attach' event is generated.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
09-30-2008 05:37
From: Hewee Zetkin
Not when you attach from in-world and then drop back in-world, but it DOES change if you detach it (to inventory) then reattach it from inventory again. Basically, a new key is generated at the same times an 'on_rez' event is generated, not when the 'attach' event is generated.
I realised that, which is one reason I was intrigued, since it seems to mean that inter-sim teleports don't work the way I thought they did. I had assumed, wrongly, that the different servers just kept a record of what you had attached and re-created it on arrival at your destination (thus partly explaining why my hair and shoes sometimes attached themselves to my backside on arrival, I suppose). But clearly I was mistaken, as so frequently I am.