Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
05-12-2005 00:57
Is there any way to copy a script / sell an object with a script without it resetting?
_____________________
Hiro Pendragon ------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio
Visit my SL blog: http://secondtense.blogspot.com
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
05-12-2005 01:20
From: Hiro Pendragon Is there any way to copy a script / sell an object with a script without it resetting? I dunno bout copying a script, but I didnt actually think scripts reset when sold? I've had to actually combat this by making them reset when rezzed by a new owner, because they've retained old information.
|
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
05-12-2005 01:37
From: Kris Ritter I dunno bout copying a script, but I didnt actually think scripts reset when sold? I've had to actually combat this by making them reset when rezzed by a new owner, because they've retained old information. Yes, you're right about that - I've put in owner = llGetOwner(); in on_rez on a few scripts. I am in my last verification stages before release of PoseCubes and trying to cover all bases... I thought about how scripts reset when you shift-drag-copy an object in world and panicked a bit... perhaps that is simply a buggy behavior (as it also seems to hose scripts occaisionally)
_____________________
Hiro Pendragon ------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio
Visit my SL blog: http://secondtense.blogspot.com
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-12-2005 06:34
if you don't need to have too much data stored perminantly, only say 8bytes of info, you could store it on a prim face in the texture key. Did you know you will get an invisible texture face if you set the hollow to be less then 0.005 via llSetPrimitiveParams?
_____________________
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
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
05-12-2005 07:40
From: Strife Onizuka if you don't need to have too much data stored perminantly, only say 8bytes of info, you could store it on a prim face in the texture key. Did you know you will get an invisible texture face if you set the hollow to be less then 0.005 via llSetPrimitiveParams? No, I didnt. But thankyou!
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
05-12-2005 12:44
From: Hiro Pendragon I thought about how scripts reset when you shift-drag-copy an object in world and panicked a bit... perhaps that is simply a buggy behavior (as it also seems to hose scripts occaisionally) Perhaps a touch-activated listener dialog to "Copy Params from this (Working) Object?" As Strife mentioned, you can also use a prim's face settings to define behavior. You could also "embed" parameters in several other features of the primitive itself - size, scale, offset, color.... really taking the features of the primitive to town. If you don't mind the extra data, you could also add "control" prims to the works, along with animation keys stored as prim textures (I think that would work - though it may just rez the "texture does not exist" key). Other, more conventional means would be: - A short sensor in the on_rez, linking behavior, and link messages - A call to an "authentication" server by the object - A common "syntax" for you to just say the parameters into the object
_____________________
---
|
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
05-12-2005 23:27
It's moot. I tested it yesterday and the state of the script is preserved on sale. Thank you for the responses!
_____________________
Hiro Pendragon ------------------ http://www.involve3d.com - Involve - Metaverse / Emerging Media Studio
Visit my SL blog: http://secondtense.blogspot.com
|