|
Maris Kanto
Registered User
Join date: 4 Dec 2007
Posts: 47
|
12-17-2007 05:44
Hello guys,
I've seen several items in SL whcih have "update" functionality. In other words, items have the script and its version, and by updating - they somehow check the current script version and if there is an update - receive the latest version of the script and update itself.
These are not limited to particular SIM, they work SLwide.
What is the best practice to do this, also have not been able to find any working and relyable script that offers this functionality.
Any suggestion and advice would be wonderful. I am also ready to buy the working open script that does the thing.
Thanks Maris
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
12-17-2007 11:30
You need a RL webserver that waits for a SL script message. In this case the product, when someone attachs the product it sends the version number ( via XML or httprequest) to the server and there compares that version with the actual one, if they don't match then that resident should get the new version.
So this is part in world script and out world web based system.
|
|
Maris Kanto
Registered User
Join date: 4 Dec 2007
Posts: 47
|
12-17-2007 11:45
So basically does that mean that in case of newer version available on the outside server, updated script comes back to SL as simple open text via HTTP?
That would not be too good i guess!?
|
|
Core Taurog
Registered User
Join date: 2 May 2007
Posts: 17
|
12-17-2007 11:53
First, as far as I'm aware, most of these systems don't update the script; they send a new version of the complete product to the owner of the out-of-date version - the mechanisms for automatically putting scripts into objects are very limited and have many potential security implications.
Second, you don't need a web-server or similar, it can all be done in game, provided you are willing to accept a few limitations, mostly that you communicate via in-game instant messages, which requires a target-prim UUID, which implies that unless you have some way of informing customers of changing UUIDs, your update server is required to stay in game, in the same sim, for as long as you want to be providing updates.
If you want it all ingame, you just get the object to IM the server with its current version etc. (and whatever authentication mechanism you feel appropriate) and the server can send an updated version if necessary.
|
|
Maris Kanto
Registered User
Join date: 4 Dec 2007
Posts: 47
|
12-17-2007 12:08
any fully working example would be cool!
|
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
12-17-2007 12:17
I'm not sure about sending the UUID, because, according to lslwiki.net: http://lslwiki.net/lslwiki/wakka.php?wakka=keyObject's UUID changes when they are rezzed or attached. Anyone else can give more light in this issue?
|
|
Jerry Martin
Registered User
Join date: 2 Oct 2005
Posts: 33
|
12-17-2007 13:08
If you do a search for update server in this forum you will find several kinds of product update servers that should meet your needs
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
12-17-2007 15:36
http://wiki.secondlife.com/wiki/Emailthat is all you need put the one cript in the object and the other in its own prim, it will act as in world server, when there is a new update put the new update in and the older versions when rezed or equipt will send you the newest version
|
|
Dragon Keen
Registered User
Join date: 24 Apr 2006
Posts: 245
|
12-17-2007 21:18
search is your friend I've open-sourced my own update server /15/10/170888/1.htmlor a normal update server that depends on UUID http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryProductUpdateServer
|