Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do people go about updating scripts remotely

evo Witte
Registered User
Join date: 24 Apr 2006
Posts: 3
06-04-2006 09:28
sorry, this was a double post
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
06-04-2006 09:43
Believe this is done with llRemoteLoadScriptPin/llSetRemoteScriptAccessPin since it pre-dates appearance of http loading ability in LSL.
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-04-2006 09:52
(Bah, was just writing that heh, you beat me to it)

Yup, llHTTPRequest does make it easier though, as what you can do is have a script check if it's outdated, if it is then it creates a PIN for itself and sends it to your server, which can register that PIN along with the object's key. The server can then communicate to a central object somewhere using the XML RPC functions (only seem to work for receiving data).
This central object then gives an updater (with the new script) to the owner of the item that is outdated, and when the owner triggers it, it will use llRemoteLoadScriptPin() to put it into the old object in place of the original script, thus updating it.

Oh, as a note, I wouldn't hand out the updater automatically upon finding an update available, I'd simply have the object in question IM it's owner so they know, and have an option somewhere to trigger the update process. This at least removes the potential for any failures in communication (since HTTPRequest tells you if you couldn't connect), or the owner receiving multiple copies of the updater every time the object checks for updates.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
evo Witte
Registered User
Join date: 24 Apr 2006
Posts: 3
06-04-2006 15:44
Haravikk:brilliant, just what I needed. Thanks for your explination