Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object Key Changes

Lillani Lowell
Registered User
Join date: 5 Apr 2006
Posts: 171
08-24-2006 01:59
Under what conditions does an object's key change? I know an object's key will change when you rez an item from inventory, but let's say for instance, I rez a sphere on the ground and I never take it back into inventory, and it stays in that one location.

Will the key of that item change if the sim crashes/restarts?

Will it always stay the same until it is taken back into inventory and dropped again?
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
08-24-2006 02:10
As far as I understand it, and I have a few networky type things in world that require their key to remain the same ( SLX boxes etc )

The key ONLY changes when you re-rez from inventory ( or rez from contents ) - It doesnt change after a sim restart or crash.

Not sure about a roll back (never had one) - but would assume that because the state of the sim was being put back to a previous time then the key would be the same as it was at that time.
_____________________
Maker of quality Gadgets
Caligari Designs Store
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-24-2006 12:05
Right. Notecards and scripts change their key any time their contents are changed. Objects never change their keys. COPIES get new keys. So an object for which you do not have copy permissions should never change keys. Once rezzed, an object will keep the same key until it is destroyed. When you rez it directly from your inventory (with copy permissions) you are actually placing a copy, so the rezzed object will get a new key (but the script state is copied over too, so all script variables, states, listens, timers, etc., should be the same as when you took the original into your inventory). I THINK you might be able to wear an object and then, "Drop," it and have the object itself (not a copy) land in the world. It might be worth an experiment.
Dnel DaSilva
Master Xessorizer
Join date: 22 May 2005
Posts: 781
08-24-2006 12:19
From: Hewee Zetkin
I THINK you might be able to wear an object and then, "Drop," it and have the object itself (not a copy) land in the world. It might be worth an experiment.


If you wear an item then drop it the key does not change. Anyone who has moved a network server this way can attest to that ;)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-24-2006 13:08
From: Dnel DaSilva
If you wear an item then drop it the key does not change. Anyone who has moved a network server this way can attest to that ;)

Not in RL I hope. :eek: ;)
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
08-24-2006 15:12
From: Hewee Zetkin
Objects never change their keys. COPIES get new keys. So an object for which you do not have copy permissions should never change keys.
No copy items taken into inventory, then dropped back inworld will get a new key (just tested inworld to confirm). Right-click > Wear (or Attach > [some point]), then Dropping again will not give a new key as it's never derezzed.

As to the OPs question, as long as an object remains rezzed inworld, and you never Right-click > Take, it will keep its key, even through sim crashes/restarts/etc. Only way an object will get a new key is to drag from your inventory (or an objects contects) to the world.
_____________________
Lillani Lowell
Registered User
Join date: 5 Apr 2006
Posts: 171
08-24-2006 15:36
Thanks a bunch, everyone. :)
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
08-24-2006 18:27
From: Kayla Stonecutter
No copy items taken into inventory, then dropped back inworld will get a new key (just tested inworld to confirm).
:eek: This is very interesting.
_____________________
:) Seagel Neville :)