Reply
Member
Usive
Posts: 160

Prim Contents Updater?

I need a way to change the contents in a master prim and have all the duplicate prims, anywhere in sl, change thier contents to match.

 

I can't find scripts for this anywhere.

Member
Ziggy21 Slade
Posts: 613

Re: Prim Contents Updater?

Reply to Usive - view message

This would require more than just inworld scripts, you would need to address a web server, and I think I am right in saying the object itself would have to be replaced as part of the update, i.e. object contacts server to check for update, if update is available new version is sent to the object owner, old version kills itself.

Depends on the application but it might be easier to have no contents in the object and just have it operate like a vendor, where it contacts an inworld server via the web and the inworld server sends the item

Either way you won't do it with LSL alone.

  

Member
Usive
Posts: 160

Re: Prim Contents Updater?

[ Edited ]

Reply to Ziggy21 Slade - view message

I know it's doable. I I use the UUID and just don't unrez the master prim, just change the contents I don't see what the issue would beBTW. I understand scripting but can't do it, so that's why I don't do it myself.

 

And, I can't just use a vendor system as this is for an already complex system... never thought the damn updater would be the big issue.

Member
Ziggy21 Slade
Posts: 613

Re: Prim Contents Updater?

Reply to Usive - view message

Ok but how will the master prim talk to the all the duplicate prims around the grid without using the web? 

Member
Usive
Posts: 160

Re: Prim Contents Updater?

Reply to Ziggy21 Slade - view message

If they are exact duplicates UUID wise I don't think they need to. The reason they can't telll a copybotted item from a legit one is because a UUID for any copy is the same as the original, so just have the UUID change to match that of the master prim, perhaps have the UUID configurable via chat command, when you say the UUID it updates itself?

Member
Ziggy21 Slade
Posts: 613

Re: Prim Contents Updater?

Reply to Usive - view message

I am not a scripter but I know what you are suggesting is incorrect and impossible.

UUIDs are not the same for copies as originals even with copybotted items.

You cant 'have a UUID change'

You cant configure a UUID via chat command

and even if you could how would the user know when to do it?

Sorry this has ended up a battle rather than some advice, but I will say again, this cannot be achieved with LSL alone  

Sassy Romano
Posts: 1,258
Registered: 04-22-2009

Re: Prim Contents Updater?

Reply to Usive - view message


Usive wrote:

I know it's doable. I I use the UUID and just don't unrez the master prim, just change the contents I don't see what the issue would beBTW. I understand scripting but can't do it, so that's why I don't do it myself.


There are two functions that I know of that will get content into prims:-

http://wiki.secondlife.com/wiki/LlGiveInventory  Pay particular attention to the bit that says "If destination is an object then it must be in the same region."

The other is http://wiki.secondlife.com/wiki/LlRemoteLoadScriptPin  Pay particular attention to the bit that says "

  • If target is not in the same region an error is shouted on DEBUG_CHANNEL."

In other words, neither of these will permit you to update the content of a prim in a region OTHER than the master prim in your case.

There is a reason that all those who update objects like vendors, rez a script updater for example, in each region while doing the update.  It would be lovely to just have a master one that did it all remotely but I don't believe there's a way.


 

Member
Usive
Posts: 160

Re: Prim Contents Updater?

[ Edited ]

Reply to Sassy Romano - view message

Low and behold it IS possible to some degree. Now, you say it can not be done if on another parcel/sim, but then how can an updater script work for objects anywhere in SL? And no, the answer is not through an external server, product updates are done by script, so surely there is a way to do this.

 

As for the contents issue, perhaps have it work like a normal updater then, but send the person in question an object that when rezzed, updates the contents of any prims on the sim that contain the proper script, and then deletes itself and its contents... IDK. HippoUpdater isn't working so I was hoping to find an alternative such as this.

Sassy Romano
Posts: 1,258
Registered: 04-22-2009

Re: Prim Contents Updater?

Reply to Usive - view message


Usive wrote:

Low and behold it IS possible to some degree. Now, you say it can not be done if on another parcel/sim, but then how can an updater script work for objects anywhere in SL? And no, the answer is not through an external server, product updates are done by script, so surely there is a way to do this.

 

As for the contents issue, perhaps have it work like a normal updater then, but send the person in question an object that when rezzed, updates the contents of any prims on the sim that contain the proper script, and then deletes itself and its contents... IDK. HippoUpdater isn't working so I was hoping to find an alternative such as this.


That's the point of my post.  Updaters do NOT work for objects anywhere in SL.

The usual process is to rez the original object, it contacts the central server to see if there's a more update to date version, if there is it's sent to the owning avatar.

The owning avatar rezzes the updater and that then uses llRemoteLoadScriptPIN to update the content of all the objects in the same sim that need updating.  This is how we do our vendors and products.

Honored Resident
Dante Velaystar
Posts: 20

Re: Prim Contents Updater?

Reply to Usive - view message

The object that needs to be updated will need to be able to communicate to a server prim which is always rezzed somewhere in world and check for updatres.  So this could be triggered when it is rezzed or on some time schedule, and done via object to object email, or something.  The main issue is that if an object is taken into inventory, when it is re-rezzed it has a new uuid..  but if the server prim is always rezzed in world then you can give the object that needs to check for updates the servers uuid, which in turn would translate into the server prims email address.  Once contact is established, the checking prim can give the server prim its current uuid, then the update can be done. 

 

So that is a bit of a tongue twister, but such are the logistics of what you want.  Depending on what you want to update you may neeed to send an updater object to be rezzed next to the object that needs the update, but check this script

http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryProductUpdateServer2