Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Auto-updating a script version

Zany Golem
Purple Freak
Join date: 30 Oct 2005
Posts: 113
10-28-2007 08:06
I have been searching the forums for this for 2 days and am looking for a more difinitive answer on this. (My searching skills have always been a bit suspect though.)

Is it possible to have one object, send a script to another object, across sims?

It seems every answer I've seen is to have an updater send the user an updated version, or have the user rez an updater object near the object.

That won't work for me because I'll already have the updated script since I'm writing it and it's just as simple to plop out an updater prim as to plop the new script into each object. (I already know how to make the updates smart enough so that they can delete the old version and I don't have to.)

I guess my main problem is there are getting to be so many of my objects, that stopping by each one and giving it a new script is becoming a big hassle. They never change ownership - it's always just me.
_____________________
-Zany
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
10-28-2007 16:36
yeah, not possible to do this from my knowledge. The 3 mechanisms that allow this, llGiveInventory, llGiveInventoryList, and llRemoteLoadScriptPin, are all limited to giving objects and scripts from inventory within the same sim. You can give inventory from a prim to an agent anywhere, but not to objects that are outside of the sim.
Zany Golem
Purple Freak
Join date: 30 Oct 2005
Posts: 113
10-28-2007 17:26
Thanks :)
_____________________
-Zany
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
10-29-2007 02:22
From: Zany Golem
Thanks :)

I have not tried this but, food for thought
Why not have a script in each object, or one object per sim, that can receive a script via email and then update from there. Is it even possible to send a script as the body of an email?
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
10-29-2007 02:47
From: Geuis Dassin
yeah, not possible to do this from my knowledge. The 3 mechanisms that allow this, llGiveInventory, llGiveInventoryList, and llRemoteLoadScriptPin, are all limited to giving objects and scripts from inventory within the same sim. You can give inventory from a prim to an agent anywhere, but not to objects that are outside of the sim.


Every update mechanism I've seen sends you an object which you then rez next to the object to be update, ensuring that it's in the same sim.
_____________________
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
10-29-2007 03:14
Goofy idea: Invent an intermediate language that is stored in a string, which your script executes. You could receive that in emails :D

D:
_____________________
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
10-29-2007 03:21
From: Day Oh
Goofy idea: Invent an intermediate language that is stored in a string, which your script executes. You could receive that in emails :D

D:


Yikes!
_____________________
Zany Golem
Purple Freak
Join date: 30 Oct 2005
Posts: 113
10-30-2007 10:20
From: Very Keynes
I have not tried this but, food for thought
Why not have a script in each object, or one object per sim, that can receive a script via email and then update from there. Is it even possible to send a script as the body of an email?


While you can send the code as the body of the e-mail, you can't send a script itself. While a script could process that e-mail, there is no way that I know of to have a script change it's coding. You can only store things as variables which means any structural changes (like custom functions or states) would not be executable.

Many of my objects are only in one location of the sim. :) I'm trying to avoid visiting each and every sim everytime I have a new revision.
_____________________
-Zany
Zany Golem
Purple Freak
Join date: 30 Oct 2005
Posts: 113
10-30-2007 10:23
From: Stephen Zenith
Yikes!


I'll second that!
_____________________
-Zany