Page 1 of 1

Please Help Me - Script with UIDs

Posted: Wed Oct 08, 2014 8:28 pm
by Carlos Loff
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

Re: Please Help Me - Script with UIDs

Posted: Wed Oct 08, 2014 10:47 pm
by Handy Low
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.

Re: Please Help Me - Script with UIDs

Posted: Wed Oct 08, 2014 11:32 pm
by Carlos Loff
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

Re: Please Help Me - Script with UIDs

Posted: Fri Oct 10, 2014 5:35 pm
by Kayaker Magic
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.

Re: Please Help Me - Script with UIDs

Posted: Fri Oct 10, 2014 5:57 pm
by Carlos Loff
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

Re: Please Help Me - Script with UIDs

Posted: Tue Jan 01, 2019 7:12 pm
by Mike Lorrey
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