skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Hi! What is the standard map size and coordinate boundary? #37

Closed CharlesLiuyx closed 1 year ago

CharlesLiuyx commented 6 years ago

I notice that in the project clarity-analyzer

MIN_X = -7500
MAX_X = 7500
MIN_Y = -7400
MAX_Y = 7200

Do these values represent the boundary of the coordinate of every single object in entity? MAX & MIN

spheenik commented 6 years ago

The theoretical boundary is min (X/Y) -16384/-16384 to max (X/Y)16383/16383. Why do you ask?

CharlesLiuyx commented 6 years ago

Thanks for your answer~ That is because I found in the clarity-analyzer, there is a little misalignment between the minimap and the objects(heroes, building, and etc.)

spheenik commented 6 years ago

Yes, the minimap image I use is very abstract, and I could have spent some more time to properly adjust ;-)

CharlesLiuyx commented 6 years ago

Yep! The m_cellX and m_cellY are between 0 - 256(I am not sure for this because I hardly found this value less than 70). (128,128) is center of the minimap. Am I right?

spheenik commented 6 years ago

I'm not sure if exactly, but approximately, yes.

CharlesLiuyx commented 6 years ago

I have checked it, the coordinate system is from 64 - 192. Thank you