Go to Page... |
Compatibility: | Endless Archive (9.2.5) |
Updated: | 10/15/23 02:46 AM |
Created: | 06/27/14 12:58 PM |
Monthly downloads: | 18,477 |
Total downloads: | 3,469,202 |
Favorites: | 1,827 |
MD5: |
## DependsOn: LibGPS>=30
local gps = LibGPS3
local x, y = gps:LocalToGlobal(GetMapPlayerPosition("player"))
local x, y = gps:GlobalToLocal(x, y)
lib:IsReady()
lib:IsMeasuring()
lib:ClearMapMeasurements()
lib:ClearCurrentMapMeasurement()
Measurement measurement = lib:GetCurrentMapMeasurement()
Measurement measurement = lib:GetMapMeasurementByMapId(mapId)
number mapIndex, number zoneIndex, number zoneId = lib:GetCurrentMapParentZoneIndices()
boolean isSuccess, SetMapResultCode result = lib:CalculateMapMeasurement()
number x, number y = lib:LocalToGlobal(number x, number y)
number x, number y = lib:GlobalToLocal(number x, number y)
lib:SetPlayerChoseCurrentMap()
SetMapResultCode result = lib:SetMapToRootMap(number globalX, number globalY)
SetMapResultCode result = lib:MapZoomInMax(number globalX, number globalY)
lib:PushCurrentMap()
SetMapResultCode result = lib:PopCurrentMap()
number scale = lib:GetCurrentWorldSize()
number distance = lib:GetLocalDistanceInMeters(number lx1, number ly1, number lx2, number ly2)
number distance = lib:GetGlobalDistanceInMeters(number gx1, number gy1, number gx2, number gy2)
number ratio = lib:GetWorldGlobalRatio()
number ratio = lib:GetGlobalWorldRatio()
CALLBACK_MANAGER:RegisterCallback(lib.LIB_EVENT_STATE_CHANGED, function(boolean isMeasuring) end)
local id = measurement:GetId()
local mapIndex = measurement:GetMapIndex()
local zoneId = measurement:GetZoneId()
local scaleX, scaleY = measurement:GetScale()
local offsetX, offsetY = measurement:GetOffset()
local valid = measurement:IsValid()
local gx, gy = measurement:ToGlobal(x, y)
local x, y = measurement:ToLocal(gx, gy)
local cx, cy = measurement:GetCenter()
local inside = measurement:Contains(gx, gy)
File Name |
Version |
Size |
Uploader |
Date |
3.3.1 |
17kB |
votan |
08/26/23 07:01 AM |
|
3.3.0 |
16kB |
votan |
05/17/23 12:51 PM |
|
3.2.0 |
18kB |
sirinsidiator |
06/06/22 02:02 PM |
|
3.1.0 |
18kB |
votan |
10/02/21 11:38 AM |
|
3.0.3 |
18kB |
sirinsidiator |
11/11/20 06:00 AM |
|
3.0.2 |
18kB |
sirinsidiator |
11/09/20 11:50 AM |
|
3.0.1 |
18kB |
sirinsidiator |
04/25/20 11:44 AM |
|
3.0.0 |
18kB |
sirinsidiator |
04/24/20 03:36 AM |
|
2.0 r21 |
11kB |
sirinsidiator |
02/28/20 04:10 PM |
|
2.0 r20 |
11kB |
sirinsidiator |
02/27/20 01:51 PM |
|
2.0 r19 |
11kB |
sirinsidiator |
02/26/20 03:26 PM |
|
2.0_r18 |
11kB |
votan |
01/11/20 04:23 PM |
|
r17 |
20kB |
sirinsidiator |
05/15/19 01:15 PM |
|
r16 |
28kB |
sirinsidiator |
09/19/18 10:48 AM |
|
r15 |
19kB |
votan |
04/29/18 01:35 PM |
|
r14 |
19kB |
votan |
11/07/17 12:25 PM |
|
r13 |
19kB |
votan |
10/08/17 09:52 AM |
|
r12 |
19kB |
votan |
09/29/17 11:32 AM |
|
r11 |
19kB |
sirinsidiator |
02/13/17 12:57 PM |
|
r10 |
19kB |
sirinsidiator |
01/28/17 01:49 PM |
|
r9 |
18kB |
votan |
09/30/16 11:04 AM |
|
r8 |
19kB |
sirinsidiator |
07/14/16 02:47 PM |
|
r7.1 |
18kB |
sirinsidiator |
04/24/16 12:55 PM |
|
r7a |
18kB |
sirinsidiator |
03/19/16 09:00 AM |
|
r7 |
18kB |
sirinsidiator |
03/14/16 10:45 AM |
|
r6 |
18kB |
sirinsidiator |
02/20/16 11:43 AM |
|
2.0 r5.4 |
11kB |
votan |
12/06/15 02:53 PM |
|
2.0 r5.3 |
11kB |
votan |
11/25/15 03:10 PM |
|
2.0 r5.2 |
11kB |
votan |
11/08/15 09:24 AM |
|
2.0 r5.1 |
11kB |
votan |
10/01/15 10:56 AM |
|
2.0 r5 |
11kB |
votan |
09/19/15 07:39 AM |
|
2.0 r4.3 |
10kB |
votan |
09/06/15 01:39 AM |
|
2.0 r4.2 |
10kB |
votan |
08/30/15 12:13 PM |
|
2.0 r4.1 |
10kB |
votan |
08/21/15 11:03 AM |
|
2.0 r4 |
10kB |
votan |
08/13/15 01:05 PM |
|
2.0 r3 |
8kB |
votan |
04/23/15 12:33 PM |
|
2.0.1 |
7kB |
sirinsidiator |
08/06/14 09:14 AM |
|
2.0 |
7kB |
sirinsidiator |
07/30/14 01:58 PM |
|
1.0.1 |
3kB |
sirinsidiator |
06/28/14 06:44 AM |
|
1.0 |
3kB |
sirinsidiator |
06/27/14 12:58 PM |
Comment Options |
Garkin |
View Public Profile |
Send a private message to Garkin |
Send email to Garkin |
Find More Posts by Garkin |
Add Garkin to Your Buddy List |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
02/19/16, 03:54 PM | |
2016-02-19T22:44:03.744+01:00 |cff0000Lua Error: Cannot process click at 0.23228884713339/0.73630274365776 on map "Art/maps/reapersmarch/reapersmarch_base_0.dds" in order to get to "Art/maps/reapersmarch/Maw_of_Lorkaj_Base_0.dds".
stack traceback: [C]: in function 'assert' user:/AddOns/GroupResources/lib/LibGPS/LibGPS.lua:689: in function 'lib:PopCurrentMap' user:/AddOns/GroupResources/lib/LibGroupSocket/LibGroupSocket.lua:133: in function 'SetMapPingOnCommonMap' user:/AddOns/GroupResources/lib/LibGroupSocket/LibGroupSocket.lua:150: in function 'DoSend' user:/AddOns/GroupResources/lib/LibGroupSocket/LibGroupSocket.lua:247: in function 'lib:Send' user:/AddOns/GroupResources/lib/LibGroupSocket/handlers/ResourceHandler.lua:113: in function 'handler:Send' user:/AddOns/GroupResources/StartUp.lua:281: in function '(anonymous)'|r When entering MoL Vet |
|
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
02/20/16, 07:12 AM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
03/03/16, 08:55 PM | |
|
A user made a post on my TweakIt addon comment section saying that waypoints were not showing up on the map. This happened after including the LibGPS/LibMapPing libraries. The user said it looked like a conflict between TweakIt & Multi-QuestTracker RE.
Its not just TweakIt though. Apparently if you have any addon running that uses the new LibGPS and you have Multi-QuestTracker RE running, the waypoints are invisible. |
|
circonian |
View Public Profile |
Send a private message to circonian |
Send email to circonian |
Visit circonian's homepage! |
Find More Posts by circonian |
Add circonian to Your Buddy List |
03/04/16, 06:48 AM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/02/16, 04:01 AM | |
Hello,
While being in the Library of Dusk (zoneIndex 154 in Quest dungeon in ColdHarbor) the X is negative. With GetMapPlayerPosition("player") I'm at : Library of Dusk: 68.66×17.40 (coldharbor/thelibrarydusk_base) With LibGPS, I'm at : -0.1x0.3 For those cases, could you retun the Global coordinates of the position in the map (here Coldharbor) ? Thank you, I had a user who flooded me of books with invalid coords yesterday, I won't say his name here
Last edited by Ayantir : 04/02/16 at 04:04 AM.
|
|
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
04/02/16, 04:07 AM | ||
Coldharbour is left of Tamriel in the global coordinate space, that's why the x coordinate for any position in Coldharbour will be negative. |
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/24/16, 12:41 PM | |
A little feedback :
Lua Code:
Just note that user:/AddOns/HarvestMap/Libs/CustomCompassPins/CustomCompassPins.lua:61: in function '(anonymous)' Is CustomCompassPins rev 31. (only included in HarvestMap) and it is : Lua Code:
Triggerred in Malooc's Tomb, a new zone introduced by TG.
Last edited by Ayantir : 04/24/16 at 12:42 PM.
|
|
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
04/24/16, 12:55 PM | ||
|
||
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Visit sirinsidiator's homepage! |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/27/16, 06:08 PM | |
I still have a little issue !
In order to get my mapIndex, I use this : Lua Code:
When i'm in a city per exemple, mapIndex is nil and so I use GPS:GetCurrentMapMeasurements() It works well. But when I'm in a dungeon in a city, let's say an Outlaw refuge, after doing GPS:GetCurrentMapMeasurements() All map functions are binded to the city map. GetMapName() returns the city name, GetMapContentType() returns 0 instead of 2 per exemple. Please note that this problem is only here at the 1st time when Measurements have not yet being done. I tried to force in GetCurrentMapMeasurements() Lua Code:
And tried : Lua Code:
Without any result .. Thanks ! |
|
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
04/28/16, 01:18 AM | ||
Use GetCurrentZoneIndex() This works in cities, too. |
||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Visit votan's homepage! |
Find More Posts by votan |
Add votan to Your Buddy List |
04/28/16, 04:09 AM | ||
And I do not want to use GetCurrentZoneIndex() because of the city problem. ex: I'm in Wayrest, no mapIndex, so let's use it's zoneIndex. I build all the pins of the zoneIndex (Wayrest), now my character moves to Stormhaven.. I don't have any data, because the only one I have is the Wayrest one. I could build a translation table of zoneIndex -> mapIndex if this bug cannot be fixed, but I would like to avoid. Even more my main problem is the function GetMapContentType() which returns the incorrect value due to this problem.
Last edited by Ayantir : 04/28/16 at 04:11 AM.
|
||
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
04/28/16, 04:44 AM | |||
/edit 2: What if you do this: Lua Code:
Last edited by votan : 04/28/16 at 05:07 AM.
|
|||
|
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Visit votan's homepage! |
Find More Posts by votan |
Add votan to Your Buddy List |
04/28/16, 05:12 AM | |
I looked a bit more, my analyzis was a bit false..
It's the function Lua Code:
which broke the thing. After using it, GetMapContentType() inherits of the values of the upper map. My code runs 3 times (I have X callbacks bind to this code depending on filters user activated). 1st run : before : ok after : ok 2nd run before : nok after : nok 3rd run : before : nok after : nok If I comment GPS:GlobalToLocal(pinData.x, pinData.y), all is okay. I tried to do a Lua Code:
The strange thing is after the first run, all is still okay.
Last edited by Ayantir : 04/28/16 at 05:16 AM.
|
|
|
Ayantir |
View Public Profile |
Send a private message to Ayantir |
Send email to Ayantir |
Visit Ayantir's homepage! |
Find More Posts by Ayantir |
Add Ayantir to Your Buddy List |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.