Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetInventoryKey

Moopf Murray
Moopfmerising
Join date: 7 Jan 2004
Posts: 2,448
07-06-2005 13:12
Has anybody else noticed weirdness with llGetInventoryKey()? Basically if you have an object in a prim's contents that in turn contains something that you youself have transfer and copy permissions on but not modify perms (for instance a script or an anim), llGetInventoryKey seems to return NULL_KEY for it, so in effect the script is saying it doesn't exist in its contents.

Am I going crazy, or is it meant to work like that?
_____________________
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
07-06-2005 13:17
Hmm, I haven't tested it myself, but it sounds like it might be another change like that done to llGetTexture -- it won't return a key if you don't have permissions on the texture. Did you just notice this now?
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Moopf Murray
Moopfmerising
Join date: 7 Jan 2004
Posts: 2,448
07-06-2005 13:29
From: Catherine Omega
Hmm, I haven't tested it myself, but it sounds like it might be another change like that done to llGetTexture -- it won't return a key if you don't have permissions on the texture. Did you just notice this now?


No, I think this one was here before 1.6.8 - I had an example that could probably be explained by this a few days ago, and this second one has made me delve deeper, hence the post.
_____________________
Bosozoku Kato
insurrectionist midget
Join date: 16 Jun 2003
Posts: 452
07-06-2005 14:35
I recall reading recently about not getting keys for inventory items if you don't have mod permissions. Forget where I read it but pretty sure I did. So, I'll assume it's intended behavior (protects textures).

edit (yet to drink coffee)...
Just re-read, I see, you have an object in the inventory with an object IN it that's no-mod, and it's blocking the key.. that seems odd.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
07-06-2005 15:18
llGetInventoryKey only returns the key of inventory items that are full perm.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
07-06-2005 15:50
According to the edit log at the wiki, this behavior has been the case since at least February 17th, 2004. Shows what we know, I guess. :)
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
07-06-2005 16:05
They nailed down all the obvious permission holes. Otherwise you would be able to steal images and sounds UUID's.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey