20GT

Math formula for Map coordinates to teleport coordinates

Recommended Posts

Posted (edited)

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.

Edited by Palenor
Additional Info
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
(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>
Edited by Olivar
  • Like 1

Share this post


Link to post
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)

 

  • Like 1

Share this post


Link to post
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)
  • Like 1

Share this post


Link to post
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.

  • Like 1

Share this post


Link to post
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.

  • Like 1

Share this post


Link to post
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

Edited by 20GT

Share this post


Link to post
Share on other sites
15 hours ago, 20GT said:

Setplayerpos −157200 −238420 0 

Didn't work. It teleported me to a spot inside a rock. whats a good general overall number for Z. 

I think I tried higher numbers for Z but did so much yesterday I've forgotten. But the result still didn't work for me. 

Edited by 20GT

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now