Jump to content

Math formula for Map coordinates to teleport coordinates


20GT

Recommended Posts

That is a very good question, one that enquiring minds have wanted to know the answer to for some time.

Been a while since I looked, like 18 months or so, had no luck then,

Best I figured out is as follows.

50,50 is center of map at 0,0

Each full grid is to the west of 50,50  is 80,000 for 10 degrees.

Each degree is equal to 8,000 and each .1 degree is equal to 800.

Problem is when you go east of 50,50, the first full grid is 100,000, not 80,000 so it throws off all formulas.

Link to comment
Share on other sites

(map coordinate - 50) * map_coordinate_factor

That's the formula for converting coordinates of the minimap to the ingame UR coordinates.
The map_coordinate_factor is as following:

Map Y Factor X Factor
The Island 8000 8500
Scorched Earth 8000  
The Center    
Ragnarok 13100  

 

Some examples for the Island

  • <50 50> minimap = <0, 0> UR
  • <80, 80> minimap = <320000, 340000>
  • <10, 10> minimap = <-320000, -340000>
Link to comment
Share on other sites

19 minutes ago, Olivar said:

(map coordinate - 50) * map_factor

That's the formula for converting coordinates of the minimap to the ingame UR coordinates.
The map_factor is as following:

The Island 8,000
Scorched Earth 8,000
Ragnarok 13,100

Google and the wiki are your friends

That would only work for anything that is on the negative side of coordinates. (West or North of 50,50)

 

Link to comment
Share on other sites

No that works for anything, as you said, 50, 50 is the center of the map, which is mapped to the coordinates of 0,0.

You can use the link from the OP to verify this:

  • <50, 50> => <0, 0>
  • <10, 10> on minimap => <-32000, -32000> in UR coordinates  (-40 * 8000)
  • <80, 80> on minimap => <32000, 32000> in UR coordinqtes (40 * 8000)
Link to comment
Share on other sites

2 minutes ago, Olivar said:

No that works for anything, as you said, 50, 50 is the center of the map, which is mapped to the coordinates of 0,0.

You can use the link from the OP to verify this:

  • <50, 50> => <0, 0>
  • <10, 10> on minimap => <-32000, -32000> in UR coordinates  (-40 * 8000)
  • <80, 80> on minimap => <32000, 32000> in UR coordinqtes (40 * 8000)

Not trying to be difficult here.

However, 80,80 on the referenced map is actually 260,000 x 240,000 and 90,90 is 340,000 x 320,000.

This is due to the first full grid to the East of 50,50 (60, any) is actually 100,000 instead of 80,000.

This messed with me in the game for the longest time until I found this same map referenced by OP above.

Link to comment
Share on other sites

The map is not squared then.
I rerun the numbers, and they match for the Y coordinate, as the coordinates stop at 320000 there.
Which matches the 8000 mapfactor for the Island.

For the X coordinates there's up to 340000 coordinates in both directions.
This means the map_factor becomes 8500.
This is for the Island only at the moment, haven't checked the other maps as their dimensions might be different as well.

Link to comment
Share on other sites

On 10/3/2017 at 8:46 AM, Olivar said:

(map coordinate - 50) * map_coordinate_factor

That's the formula for converting coordinates of the minimap to the ingame UR coordinates.
The map_coordinate_factor is as following:

Map Y Factor X Factor
The Island 8000 8500
Scorched Earth 8000  
The Center    
Ragnarok 13100  

 

Some examples for the Island

  • <50 50> minimap = <0, 0> UR
  • <80, 80> minimap = <320000, 340000>
  • <10, 10> minimap = <-320000, -340000>

So according to the formula. 

(38 - 50) * 13100 
(31.8 - 50 * 13100 

38−50
= −12
(−12)×13,100
= −157,200

31.8−50
= −18.2
(−18.2)×13,100
= −238,420
 

Setplayerpos −157200 −238420 0 (does it need this zero at the end)   should work? I'll try when I get home 

1507654469117.jpg

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...