Region Handles
 
r = (x * (256^4)) + y
y = r % (256^4)
x = r / (256^4)
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Ortman
Sent: Sunday, July 16, 2006 6:56 PM
To: libsecondlife-dev@gna.org
Subject: [libsecondlife-dev] Region Handle (U64) Issues

Hey everyone! Ive created class MapData (seen in code) that handles the client's map information (positions, name, agents, map textures, etc) with the main goal of getting a region handle by name (by finding a sim in an ArrayList of MapData objects and returning the region handle composed of the Global X and Y positions. The problem I having is the generation of the U64 handle (named regionHandle in the MapData class; assigned in the contructor). Ive tried everything I could think of (while admitting not being a *guru*) and I am praying for someone to find what is going wrong.

Please note:
The Login info (First, last, and password) needs to be added into MapDataText.cs

IMing the bot with 'current' sends you the data for its current sim... Estimated? is the result of MapData.regionHandle
IMing the bot with 'teleport' then a sim name (this will be easier later) will teleport to that sim at your local position; it fails because the region handle is incorrect

Thanks in advanced,
Michael Ortman AKA Ming Chen
_______________________________________________
libsecondlife-dev mailing list
libsecondlife-dev@gna.org
https://mail.gna.org/listinfo/libsecondlife-dev

Reply via email to