Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Change objects owned by others but created by me??

Jeshu Fluno
...ZZzz d-_-b zzZZ...
Join date: 24 Jun 2006
Posts: 8
07-24-2006 14:00
Is there a way to make objects owned by many avatars but created by me to change anytime I want? Lets say a newspaper that changes the news everytime I upload a new story?
Thanks for any help

Jeshu
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
07-24-2006 14:12
From: Jeshu Fluno
Is there a way to make objects owned by many avatars but created by me to change anytime I want? Lets say a newspaper that changes the news everytime I upload a new story?
Thanks for any help

Jeshu

Use "HTML on a prim"? Haven't tried this feature yet, and I'm not certain it's been released you, but that should allow your newspaper or news kiosk to display a simple web page as its surface texture.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Jeshu Fluno
...ZZzz d-_-b zzZZ...
Join date: 24 Jun 2006
Posts: 8
07-24-2006 14:27
hmmm... HTML on a prim would be usefull. I will search for that on the wiki.
Thanks
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
07-24-2006 15:17
It really depends on the specifics you are trying to implement.

1. Do you want to have your newspaper done as textures? You would need to send the keys to the textures to the "reader object" and they would be displayed for the user

2. Send a Notecard? A bit simliar to the above.

3. Text from a webpage? llHTTPRequest and llOwnerSay or an XYTextObjet Reader (Note.. this can be VERY VERY prim heavy and slow to render)
Jeshu Fluno
...ZZzz d-_-b zzZZ...
Join date: 24 Jun 2006
Posts: 8
07-24-2006 16:04
I think sending the "new text" as texture would be easier. Can you please tell me how to send a texture to an object owned by someone else or to make an object ask for a new texture?
Jolan Nolan
wannabe
Join date: 12 Feb 2006
Posts: 243
07-24-2006 17:15
Would this work the same as those auto-updating scripts I read about in vehicles?

- Jolan
Jeshu Fluno
...ZZzz d-_-b zzZZ...
Join date: 24 Jun 2006
Posts: 8
07-25-2006 08:20
Ok, lets say I want to make the texture of this newspaper change every time I want.

That means I have to upload a new texture (image) to change the existing texture (yesterday news) for this new uploaded one (today’s news).

There comes the problem. Every time someone uploads an image is gets a unique key (name), and if I get a new texture it will have a different key that the object’s script won’t recognize.

So… how can I “replace” a texture and make it keep the same key???
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
07-25-2006 08:27
From: someone
So… how can I “replace” a texture and make it keep the same key???


You don't - at least, not in second life you don't. That is a technical impossibility. Simply can't be done.


You will need a central "server object" that remains rezzed in world. You need this to know what the current texture is (e.g. you put it in the server's inventory).

When a newspaper is rezzed in world, it switches to a nice "getting news" texture, and sends an email to the server (who's key it knows becasue you set it all up in advance).

The server receives this email, and replies with an email containing the UUID of the current texture.

The newspaper then shows the current texture by UUID, and voilla.

You could also tell them to try to update periodically, say once a day, in case anyone left a paper rezzed in world (such as a poster).

The two drawbacks to this are that you need to make SURE that the server stays rezzed, or everyone needs an updated newspaper, and it will take several seconds for the mail to go back and forth.
Jeshu Fluno
...ZZzz d-_-b zzZZ...
Join date: 24 Jun 2006
Posts: 8
07-25-2006 16:14
Ok thats what im gonna try :)

Im just worried about the 12 mails it can handle at the same time. That means that if i make all the papers update at the same time (00:00hrs) i will loose some messages.

I just have to dive into the wiki to find out how an object "reads" an email, or to figure out if it is better to do with a postcard.

On the other hand, could the llListen work for this? I mean... can an object listen to someone (specified key) anywhere in the world?
Then if I say "Update Newspaper", type a password and then type the UUID of the new texture... would it work??

-Jeshu
Jesse Malthus
OMG HAX!
Join date: 21 Apr 2006
Posts: 649
07-25-2006 20:27
I suggest you have a texture with a notecard, and use llGiveObject in the server and llAllowedDrop in the paper
However, the problem is registration of those papers with the server...
_____________________
Ruby loves me like Japanese Jesus.
Did Jesus ever go back and clean up those footprints he left? Beach Authority had to spend precious manpower.
Japanese Jesus, where are you?
Pragmatic!
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
07-25-2006 20:42
You can not use llGiveInventory to transfer inventory between objects in different sims.

llListen only works within 20 meters.

The way to handle this is an update script. If you make the news objects request updates at random or staggered times, it is easy to ensure that the message is received. Alternatively, you could have the news objects repeatedly request the new texture until they receive a response.
Jesse Malthus
OMG HAX!
Join date: 21 Apr 2006
Posts: 649
07-25-2006 21:42
and here I built a system on using llGiveInventory to convey messages...
Never tested it cross-sim...
_____________________
Ruby loves me like Japanese Jesus.
Did Jesus ever go back and clean up those footprints he left? Beach Authority had to spend precious manpower.
Japanese Jesus, where are you?
Pragmatic!
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
07-25-2006 21:50
Well.. if you have access to a webhost of some kind... you could use llHTTPRequest to query for the texture key... and of course. send the texture key to the webserver. The texture must be full permission to work also.
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
07-26-2006 01:23
From: Jesse Malthus
and here I built a system on using llGiveInventory to convey messages...
Never tested it cross-sim...


Have it give inventory to a flying object, which flies across into the next sim like a carrier pigeon. :)
Barney Boomslang
Steam & Magic Alchemist
Join date: 27 Feb 2006
Posts: 20
07-26-2006 02:04
From: Angela Salome
Have it give inventory to a flying object, which flies across into the next sim like a carrier pigeon. :)


No go with private islands, which are surrounded by non-existing sims.
Xen Xiao
Registered User
Join date: 9 Jul 2006
Posts: 2
07-26-2006 02:06
Why don't you just do this. When the newspapers are rezzed, have them email the master server there key (then it will store it in a list) and also have them listen for emails from the master server. Then when you want to update it you have the master server go through the list and email each newspaper the new texture UUID. That way it dosen't have to be daily, and you can control the updates.
Gattz Gilman
Banned from RealLife :/
Join date: 29 Feb 2004
Posts: 316
07-26-2006 06:25
From: Xen Xiao
Why don't you just do this. When the newspapers are rezzed, have them email the master server there key (then it will store it in a list) and also have them listen for emails from the master server. Then when you want to update it you have the master server go through the list and email each newspaper the new texture UUID. That way it dosen't have to be daily, and you can control the updates.

because everytime you rez the newspaper it gets a new key. so say i rezzed the newspaper once, it sends its key. for some reason i had to pick it up and re rez it. it has a new key which it sends too.
Now the server has a useless key of the newspaper i rezzed first (which no longer exists).

Bitzer Balderdash's way is the best way to go.

And as for the emails, it queues them up, so no worry about it getting overloaded too much. it will work through them all one by one.
Just keep in mind that llEmail sleeps the script for 20 seconds.
_____________________