Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Several copy protection thoughts

Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
09-20-2004 06:07
I like to make my attachment items copyable / no transfer, for a number of reasons. Because of the obvious copy protection issue with people being able to copy scripts inside, I've looked at some simple approaches to combat it.

Essentially all rely on a quick check done at the on_rez() state.

if( "yadda" != llGetObjectName())
llRemoveInventory(llGetScriptName());

Simple. You hard code the name of the object ("yadda";) and so if someone tries to place it in another object, it removes itself.
Obvious variations:

string nameOfObject = "yadda";

if( nameOfObject != llGetObjectName())
llRemoveInventory(llGetScriptName());

or

string nameOfObject = "yadda";

if( nameOfObject != llGetObjectName())
{
llSay(0,"Copy protected script message goes here";);
llRemoveInventory(llGetScriptName());
}

or perhaps you have coded something more clever, instead of deleting the script, doing something else, like:
- deleting the object (if you're really mean)
- hard coding your key and IMing you the owner's name so that you can see who is pirating your stuff
- push the person into orbit
- hard code the key to some voice on wav file telling the thief ... whatever ;)
- other stuff which I'm sure you could have fun thinking of.

Pretty obvious, but as not many people sell copy / no transfer items, I'm wagering it's likely no one has posted this.

[edit-moved from the script library]
_____________________
Hiro Pendragon
------------------
http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio

Visit my SL blog: http://secondtense.blogspot.com
Steve Patel
Registered User
Join date: 4 May 2004
Posts: 39
09-21-2004 16:31
You could also hard code your Avatar key and compare with llGetCreator()
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
09-21-2004 23:42
I just make my scripts copy/mod/transfer. Solves the problem quite nicely. :D
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
09-22-2004 03:07
Call me an ass, but I cant see what your problem is. If you sell things copy/nomod/notrans then they cant resell them or see the contents of scripts.
splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
09-22-2004 08:19
its the using the script in another object s/he wants to stop.