Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

restricting rights in delivered scripts

Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
03-12-2009 05:36
Hi, i wonder if i can deliver a script to customer, but retain the rights/control to the scripts.
I would like to only have the script in the one product that i deliver, and that the scripts should be locked for reading.
Eg
The customer should not be able to
* open and read the scripts
* move the script from the one object to another of his own objects

What are the settings for that?

I would also like to know if it is posible to get an im or email if the object in question is being duplicated

tyia.
Ab
_____________________
BR ab
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
03-12-2009 06:44
From: Abraxes Binder
The customer should not be able to
* open and read the scripts
* move the script from the one object to another of his own objects
To prevent the next owner from reading, set next owner: No Modify.
To prevent the next owner from copying, set next owner: No Copy.
From: Abraxes Binder

What are the settings for that?
In the script's properties you set next owner's permissions.
You can open the properties by right clicking the script in the inventory and pick 'Properties' from the menu
_____________________
From Studio Dora
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-12-2009 08:50
You cannot, however, keep them from taking the script out of the object. You could have some logic in the script that turns it off or deletes it on reset if you aren't the owner and/or the object it is in doesn't look right though.
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
03-12-2009 10:21
Also, you can make it llInstantMessage you and then llDie if it changes owners or have it check against llGetObjectName on a changed event. Shouldn't use llDie if you use llGetObjectName though, just have it llInstantMessage you, because often SL won't get the object name in time and the return from llGetObjectName won't be correct.
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
Thanks!
03-13-2009 02:48
Thank you to you all 3 for taking time to explain this. I will look into the changeOwner thing and see if i can use that.
Thanks!
BR
ab
_____________________
BR ab
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-13-2009 11:58
assuming the object the script is placed in is no-mod
CODE

isAuthorised(){
if ((llGetCreator() != "[your key here]") || (llGetObjectPermMask( 1 ) & PERM_MODIFY)){
llRemoveInventory( llGetScriptName() );
}
}

call from any on_rez event

then even if they remove it from your no-mod object, they can't place it in another object (because it'd have to be created by you AND no mod) caveat is if they have a mod item of yours, and place the script in it on no script land, then pass it with no-mod for next owner then they can get away with it.

but you could similarly check for a name of a prim, or some hidden variable. in modifiable prims, but there's a possibility they could discover the hidden variable.
_____________________
|
| . "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...
| -
Abraxes Binder
Registered User
Join date: 23 May 2008
Posts: 205
Clever
03-14-2009 08:38
Void, thats a clever way.
Thank you for sharing!
_____________________
BR ab
Paladin Pinion
The other one of 10
Join date: 3 Aug 2007
Posts: 191
03-14-2009 10:56
From: Void Singer
assuming the object the script is placed in is no-mod
CODE

if ((llGetCreator() != "[your key here]")


I saw somewhere that an avatar's key can change, though I've never seen it happen with my own. Is that true?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
03-14-2009 11:11
From: Paladin Pinion
I saw somewhere that an avatar's key can change, though I've never seen it happen with my own. Is that true?

That would be disastrous if it happened, everything about your avatar is tied to that and you would lose all your stuff. A handful of avatars have had their names changed over the years and even they have the same keys.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-14-2009 12:20
From: Paladin Pinion
I saw somewhere that an avatar's key can change, though I've never seen it happen with my own. Is that true?

no key changes in avatars. you might be thinking about the IM to email key (which doesn't match the av's and does change).

while external queries as to creator of a prim can sometimes be slow (returning null key or hippos depending on where it's being seen) I've never heard of it happening with get creator, so you should be safe
_____________________
|
| . "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...
| -
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-15-2009 12:22
Yeah. It's been interesting to note many changes to Linden account names, though I won't name names. Noticed through maintenance of a private key-name database. :)
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
03-15-2009 12:42
Personally, I had mine changed. It took like, a matter of minutes..so it's done in an underlying properties layer to which non-lindens don't have access, which isn't surprising. Still, my key is the same as it was the day I created my account, that's one of the first things I checked lol.