Howdy Folks,
Does anyone know of any way to gain a Region's global position or Name, from it's UUID? Is it even possible?
These forums are CLOSED. Please visit the new forums HERE
Region UUID |
|
|
Raine Dowding
Registered User
Join date: 18 Oct 2006
Posts: 15
|
11-28-2007 17:17
Howdy Folks,
Does anyone know of any way to gain a Region's global position or Name, from it's UUID? Is it even possible? |
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
11-28-2007 17:32
What do you mean by "its UUID"? Where did you get a UUID that represents the region from?
|
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
11-28-2007 17:50
Howdy Folks, Does anyone know of any way to gain a Region's global position or Name, from it's UUID? Is it even possible? Region UUID? Is there such a thing? If so please tell me how you obtained it. Maybe you meant llGetRegionCorner() or DATA_SIM_POS? _____________________
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
11-28-2007 18:31
Are you sure you're looking for scripting advice (for in-world scripting, aka lsl) and not open source advice for the client source code?
In the source code, yes it is possible to get a name and global position from the RegionID. That'd be a question for the sldev mailing list, though. |
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-28-2007 18:57
To get the name you could do an http request;
http://world.secondlife.com/region/02b489c7-34aa-0043-8835-6dc0316bdc0f Will return the page for the region Michelangelo This thread would give you a clue how to do it with a script: /54/bf/225460/1.html _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-28-2007 21:52
it's amazing what you can get a uuid for through that portal =) now if I could just figure out a better way to access it, via search terms, so that it returns the xml bucket each time instead of the page in sub directories...
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
11-29-2007 04:01
To get the name you could do an http request; http://world.secondlife.com/region/02b489c7-34aa-0043-8835-6dc0316bdc0f Will return the page for the region Michelangelo This thread would give you a clue how to do it with a script: /54/bf/225460/1.html So how exactly do you get a region UUID? _____________________
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-29-2007 04:39
catch 22, AFAIK, without diving into the viewer code, the only place I know to get it is http://world.secondlife.com/ but there are links to them from profiles, parcels, classifieds, etc....
I suppose it's possible there's a function that returns them, but I don't know it... but then I used to think group keys weren't exposed, but now I know at least 2 functions that will expose them in certain circumstances... and now I know how to attach names to them =) other things with keys that I didn't know about... each parcel has a key, each classified ad has a key, events may have keys too, _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
11-29-2007 05:02
If you're working with open-source (assumed since you're working with region UUID's) you can do RegionHandleRequest and get a RegionIDAndHandleReply
http://wiki.secondlife.com/wiki/RegionHandleRequest http://wiki.secondlife.com/wiki/RegionUUIDAndHandleReply |
|
Solar Alter
Registered User
Join date: 21 Nov 2007
Posts: 30
|
11-29-2007 06:05
(events don't have keys, they have something like a 9-digit random number. Can someone verify?)
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
11-29-2007 08:46
If you're working with open-source (assumed since you're working with region UUID's) you can do RegionHandleRequest and get a RegionIDAndHandleReply A RegionHandleRequest assumes you already know the ID and want the handle. I don't know if there's a have-handle-want-id message/reply pair, but I think there's a more direct way to get region info once you have a handle. If you know the global position there's a function to get the ID (or maybe it's the handle, or maybe there's both, don't remember). If you know the region name, use MapNameRequest, and that returns a MapBlockReply. |
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
11-29-2007 18:47
If you're working with open-source (assumed since you're working with region UUID's) you can do RegionHandleRequest and get a RegionIDAndHandleReply http://wiki.secondlife.com/wiki/RegionHandleRequest http://wiki.secondlife.com/wiki/RegionUUIDAndHandleReply Everything in SL is assigned a key although not all are usable ie. classified keys. The keys are simply a method in which LL stores its data. _____________________
|
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
11-29-2007 18:49
Howdy Folks, Does anyone know of any way to gain a Region's global position or Name, from it's UUID? Is it even possible? It's rather strange that you would know how to obtain region keys and not use them. Yes you can gain a region's global position and name from its UUID by doing an httprequest and parsing what you get. ie. http://world.secondlife.com/region/02b489c7-34aa-0043-8835-6dc0316bdc0f _____________________
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
11-29-2007 19:07
It's rather strange that you would know how to obtain region keys and not use them. Yes you can gain a region's global position and name from its UUID by doing an httprequest and parsing what you get. ie. http://world.secondlife.com/region/02b489c7-34aa-0043-8835-6dc0316bdc0f Look up at post #5 _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-30-2007 00:26
(events don't have keys, they have something like a 9-digit random number. Can someone verify?) I couldn't get into the events section the way I wanted, but my guess is the number you're seeing is possibly a bitmask, that contains among other things, a post ID number as seen through the community search portal? I almost miss picking apart file formats to mod games... digging through this stuff is like a big puzzle... I love puzzles =) _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
|
Solar Alter
Registered User
Join date: 21 Nov 2007
Posts: 30
|
11-30-2007 06:44
We need to build up a sample set of about 100 entries and compare them. At the moment I can't find any relevant information stored in the number.
|