Go to Page... |
Compatibility: | Necrom (9.0.0) Scribes of Fate (8.3.5) |
Updated: | 05/17/23 12:51 PM |
Created: | 06/27/14 12:58 PM |
Monthly downloads: | 113,750 |
Total downloads: | 2,757,657 |
Favorites: | 1,645 |
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.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 |
![]() |
||||
|
Thanks for the tip
![]()
|
|||
![]() |
![]() |
AlbinoPython |
View Public Profile |
Send a private message to AlbinoPython |
Find More Posts by AlbinoPython |
Add AlbinoPython to Your Buddy List |
![]() |
|||
If you want to work around this issue, you could check if GetMapFilterType returns 0 before running any map related code, since that value should not be possible unless the map system is not ready. However since this is purely a game bug and not an actual case that would exist outside of that, it may be better to just wait for the actual fix in the game itself. I'm also not sure if there is anything I could do in the lib, since this case is really just an addon interacting with the map at a wrong time. I could add the check in my code, but then I'd pretty much have to throw an assertion error myself, since the function was simply called at the wrong time and there is no correct result it could return at this moment. |
|||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
||
|
@sirinsidiator, I am the author of Provinatus and I get this error when a player uses a wayshrine to go to another zone and also when entering a delve. Seems like an issue getting the current map measurements but not sure what it is. Do I need to wait for some 'zone loaded' event before calling this method?
|
|
![]() |
![]() |
AlbinoPython |
View Public Profile |
Send a private message to AlbinoPython |
Find More Posts by AlbinoPython |
Add AlbinoPython to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 18
Uploads: 0
|
This occurs in the "Provinatus" addon every time I zone change, including into and out of houses, dungeons, etc. The error originates from LibGPS. I am not sure which addon needs to be addressed.
Link to Provinatus: https://esoui.com/downloads/info1943...UpDisplay.html Code:
user:/AddOns/LibGPS/TamrielOMeter.lua:288: attempt to index a nil value stack traceback: user:/AddOns/LibGPS/TamrielOMeter.lua:288: in function 'TamrielOMeter:GetLocalDistanceInMeters' |caaaaaa<Locals> self = [table:1]{measuring = F}, lx1 = 0, ly1 = 0, lx2 = 0, ly2 = 0, worldSizeX = 1, worldSizeY = 1 </Locals>|r (tail call): ? user:/AddOns/Provinatus/Projection.lua:18: in function 'ProvinatusProjection:Project' |caaaaaa<Locals> self = [table:2]{}, X = 0, Y = 0, Projection = [table:3]{} </Locals>|r user:/AddOns/Provinatus/Provinatus.lua:175: in function 'ProvinatusDriver:DrawElements' |caaaaaa<Locals> self = [table:4]{}, Layer = [table:5]{}, Elements = [table:6]{}, RenderedElements = [table:7]{}, Index = 1, Element = [table:8]{Alpha = 1, Height = 24, Width = 24, X = 0, Y = 0, Texture = "/esoui/art/icons/mapkey/mapkey..."} </Locals>|r user:/AddOns/Provinatus/Layers/PlayerOrientation.lua:19: in function 'ProvinatusPlayerOrientation:Update' |caaaaaa<Locals> self = [table:5], Elements = [table:6], Element = [table:8] </Locals>|r user:/AddOns/Provinatus/Provinatus.lua:144: in function 'ProvinatusDriver:OnUpdate' |caaaaaa<Locals> self = [table:9]{DisplayEnable = T, X = 0, GroupSize = 0, Heading = 0, __isAbstractClass = F, Y = 0}, Name = 15, Layer = [table:5] </Locals>|r user:/AddOns/Provinatus/Provinatus.lua:123: in function '(anonymous)' |
![]() |
![]() |
Paraselene Alqwi |
View Public Profile |
Send a private message to Paraselene Alqwi |
Send email to Paraselene Alqwi |
Find More Posts by Paraselene Alqwi |
Add Paraselene Alqwi to Your Buddy List |
Jester13 |
View Public Profile |
Send a private message to Jester13 |
Send email to Jester13 |
Find More Posts by Jester13 |
Add Jester13 to Your Buddy List |
![]() |
||||
Re: Re: Re: Constant error messages
|
||||
![]() |
![]() |
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 |
![]() |
|||
Forum posts: 0
File comments: 8
Uploads: 0
|
Re: Re: Constant error messages
2. I deleted the whole SavedVariables folder, as suggested by someone else on this thread, and that didn't work. I just looked into it right now, and... there's nothing for LibGPS. How do I add one? |
||
![]() |
![]() |
Jester13 |
View Public Profile |
Send a private message to Jester13 |
Send email to Jester13 |
Find More Posts by Jester13 |
Add Jester13 to Your Buddy List |
![]() |
||
Re: Constant error messages
2. Try this: Delete the SavedVar of LibGPS while game is not running. The data is maybe corrupted. |
||
![]() |
![]() |
votan |
View Public Profile |
Send a private message to votan |
Send email to votan |
Find More Posts by votan |
Add votan to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 8
Uploads: 0
|
Constant error messages
It's definitely this addon that's the problem. Here are the UI errors that show up:
user:/AddOns/LibGPS/WaypointManager.lua:42: attempt to index a nil value stack traceback: user:/AddOns/LibGPS/WaypointManager.lua:42: in function 'WaypointManager:Initialize' user:/AddOns/LibGPS/WaypointManager.lua:19: in function 'WaypointManager:New' user:/AddOns/LibGPS/StartUp.lua:50: in function 'lib.internal:Initialize' user:/AddOns/LibGPS/api.lua:172: in function '(main chunk)' ----- user:/AddOns/LibGPS/api.lua:35: attempt to index a nil value stack traceback: user:/AddOns/LibGPS/api.lua:35: in function 'lib:GetCurrentMapMeasurement' user:/AddOns/LibGPS/MapAdapter.lua:48: in function 'SetMapToPlayerLocation' /EsoUI/Ingame/Map/WorldMap.lua:3158: in function 'Update' The second one repeats and I have to spam the E button to get rid of it, then quickly open the main menu to disable the addon before it starts up again. |
![]() |
![]() |
Jester13 |
View Public Profile |
Send a private message to Jester13 |
Send email to Jester13 |
Find More Posts by Jester13 |
Add Jester13 to Your Buddy List |
![]() |
||
Forum posts: 0
File comments: 8
Uploads: 0
|
Re: Getting this error
|
|
![]() |
![]() |
kclobo2003 |
View Public Profile |
Send a private message to kclobo2003 |
Send email to kclobo2003 |
Find More Posts by kclobo2003 |
Add kclobo2003 to Your Buddy List |
![]() |
|
Forum posts: 0
File comments: 8
Uploads: 0
|
Getting this error
I have checked all my folders and there are no other GPS folders in my other addon folders.
https://ibb.co/2NVLHqZ |
![]() |
![]() |
kclobo2003 |
View Public Profile |
Send a private message to kclobo2003 |
Send email to kclobo2003 |
Find More Posts by kclobo2003 |
Add kclobo2003 to Your Buddy List |
![]() |
||
The box in the character screen by default shows the state for all your characters at once, so when an addon is active on one character it shows as a filled checkbox and only when it is active on all of them it will show a checkmark. ![]() If it does indeed show the checkmark and still doesn't work when you log in, please upload your LibDebugLogger.lua file from the Saved Variables folder to https://sir.insidi.at/or/logviewer/ and send me the share link via 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 |
![]() |
|
Can someone here talk to me like I'm a 4 year old and explain those instructions? I am so lost. I have to add code to ... something? Where? Just copy paste that stuff? What file and what line do I insert it into? I'm just not getting this at all, and of course, when in game (not the ADD ONS on character screen) this lib is not checked. The game shuts it off. So help?
Last edited by Rhaevyn : 10/14/21 at 09:23 PM.
|
|
![]() |
![]() |
Rhaevyn |
View Public Profile |
Send a private message to Rhaevyn |
Send email to Rhaevyn |
Find More Posts by Rhaevyn |
Add Rhaevyn to Your Buddy List |
![]() |
|
Forum posts: 7
File comments: 137
Uploads: 0
|
new version of libgps breaks addon i get this error on pts but 3.0.3 works fine.
bad argument #2 to 'string.format' (integer expected, got nil) stack traceback: [C]: in function 'string.format' user:/AddOns/ZGESO/Pointer.lua:1235: in function 'fn' |caaaaaa<Locals> checker = "gps", gps = [table:1]{offsetY = 0.7257384210825, id = 243, zoneId = 381, offsetX = 0.21938160061836, scaleX = 0.031974401324987, scaleY = 0.031974401324987}, tex = 243 </Locals>|r /EsoUI/Ingame/SlashCommands/SlashCommands_Shared.lua:204: in function 'DoCommand' |caaaaaa<Locals> text = "/zgpos gps", command = "/zgpos", arguments = "gps", fn = user:/AddOns/ZGESO/Pointer.lua:1229 </Locals>|r /EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1807: in function 'SharedChatSystem:SubmitTextEntry' |caaaaaa<Locals> self = [table:2]{minContainerWidth = 300, numUnreadMails = 26, isAgentChatActive = F, loaded = T, isMinimizingOrMaximizing = F, isMinimized = F, ignoreTextEntryChangedEvent = F, shouldMinimizeAfterEntry = F, allowMultipleContainers = F, currentChannel = 0, maxContainerWidth = 550, maxContainerHeight = 380, suppressSave = F, currentNumNotifications = 3, minContainerHeight = 170}, text = "/zgpos gps", valid = F, prefix = 47 </Locals>|r /EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2532: in function 'ZO_ChatTextEntry_Execute' |caaaaaa<Locals> control = ud </Locals>|r ZO_ChatWindowTextEntryEditBox_Enter:3: in function '(main chunk)' |caaaaaa<Locals> self = ud </Locals>|r (tail call): ? (tail call): ?
Last edited by snichols7778 : 10/06/21 at 09:15 PM.
|
![]() |
![]() |
snichols7778 |
View Public Profile |
Send a private message to snichols7778 |
Send email to snichols7778 |
Find More Posts by snichols7778 |
Add snichols7778 to Your Buddy List |
![]() |
||||
Re: Re: Re: LibGPS needs new version?
Last edited by Scootworks : 10/03/21 at 03:56 AM.
|
||||
![]() |
![]() |
Scootworks |
View Public Profile |
Send a private message to Scootworks |
Send email to Scootworks |
Find More Posts by Scootworks |
Add Scootworks 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.