Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pushing scripts to linked children

WindyWeather Vanalten
Registered User
Join date: 27 Nov 2006
Posts: 53
01-06-2007 12:31
I'd like to push scripts to linked children of a script and then run them.

First we find that llGiveInventory gives the script, but it is not running.

And we find
llRemoteLoadScriptPin(key target, string name, integer pin, integer running, integer start_param)
and
llSetRemoteScriptAccessPin(integer pin)

but there would seem to be a chicken and egg thing here. The script won't run when given. And if the only way to set the PIN is from a script IN THE OBJECT. So how do you give a new object a script and start it running... :confused:

My house if full of scripts that I used to link it all together. And I don't want to have to pull some thing like DEREZ the entire house and RE-REZ the whole thing to get the scripts started...

What am I missing?? :confused:

Thanks,
wwv
Foo Spark
alias Bathsheba Dorn
Join date: 8 Nov 2006
Posts: 110
01-06-2007 15:30
From: WindyWeather Vanalten
I'd like to push scripts to linked children of a script and then run them.

As I understand it this is not possible at present. It would open some security cans o'worms if there were a way to drop a script into a prim from outside and make it run. It's not that it would necessarily be impossible, as far as I can see, but it would require some thought to make it safe.
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
01-07-2007 03:40
From: WindyWeather Vanalten
So how do you give a new object a script and start it running...

You have a small script in that object which does little if anything other than define it's PIN with llSetRemoteScriptAccessPin, then you can have any other object give it and run a script using llRemoteLoadScriptPin. That's all there is to it.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
01-07-2007 09:45
If this is something you are trying to do with an object of your own, and not a product you're trying to sell (ie, basically a customization, or a one-off deal), you can use llGiveInventory. However, once you give the script to all the child prims, you have to select the object, and then Tools->Recompile All Scripts in Selection. This will download every copy of the script, compile it, and reupload it back in compiled form. If you do this with a lot of prims, it will take quite a while. Also, if SL is lagging AT ALL, you will find that some of the scripts won't compile, so you will have to select each individiual prim and do the recompile. You may even need to open the prim contents of each and every one to force an update before you can recompile it.

Basically, you CAN do it, and it CAN be automated to some extent, but it will take a bit of time, and it could become very annoying if the buggy/laggy behavior kicks in.