Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How do i copy a asset UUID ?

Lostmedia Ares
Drinking tea
Join date: 6 Sep 2006
Posts: 290
05-21-2007 04:04
Hi , i may be way off the mark here , But i need to find out how to get hold of a UUID in an object .Here's what im doing .

i have a earpeice ( like a multigadget style ) acting like a reciver , On a belt i have a transmitter ( like an MP3 ) , they are not linked in any way , But i wish to send a partical beam or a smoke stream from the trasnsmitter to the reciver .

I have added a smoke script to my earpeice and can get it to send a beam to " owner " and " self " but i want the beam to go to the reciver on the belt worn round me .

I have taken the belt in and selected " Copy asset UUID but it comes up as " 00000000-0000-0000-0000-000000000000 "
I know for sure im doing somthing wrong here , But i allso know im not far off what im trying to do .

Anyone got any idea's or can give me any tip's i would realy appriciate it .

This is just a little project , The item is for personal use only , Im just trying to open up my understanding of thing's like this .

Thank in advance :)
_____________________
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
05-21-2007 04:39
From: Lostmedia Ares
Hi , i may be way off the mark here , But i need to find out how to get hold of a UUID in an object .Here's what im doing .

i have a earpeice ( like a multigadget style ) acting like a reciver , On a belt i have a transmitter ( like an MP3 ) , they are not linked in any way , But i wish to send a partical beam or a smoke stream from the trasnsmitter to the reciver .

I have added a smoke script to my earpeice and can get it to send a beam to " owner " and " self " but i want the beam to go to the reciver on the belt worn round me .

I have taken the belt in and selected " Copy asset UUID but it comes up as " 00000000-0000-0000-0000-000000000000 "
I know for sure im doing somthing wrong here , But i allso know im not far off what im trying to do .

Anyone got any idea's or can give me any tip's i would realy appriciate it .

This is just a little project , The item is for personal use only , Im just trying to open up my understanding of thing's like this .

Thank in advance :)


The reason the UUID is all zeros' is probably because of permissions.
Unless you have full permissions (MOD/COPY/TRANS) the UUID will alwasy be NULL_KEY.
BUT theres an additional complication in your situation. Each time an object is Rezzed it is given a new UUID.

With that all out of the way, I suggest a possible solution is for the receiver to say a synch / link message on a channel on which the transmitter is listening. The listen event will then receive the key of the receive as one of its parameters and can respond witha message of its own (allowing the receiver to stop transmitting) and start the particle stream.
_____________________
I'm back......
Lostmedia Ares
Drinking tea
Join date: 6 Sep 2006
Posts: 290
05-21-2007 05:05
Hi Newgate :) , Thanks for the speedy responce .

Ok well i never knew that the UUID changed every time an obj is rezzed ..so i have learned somthing very valuable in that alone :)

The object im trying to get the UUID from ( in this case the belt ) i built so i have full perms on it .

As for the rest of your help ...im totaly in the dark :( , Im very very new to anything sripting , I understand what it is your saying and it make perfect sence , Sounds exactley what i need .... but doing it hahah ... im a nub :)

Is it a big job ? ... can i send you copys of the objects for you to take a look at ?

Thanks very much for your help Newgate :)
_____________________
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
05-21-2007 06:22
To use the chat channel to send the UUID these are the steps you would want to take.

1. Assume the object sending the particle out (the transmitter) is already being worn by the avatar. (This is not necessary but it makes things easier, you can make it more fault tolerant later.)

2. Chose a channel to broadcast your message on.. -99 for example.

3. Within the transmitters code use the on_rez event to set it to listening for the receiver's UUID by using the llListen function. Make sure to specify the channel you wish it to listen to.

4. Within the receiver's script use its on_rez event to broadcast a message to the transmitter. llWhisper should work fine for this, sending it the channel you previously selected and some "this is me" message.

5. This should trigger the lisent event within the transmitter. Notice that some of the information that listen receives is the message that was sent AND the UUID of the sender.

6. Simply compare the message received with the "this is me" message that you are sending and if they match set a global variable to the UUID it received.

7. Start up your particle using the global UUID.

That should do it. You can get fancier with more error detection, but as long as you wear the transmitter first this should work (may need to reattach the receiver when crossing sim boundaries.)

--

Alternatively you could use a sensor to scan the area around the transmitter for the receiver. But the above method is probably simpler.
Lostmedia Ares
Drinking tea
Join date: 6 Sep 2006
Posts: 290
05-21-2007 06:28
Thank you Milambus :)

I will give that a go , still may be a bit too much for me , But im willing to have a stab at it .

Thanks again
_____________________
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.