Please Help Me - Script with UIDs

Content that you created or discovered
Post Reply
User avatar
Carlos Loff
Posts: 270
Joined: Sat Dec 28, 2013 8:58 pm
Location: Between Lisbon - Portugal and London - UK
Has thanked: 260 times
Been thanked: 176 times
Contact:

Please Help Me - Script with UIDs

Post by Carlos Loff » Wed Oct 08, 2014 8:28 pm

I discovered a great script that makes my windows change from open to close just by clicking them, because it uses 2 textures I dropped inside them and switches the textures on touch (open window and closed window textures)

They work great but I had to insert each texture UID code on the script for it to work

If I sell them on a house and the buyer takes them to his/her world, will the textures UIDs inside the window change or will it remain so the buyer doesn't have to go scripting to change it again ???

Thanks in a advance
Join Kitely Group ---> Loff Virtual Worlds
Join Me on Facebook ---> https://www.facebook.com/groups/loffvirtualcities/
Join Google+ ---> OpenSim Virtual Worlds ---> https://plus.google.com/u/0/communities ... 2072972054
User avatar
Handy Low
Posts: 231
Joined: Fri Nov 08, 2013 3:38 pm
Location: Yorkshire, England
Has thanked: 207 times
Been thanked: 140 times
Contact:

Re: Please Help Me - Script with UIDs

Post by Handy Low » Wed Oct 08, 2014 10:47 pm

The same UUIDs will work anywhere on the grid.

Also, if you're using UUIDs rather than texture names to switch textures, you don't need to put the texture files inside your object.
These users thanked the author Handy Low for the post:
Carlos Loff
Handy Low
User avatar
Carlos Loff
Posts: 270
Joined: Sat Dec 28, 2013 8:58 pm
Location: Between Lisbon - Portugal and London - UK
Has thanked: 260 times
Been thanked: 176 times
Contact:

Re: Please Help Me - Script with UIDs

Post by Carlos Loff » Wed Oct 08, 2014 11:32 pm

Handy Low wrote:The same UUIDs will work anywhere on the grid.

Also, if you're using UUIDs rather than texture names to switch textures, you don't need to put the texture files inside your object.
Lovely, many thanks, you were very helpful for my merchant biz

Cheers
These users thanked the author Carlos Loff for the post:
Handy Low
Join Kitely Group ---> Loff Virtual Worlds
Join Me on Facebook ---> https://www.facebook.com/groups/loffvirtualcities/
Join Google+ ---> OpenSim Virtual Worlds ---> https://plus.google.com/u/0/communities ... 2072972054
User avatar
Kayaker Magic
Posts: 337
Joined: Sun Dec 01, 2013 8:40 am
Has thanked: 48 times
Been thanked: 352 times

Re: Please Help Me - Script with UIDs

Post by Kayaker Magic » Fri Oct 10, 2014 5:35 pm

And here is the amazing part: If you sell that window for export over the hypergrid to a different grid, it WILL STILL WORK!

It should not work, because those UUIDs are unique to Kitely, but those clever guys at Kitely have solved this problem!

When they export an item like this, their export logic reads your script, finds the UUIDs, exports the textures that they reference, and modifies the script to contain the UUIDs of those textures on the destination grid! If that makes no sense to you, just relax and know that there is a good reason why exporting scripts like that does work.
These users thanked the author Kayaker Magic for the post (total 2):
Constance PeregrineOzwell Wayfarer
User avatar
Carlos Loff
Posts: 270
Joined: Sat Dec 28, 2013 8:58 pm
Location: Between Lisbon - Portugal and London - UK
Has thanked: 260 times
Been thanked: 176 times
Contact:

Re: Please Help Me - Script with UIDs

Post by Carlos Loff » Fri Oct 10, 2014 5:57 pm

Kayaker Magic wrote:And here is the amazing part: If you sell that window for export over the hypergrid to a different grid, it WILL STILL WORK!

It should not work, because those UUIDs are unique to Kitely, but those clever guys at Kitely have solved this problem!

When they export an item like this, their export logic reads your script, finds the UUIDs, exports the textures that they reference, and modifies the script to contain the UUIDs of those textures on the destination grid! If that makes no sense to you, just relax and know that there is a good reason why exporting scripts like that does work.
I see, never thought about that, wowwwww, glad you complemented with your comment - Oh and yes, I made the British House Export

Clever little maniacs - Hypergrid Business said Kitely is more tecky and less social but I would not prefere the opposite

Members love Kitely so much that we will do the Social, always backed up by the GREAT TECKS, cheers
Join Kitely Group ---> Loff Virtual Worlds
Join Me on Facebook ---> https://www.facebook.com/groups/loffvirtualcities/
Join Google+ ---> OpenSim Virtual Worlds ---> https://plus.google.com/u/0/communities ... 2072972054
User avatar
Mike Lorrey
Posts: 226
Joined: Sun Sep 04, 2016 5:40 pm
Has thanked: 53 times
Been thanked: 129 times

Re: Please Help Me - Script with UIDs

Post by Mike Lorrey » Tue Jan 01, 2019 7:12 pm

Go ahead and put the textures into the contents of the window object. Just referring to a UUID in the script does not protect textures against a person using another script with llGetTexture() to grab the key, then apply that key to a flat surface to take a snapshot. You can have your scrip.t use llGetInventoryKey to grab the texture key each time it runs, so the user can change the window designs they want to use.Textures are the least protectable content
Post Reply