Thread: 1.6 update
View Single Post
02/27/15, 01:23 PM   #50
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Interesting... I'll take another look at it. Have to admit I got the data in another way. That might have been the reason why it didn't work

Originally Posted by sirinsidiator View Post
I just did a quick test.

Map Measurements:
Lua Code:
  1. /script d(LibStub("LibGPS2"):GetCurrentMapMeasurements())

1.5
Code:
offsetX = 0.75281221189101
offsetY = 0.49476541144842
scaleX = 0.028515951236211
scaleY = 0.028515842915819
1.6
Code:
offsetX = 0.74800803566511
offsetY = 0.49480485518186
scaleX = 0.033046741379245
scaleY = 0.033046682793227
The map in 1.6 has different measurements. You should not get the same coordinates.
I converted three custom waypoints and they are in the correct spots in 1.6.

In 1.5 I gathered the local and global coordinates with the following commands:
Lua Code:
  1. /script d(GetMapPlayerWaypoint())
  2. /script d(LibStub("LibGPS2"):LocalToGlobal(GetMapPlayerWaypoint()))

In 1.6 I then switched to the Tamriel map and called these to set the waypoint and get the new local coordinates:
Lua Code:
  1. /script PingMap(MAP_PIN_TYPE_PLAYER_WAYPOINT, MAP_TYPE_LOCATION_CENTERED, x, y)
  2. /script d(LibStub("LibGPS2"):GlobalToLocal(x, y))

Here are the coordinates that I got:
Waypoint 1
1.5
Code:
0.35308393836021
0.75185513496399
global
Code:
0.76288073625958
0.5162051943725
1.6
Code:
0.45005044291033
0.64757904218543
Waypoint 2
1.5
Code:
0.6543225646019
0.6530881524086
global
Code:
0.77147084223595
0.51338877061268
1.6
Code:
0.70998704433441
0.5623539686203
Waypoint 3
1.5
Code:
0.48518005013466
0.38889589905739
global
Code:
0.76664758254143
0.50585510581654
1.6
Code:
0.56403642892838
0.33438637852669
  Reply With Quote