llGetObjectPermMask
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 10:39
I am given a prim with these Transfer permissions: Transfer permissions: Base: TRUE Owner: TRUE Group: FALSE Everyone: FALSE Next: TRUE In the inventory I uncheck 'Resell/Give away' and rezz the prim Transfer permissions: Base: FALSE Owner: FALSE Group: FALSE Everyone: FALSE Next: FALSE I am expecting the 'Next flag' to become FALSE and 'Base' and 'Owner' to stay TRUE. That is not what is happening  What goes on? Anybody know? For completeness I include the script I used: string getbit( integer mask ) { if (llGetObjectPermMask(mask) & PERM_TRANSFER) return "TRUE"; else return "FALSE"; }
dostuff() { string s = "Transfer permissions:"; s += "\nBase: "+getbit( MASK_BASE ); s += "\nOwner: "+getbit( MASK_OWNER ); s += "\nGroup: "+getbit( MASK_GROUP ); s += "\nEveryone: "+getbit( MASK_EVERYONE ); s += "\nNext: "+getbit( MASK_NEXT ); llOwnerSay( s ); }
default { state_entry() { llOwnerSay("Permissions shown when object is rezzed and again when touched"); }
on_rez(integer param) { dostuff(); }
touch_end(integer n) { dostuff(); } }
_____________________
From Studio Dora
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-10-2009 13:32
hmmm that certainly doesn't look right, base and owner shouldn't be changing with next. it shouldn't make a difference, but mono or LSO? reproducible in other sims? sim version? and is it working right despite the screwy return values (or has it become corrupt and somehow those permissions ARE correct now for that object)?
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 15:11
Same thing in mono and LSO Same thing on 3 different simulators Same thing on Sim version 1.25.6.113484 and 1.26.1.116927 It is working correct in the sense that I can transfer the prim even when Owner Transfer permission is FALSE (must be right since I were given the prim with transfer permission) So every thing is jolly good except I can't tell if the owner has Transfer permission when she has turned off next owners Transfer permission 
_____________________
From Studio Dora
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-10-2009 15:18
Well, it doesn't do that for me. Are you sure you have no components anywhere else in the object with odd permissions?
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-10-2009 15:25
I'll also assume you didn't change anything else like a texture... that is very odd.
does the same script in a newly rezzed cube do the same thing, if you change it inwolrd with edit?
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 15:27
From: Ordinal Malaprop Well, it doesn't do that for me. Are you sure you have no components anywhere else in the object with odd permissions? The prim contains the script with full permissions, that's all. One thing I haven't said; the prim is NO Modif And remember it is given to me with those permissions, it is not a prim I made(my alt did)
_____________________
From Studio Dora
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-10-2009 15:31
Can you actually transfer the prim, after rezzing it and taking it back?
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 15:38
From: Void Singer I'll also assume you didn't change anything else like a texture... that is very odd. The texture is cleared, color is the same all over and none of it are changed along the way From: Void Singer does the same script in a newly rezzed cube do the same thing, if you change it inwolrd with edit? If I create a new prim it works fine, no problem! and it doesn't matter if I toggle 'Resell/Give away' in edit mode or on the none rezzed prim in inventory
_____________________
From Studio Dora
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 15:45
From: Ordinal Malaprop Can you actually transfer the prim, after rezzing it and taking it back? I can give or transfer it back no matter what way I check 'Resell/Give away' and the creator will get it
_____________________
From Studio Dora
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-10-2009 15:57
Have you tried removing all no-transfer items from all prims in the object? An old "bug" that people often run into that is not actually a bug but expected behavior is that the permissions on an object are dynamically affected by the permissions on its prims' contents BUT ONLY WHEN THE OBJECT IS REZZED. Thus it is possible to rez an object, take it back into inventory (even without changing ANYTHING) and get an inventory item with different permissions. The same is true of modify permissions, but you'll find the object remains modifiable; it is just the visible state of the inventory item that changes to reflect whether all contents have modify permissions.
This allows you to package up an object with no-copy or no-transfer contents and make the object itself copyable and/or transferable, but only (to a degree) if no one has messed with the contents or properties. It is also helpful for resellers, as the content creator can setup all the permissions correctly, but enable copy and transfer on the final inventory item once taken, give the reseller directions on how to simply change the permissions on the object itself, and the reseller can then redistribute without having to open up the object and modify permissions on items in every prim of the object.
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-10-2009 16:30
Thank you Hewee for taking the time. The object in question is one single prim with nothing in it but the script to display the transfer permissions. My alt made the script full perm, Created a prim, Checked next owner permissions: No mod, copy, transfer (on the none rezzed prim in inventory). Then the prim was given to me and I found what I described earlier. My alt really did what was possible to keep it simple 
_____________________
From Studio Dora
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
08-06-2009 07:38
From: Dora Gustafson Same thing on Sim version 1.25.6.113484 and 1.26.1.116927
I tested the 'llGetObjectPermMask' function again, this time on Sim Version 1.27.1.128449 Now it works as expected, so the problem has been fixed somewhere between 1.26.1 and 1.27.1 Jolly good 
_____________________
From Studio Dora
|