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: | 30,034 |
Total downloads: | 3,393,837 |
Favorites: | 1,795 |
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 |
04/24/20, 02:51 PM | |||
That's the one but... I have version 4 (which is the one on here) and yet there are some differences in its LibGPS, I compared them and it wasn't even just 1 line. No idea why. I deleted my MapCoordinates, added the one on here and now it's giving no errors (with the new LibGPS lib). ¯\_(ツ)_/¯
Thanks for the tip, wouldn't even have thought that an addon that has the same version would have a different bundled Lib version o.O
|
|||
|
HowellQagan |
View Public Profile |
Send a private message to HowellQagan |
Find More Posts by HowellQagan |
Add HowellQagan to Your Buddy List |
04/24/20, 10:19 AM | |
Forum posts: 3
File comments: 5
Uploads: 0
|
Might be this one
https://esoui.com/downloads/info520-MapCoordinates.html However when I download that addon, line 122 in MapCoordinates/Libs/LibGPS/LibGPS.lua is empty. @HowellQagan Is that the addon you use? Did you edit LibGPS in that folder? |
|
Knurps |
View Public Profile |
Send a private message to Knurps |
Find More Posts by Knurps |
Add Knurps to Your Buddy List |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/24/20, 09:58 AM | |
I yolo'd and updated the a̶d̶d̶o̶n̶ library since it says it's backwards compatible. My addons weren't fond of my decision
Warning: Spoiler
Lua Code:
Lua Code:
Lua Code:
It's rollback time!
Last edited by HowellQagan : 04/24/20 at 10:01 AM.
|
|
|
HowellQagan |
View Public Profile |
Send a private message to HowellQagan |
Find More Posts by HowellQagan |
Add HowellQagan to Your Buddy List |
04/24/20, 03:46 AM | |
Hey. I've just uploaded LibGPS 3.0. Can you please check if you can manage to reproduce this error with it?
|
|
|
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
04/23/20, 11:03 PM | |
|
Got this error in Artaeum after accepting a quest. Happens every time. LibGPS v2.0 r21.
Code:
user:/AddOns/LibGPS/LibGPS.lua:540: operator - is not supported for nil - number stack traceback: user:/AddOns/LibGPS/LibGPS.lua:540: in function 'lib:GlobalToLocal' |caaaaaa<Locals> self = [table:1]{suppressCount = 0, LIB_EVENT_STATE_CHANGED = "OnLibGPS2MeasurementChanged"}, measurements = [table:2]{scaleX = 0.0075648004, scaleY = 0.0075647999, zoneIndex = 631, mapIndex = 33, offsetX = 0.8595568285, offsetY = -0.0775180009} </Locals>|r user:/AddOns/WaypointIt/core/WaypointIt.lua:1619: in function 'WaypointIt:SetWaypoint' |caaaaaa<Locals> self = [table:3]{SavedVarVersion = 0.1, delayProcessing = T, isListDirty = T, name = "WaypointIt", CodeVersion = "1.12.4"}, changedMap = F </Locals>|r user:/AddOns/WaypointIt/core/WaypointIt.lua:472: in function 'OnQuestPositionRequestComplete' |caaaaaa<Locals> eventCode = 131101, taskId = 790, pinType = 16, xLoc = 0.71185219287872, yLoc = 0.17619806528091, areaRadius = 0, insideCurrentMapWorld = T, isBreadcrumb = T </Locals>|r Code:
function lib:GlobalToLocal(x, y) local measurements = lib:GetCurrentMapMeasurements() if (measurements) then x = (x - measurements.offsetX) / measurements.scaleX y = (y - measurements.offsetY) / measurements.scaleY return x, y end -- This code path is unhandled. Solution: -- return nil end edit: Actually, that's an issue but not the issue, and Lua might return nil for unhandled code paths in functions by default. Hmm... edit: Okay, looks like GlobalToLocal is being passed nil arguments. Probably a WaypointIt issue then.
Last edited by fireundubh : 04/23/20 at 11:52 PM.
|
|
fireundubh |
View Public Profile |
Send a private message to fireundubh |
Find More Posts by fireundubh |
Add fireundubh to Your Buddy List |
02/29/20, 01:41 AM | |
Forum posts: 0
File comments: 66
Uploads: 0
|
Re: Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong
Thank you very much for the quick fix.
Tested version 2.0.r21 and all pins are correct after porting. Snow |
|
Snow |
View Public Profile |
Send a private message to Snow |
Send email to Snow |
Find More Posts by Snow |
Add Snow to Your Buddy List |
02/28/20, 04:11 PM | ||
Re: Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong
Last edited by sirinsidiator : 02/28/20 at 04:11 PM.
|
||
|
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/28/20, 06:32 AM | |||
Forum posts: 0
File comments: 4
Uploads: 0
|
Re: Re: UI Error
|
||
|
WVCoop1015 |
View Public Profile |
Send a private message to WVCoop1015 |
Send email to WVCoop1015 |
Find More Posts by WVCoop1015 |
Add WVCoop1015 to Your Buddy List |
02/28/20, 04:49 AM | ||
Re: UI Error
|
||
|
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/27/20, 09:10 PM | |
Forum posts: 0
File comments: 4
Uploads: 0
|
UI Error
Hello Guys, I just downloaded LoreBooks and the addon will not work for me unless i also enable "Libstub" library. If that addon is disabled, i get a UI error that says: "Cannot find a library instance of LibGPS2" I have all of the libraries the addon says is required, and I also have out of date addons loaded. Any idea what the problem Could be?
I saw there was an update today for LibGPS2 to work without LibStub, but could this be tied together? |
|
WVCoop1015 |
View Public Profile |
Send a private message to WVCoop1015 |
Send email to WVCoop1015 |
Find More Posts by WVCoop1015 |
Add WVCoop1015 to Your Buddy List |
02/27/20, 05:21 PM | |
Forum posts: 0
File comments: 66
Uploads: 0
|
Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong
Thanks for the quick reply.
I did the same as described in the first post, but now activaded the debug mode "/libgpsdebug 1" after loggin in to Murkmire Lilmoth. After the port to Alinor the pins for Summerset were in the wrong places again. This is what was printed to chat:
Warning: Spoiler
[LibGPS] debug mode enabled
[LibGPS] Debug: SetMapToPlayerLocation [LibGPS] Called from: LibGPS/LibGPS.lua:480: in function 'lib:CalculateMapMeasurements' <Locals> self = [table:1]{debugMode = T, LIB_EVENT_STATE_CHANGED = "OnLibGPS2MeasurementChanged", suppressCount = 0}, returnToInitialMap = F, mapId = "Art/maps/summerset/summerset_b..." </Locals> user:/AddOns/LibGPS/LibGPS.lua:298: in function 'NewSetMapToPlayerLocation' <Locals> result = 2 </Locals> user:/AddOns/HarvestMap/Libs/LibMapMetaData/LibMapMetaData.lua:73: in function 'SetMapToPlayerLocation' user:/AddOns/VotansMiniMap/Main.lua:818: in function 'UpdateMap' <Locals> needChange = T, oldMapType = 0, mapId = "" </Locals> (tail call): ? user:/AddOns/VotansMiniMap/Main.lua:916: in function 'minimapUpdate' for Art/maps/summerset/summerset_base_0.dds [LibGPS] Debug: Store map measurement for summerset/summerset_base [LibGPS] Warning: Current map measurement might be wrong summerset/summerset_base 32 0 0 0.019447404891253 0.020399056375027 0 0 0.001589999999851 0.61184042692184 0 0 0.081758980632227 29.993565176421 [LibGPS] Debug: SetMapToPlayerLocation [LibGPS] Called from: LibGPS/LibGPS.lua:480: in function 'lib:CalculateMapMeasurements' <Locals> self = [table:1]{debugMode = T, LIB_EVENT_STATE_CHANGED = "OnLibGPS2MeasurementChanged", suppressCount = 1}, returnToInitialMap = F, mapId = "Art/maps/summerset/alinor_base..." </Locals> user:/AddOns/LibGPS/LibGPS.lua:298: in function 'NewSetMapToPlayerLocation' <Locals> result = 2 </Locals> user:/AddOns/HarvestMap/Libs/LibMapMetaData/LibMapMetaData.lua:73: in function 'SetMapToPlayerLocation' user:/AddOns/Lib3D/Lib3D.lua:92: in function 'lib:RefreshZoneMeasurement' <Locals> self = [table:2]{currentZoneIndex = 615, currentZoneId = 1011, DEFAULT_GLOBAL_TO_WORLD_FACTOR = 25000}, zoneIndex = 615, zoneId = 1011, originalMapTexture = "Art/maps/summerset/alinor_base...", hasMapPing = F, originalPinX = 0, originalPinY = 0, centerX = 164695, _ = 0, centerY = 334518, success = T </Locals> user:/AddOns/Lib3D/Lib3D.lua:125: in function 'OnPlayerActivated' <Locals> zoneIndex = 615, zoneId = 1011, newWorld = T </Locals> for Art/maps/summerset/alinor_base_0.dds [LibGPS] Debug: Store map measurement for summerset/alinor_base After loggin out LibGPS2.lua for Summersend is:
Warning: Spoiler
Code:
["Art/maps/summerset/summerset_base_0.dds"] = { ["mapIndex"] = 32, ["scaleY"] = 29.9935651764, ["offsetY"] = 0, ["zoneIndex"] = 615, ["offsetX"] = 0, ["scaleX"] = 0.0817589806, }, Hope the additional info helps. Snow |
|
Snow |
View Public Profile |
Send a private message to Snow |
Send email to Snow |
Find More Posts by Snow |
Add Snow to Your Buddy List |
02/27/20, 02:04 PM | ||
Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong
The most important information for me to be able to find out what is going on, is to know where your character is located when LibGPS measures a map (usually happens when you open the map menu). The result of a measurement greatly depends on which world (as in the 3d space) you are in. You can also type "/libgpsdebug 1" in chat to see some additional info when it measures maps. |
||
|
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/27/20, 04:59 AM | |
Forum posts: 0
File comments: 66
Uploads: 0
|
LibGPS2 Version: 2.0 r19 Measurements sometimes wrong
Measurements of LibGPS2 Version: 2.0 r19 seems to be incorrect for a map when you port to a submap.
This is, how I got the error:
Warning: Spoiler
Code:
["Art/maps/summerset/summerset_base_0.dds"] = { ["mapIndex"] = 32, ["offsetX"] = 0, ["offsetY"] = 0, ["scaleX"] = 0.0817589806, ["scaleY"] = 29.9935651764, ["zoneIndex"] = 615, },
Warning: Spoiler
Code:
["Art/maps/summerset/summerset_base_0.dds"] = { ["mapIndex"] = 32, ["offsetX"] = -0.0035352000, ["offsetY"] = 0.6064643878, ["scaleX"] = 0.2635415835, ["scaleY"] = 0.2635416176, ["zoneIndex"] = 615, }, Hope this helps tracking down the issue. Snow |
|
Snow |
View Public Profile |
Send a private message to Snow |
Send email to Snow |
Find More Posts by Snow |
Add Snow to Your Buddy List |
02/26/20, 04:22 PM | |
|
Everything seems to be working fine now, thanks for the quick response and fixes!
Love your work |
|
tombaa |
View Public Profile |
Send a private message to tombaa |
Send email to tombaa |
Find More Posts by tombaa |
Add tombaa 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.