Quote:
Originally Posted by eitai123
should it be based on in-game cords / pixels conversion?
and if so? its a constant one? or based on specific images.
|
Silkroads coordinates exist in two different representations:
Internally, the world is split into squared Regions. The coordinates are stored as relative offset to the regions 0,0.
Note: The region size the engines calculations are based off is different from the ground-texture size for the region!
Since the majority of the playerbase of SRO would not be able to understand this, they made a simple representation of X and Y where the formular is something like:
Code:
SimpleX = (RegionX * RegionSize + RelativeX) + StaticOffsetX
SimpleY = (RegionY * RegionSize + RelativeY) + StaticOffsetY
The Region is often stored as a combined 16 bit value. But its actually two 8 bit values.
Your tool should be able to handle both representations.