Jump to content
Sign in to follow this  
Domitan Redenblack

UUIDs - five groups of hex numbers

You are about to reply to a thread that has been inactive for 3283 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

a few of them follow some conventions... like (current) avatar keys (older ones may not though) having certian bits that are set, and some that are not, others do not appear to have any obvious patern (texture keys for example). in general there isn't much useful that can be detected from a group key (some may be date encoded, but I can't remember which ones)

Share this post


Link to post
Share on other sites

Not as unique as the whole thing, but I have no worries about using those first few characters to build, say, a private chat channel:

integer gChan = (integer)("0xF" + llGetSubString(llGetOwner(),0,8) );

 

Share this post


Link to post
Share on other sites

it might help to know what you are wanting to do.... stripping out, or creating a few numbers from the effective 128bits of a key won't be entirely unique, but has differing levels of chance of collision depending on how much is used in the final format. collision is when two different keys generate the same result.

Share this post


Link to post
Share on other sites

My one prim vendor reports to my database when it gets rezzed in world, and in case of multiple vendors in a single region+parcel, I save the full UUID key to the prim.

But when I report sales and check in regularly, just giving the first 8 hex digits of the vendor UUID seems plenty.

Share this post


Link to post
Share on other sites

Rolig Loon wrote: 
integer gChan = (integer)("0xF" + llGetSubString(llGetOwner(),0,8) );

Will that get the "-" at the end of the 8 hex digits?

e.g. 2771b5f2-2c8c-34a0-aed8-3ed939bb36fe

-->  llGetSubString( str, start_index, end_index);

and I think you want 32-bits negative number: integer gChan = (integer)("0xF" + llGetSubString(llGetOwner(),0,6) );

 

Share this post


Link to post
Share on other sites

I believe that was a think-o, I've done it too... 0x + 0,7 is the basic format.... 0xF + 08 will parse, but may give unexpected results

Share this post


Link to post
Share on other sites

Related question:

If I copy a  texture into an object, it has a certain UUID key.

If I then makes multiple copies of that object and give them away, will the texture be duplicated (have different UUIDs in each object copy) ?

 

Share this post


Link to post
Share on other sites

no... items only get a new uuid when saved after changes. animations, textures, and sounds NEVER change uuids. Objects that are modified do, but you can't access the system uuid (only the rezzed uuid which stays the same while it its rezzed). scripts and notecards that are saved (even if they have no changes) will get a new uuid

Share this post


Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 3283 days.

Please take a moment to consider if this thread is worth bumping.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...