Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to have scripts start after llGiveInventoryList

Frech Ennui
Registered User
Join date: 5 Apr 2005
Posts: 7
06-27-2006 21:00
Ok I have a script that takes and calls llGiveInventoryList for each of it's linked children. It is giving 2 scripts to each child. When I have it, I can simply use Tools|Recompile Scripts in Selection to get them running, however when someone else does with no modify permission they cannot use this method. How can I have scripts given using llGiveInventoryList start running in the child prims?? Thank you!!
Jesse Malthus
OMG HAX!
Join date: 21 Apr 2006
Posts: 649
06-27-2006 21:21
Try using llRemoteScriptPin (or something of the sort) you can specify a running option in it.
Frech Ennui
Registered User
Join date: 5 Apr 2005
Posts: 7
06-27-2006 21:27
From: Jesse Malthus
Try using llRemoteScriptPin (or something of the sort) you can specify a running option in it.


The problem is I have multiple objects with 40+ prims each. Each of these prims must have these scripts, so using llRemoteLoadScriptPin would require each of the prims to have use llSetRemoteScriptAccessPin beforehand which defeats the purpose of my link delivery script (to save a LOT of time in this case). Any other ideas?? PLEASE??
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
06-27-2006 22:50
I had this same problem with something I wanted to do. I researched it pretty hard and didn't find anything other then the remotepin.
_____________________

Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
06-27-2006 22:54
if you only have to do it once you can just use the "set all scripts to running" option in the tools menu (@ the top of the screen)
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
06-28-2006 11:12
Not sure if this will help or not, but it is based on my most recent fights with llGiveInventory between objects.

There seems to be some kind of sync issue between the sim's view of the assets and the asset server's view. I get a lot of "cannot perform this function because the script is invalid" - type of errors when I try to recompile/reset/start/stop scripts which were given to another object/prim via llGiveInventory. Also, sometimes scripts that were given and should have recompiled to work won't. The recompile dialog says "processing 3 scripts", but only lists one, for example.

I have found that the solution is to sync the object with the asset server bytaking it into inventory and re-rezzing it, then attempt to recompile/reset/start/stop it. Works every time so far.
Norman Desmoulins
Grand Poohba
Join date: 10 Nov 2005
Posts: 194
06-28-2006 11:16
To update scripts in a running,rezzed object you have to have the access pin set and use the remote load.