Quantcast
Download
(18 Kb)
Download
Updated: 04/25/20 11:44 AM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.4)
Updated:04/25/20 11:44 AM
Created:06/27/14 12:58 PM
Monthly downloads:55,325
Total downloads:980,379
Favorites:827
MD5:
LibGPS  Popular! (More than 5000 hits)
Version: 3.0.1
by: sirinsidiator, votan
Have you ever tried to save or send a position on the map with your addon? You might have noticed that this is not as easy as it sounds.
This library efficiently converts a position on any map into a global position that you can save or share. This is made possible by measuring maps once when they are encountered for the first time during a play session and only doing simple calculations afterwards.

Dependencies
Make sure to install the following required libraries in order to use LibGPS.


Quick Start
Add the necessary statements in your addon manifest to load the files:
Code:
## DependsOn: LibGPS>=30
NOTE: The >=30 tells the game to require AddOnVersion 30 or greater, which happens to be the first version with the 3.0 API and has nothing to do with the semantic version. It is simply a build number provided by the build script used to package the library.

In order to use the library you have to get an instance from the global variable:
Code:
local gps = LibGPS3
Next you can convert a position on the currently active map into a global position on the Tamriel map by calling LocalToGlobal.
For example you can convert the local player position into a global position with the following line of code:
Code:
local x, y = gps:LocalToGlobal(GetMapPlayerPosition("player"))
The resulting x and y can be saved, sent or whatever else you want to do with it.
NOTE: For some locations the global coordinates can be outside the bounds for normalized coordinates, for example Coldharbour has negative x coordinates as it is to the left of Tamriel in the global coordinate space.

After you have loaded or received a global position you just need to call GlobalToLocal to get the position on the current map.
Code:
local x, y = gps:GlobalToLocal(x, y)


Migrating from LibGPS2
LibGPS3 offers full backwards compatibility to LibGPS2 (see compatibility.lua), but it's still highly recommended to migrate to the new API.
In order to use the new API, simply access the library via the "LibGPS3" global variable instead of "LibGPS2" or LibStub.
Most functions stayed the same between v2 and v3, but there are a few breaking changes. The following list shows how to migrate those cases.

Renamed functions
Some function names have been changed to better reflect the return value.
  • ClearCurrentMapMeasurements -> ClearCurrentMapMeasurement
  • GetCurrentMapMeasurements -> GetCurrentMapMeasurement
  • CalculateMapMeasurements -> CalculateMapMeasurement

Measurement object
GetCurrentMapMeasurement now returns an object with some convenience methods instead of a plain table. See the description below in the API reference for details on what it can do.

LocalToGlobal
The mapIndex return value has been removed as our understanding of what a map is has changed and it was deemed unnecessary for most use cases.
If you still need it, you can use GetCurrentMapMeasurement() to fetch the measurement object and retrieve it from there.

ZoneToGlobal
This method was used a long time ago to offer a way to migrate LibGPS1 coordinates. Since then it has become effectivly unnecessary and only causes confusion. As such it has been removed without replacement.

PanToMapPosition
This has become easily possible via ingame functionality since the time it was initially added to the library. Simply use "ZO_WorldMap_GetPanAndZoom():PanToNormalizedPosition(x, y)" instead.

OnLibGPS2MeasurementChanged callback
There is now a constant LIB_EVENT_STATE_CHANGED for the callback name, which should be used instead of the plain string.



API Reference
Here is a complete list of the functionality that is provided by LibGPS:

IsReady
Returns true as long as the player exists.
Code:
lib:IsReady()
IsMeasuring
Returns true if the library is currently doing any measurements.
Code:
lib:IsMeasuring()
ClearMapMeasurements
Removes all cached measurement values.
Code:
lib:ClearMapMeasurements()
ClearCurrentMapMeasurement
Removes the cached measurement for the map that is currently active.
Code:
lib:ClearCurrentMapMeasurement()
GetCurrentMapMeasurement
Returns a measurement object for the active map or nil if the measurement could not be calculated for some reason.
See the description of the Measurement object for details.
Code:
Measurement measurement = lib:GetCurrentMapMeasurement()
GetCurrentMapParentZoneIndices
Returns the mapIndex, zoneIndex and zoneId of the parent zone for the currently set map.
Code:
number mapIndex, number zoneIndex, number zoneId = lib:GetCurrentMapParentZoneIndices()
CalculateMapMeasurement
Calculates the measurement for the current map and all parent maps.
This method does nothing if there is already a cached measurement for the active map.
Returns a boolean to indicate if the measurement was successful and a SetMapResultCode indicating if the map has changed independently of the actual result of the measurement.
Code:
boolean isSuccess, SetMapResultCode result = lib:CalculateMapMeasurement()
LocalToGlobal
Converts the given map coordinates on the current map into coordinates on the Tamriel map.
Returns x and y on the world map or nil if the measurements of the active map are not available.
Code:
number x, number y = lib:LocalToGlobal(number x, number y)
GlobalToLocal
Converts the given global coordinates into a position on the active map.
Returns x and y on the current map or nil if the measurements of the active map are not available.
Code:
number x, number y = lib:GlobalToLocal(number x, number y)
SetPlayerChoseCurrentMap
This function sets the current map as player chosen so it won't snap back to the previous map.
Code:
lib:SetPlayerChoseCurrentMap()
SetMapToRootMap
Sets the best matching root map on the given global position: Tamriel, Cold Harbour or Clockwork City and what ever will come.
Returns SET_MAP_RESULT_FAILED, SET_MAP_RESULT_MAP_CHANGED depending on the result of the API calls.
Code:
SetMapResultCode result = lib:SetMapToRootMap(number globalX, number globalY)
MapZoomInMax
Repeatedly calls ProcessMapClick on the given global position starting on the root map (using the function above) until nothing more would happen.
Returns SET_MAP_RESULT_FAILED, SET_MAP_RESULT_MAP_CHANGED or SET_MAP_RESULT_CURRENT_MAP_UNCHANGED depending on the result of the API calls.
Code:
SetMapResultCode result = lib:MapZoomInMax(number globalX, number globalY)
PushCurrentMap
This function stores information about how to return to the current map on a stack.
Code:
lib:PushCurrentMap()
PopCurrentMap
Switches to the last map that was put on the stack.
Returns SET_MAP_RESULT_FAILED, SET_MAP_RESULT_MAP_CHANGED or SET_MAP_RESULT_CURRENT_MAP_UNCHANGED depending on the result of the API calls.
Code:
SetMapResultCode result = lib:PopCurrentMap()
GetCurrentWorldSize
Returns the current size of Tamriel in world-units.
Code:
number scale = lib:GetCurrentWorldSize()
GetLocalDistanceInMeters
Returns the distance in meters of given local coords.
Code:
number distance = lib:GetLocalDistanceInMeters(number lx1, number ly1, number lx2, number ly2)
GetGlobalDistanceInMeters
Returns the distance in meters of given global coords.
Code:
number distance = lib:GetGlobalDistanceInMeters(number gx1, number gy1, number gx2, number gy2)
GetWorldGlobalRatio
Returns how much greater the level is compared to its size on the map.
Code:
number ratio = lib:GetWorldGlobalRatio()
GetGlobalWorldRatio
Returns how much smaller global scaled values must be to fit the current level.
Code:
number ratio = lib:GetGlobalWorldRatio()
lib.LIB_EVENT_STATE_CHANGED
This callback is fired on the global CALLBACK_MANAGER when a map measurement begins or ends and passes the same value as lib:IsMeasuring().
If you have a custom handler for player waypoints in EVENT_MAP_PING you may want to ignore these events while a measurement is active.
Code:
CALLBACK_MANAGER:RegisterCallback(lib.LIB_EVENT_STATE_CHANGED, function(boolean isMeasuring) end)


Measurement
This object returned by GetCurrentMapMeasurement() contains all the data about a map measurement and offers some convenience functions to interact with them.

GetId
Returns a unique id for the measurement which is used to store it in the saved variables. Details are implementation specific and may change between versions.
Code:
local id = measurement:GetId()
GetMapIndex
Returns the mapIndex or nil if the measured map doesn't have one.
Code:
local mapIndex = measurement:GetMapIndex()
GetZoneId
Returns the zoneId for the measurement. Keep in mind that a map can have multiple zoneIds within its borders and a zoneId can also span multiple maps.
Code:
local zoneId = measurement:GetZoneId()
GetScale
Returns the scale in the global coordinate space for the current map.
Code:
local scaleX, scaleY = measurement:GetScale()
GetOffset
Returns the offset in the global coordinate space for the current map.
Code:
local offsetX, offsetY = measurement:GetOffset()
IsValid
Returns true if the measurement contains valid data.
Code:
local valid = measurement:IsValid()
ToGlobal
Converts and returns global coordinates for a given local coordinate pair. Used by LocalToGlobal.
Code:
local gx, gy = measurement:ToGlobal(x, y)
ToLocal
Converts and returns local coordinates for a given global coordinate pair. Used by GlobalToLocal.
Code:
local x, y = measurement:ToLocal(gx, gy)
GetCenter
Returns the center of the measured map as global coordinates.
Code:
local cx, cy = measurement:GetCenter()
Contains
Returns true if the given global coordinates are inside the measured map.
Code:
local inside = measurement:Contains(gx, gy)
version 3.0.1 - sirinsidiator
  • Added hook for SetMapToDigSitePosition (#10, thanks Shinni!)
  • Fixed compatibility assertion when LibStub is not loaded

version 3.0.0 - sirinsidiator & votan
  • Updated code structure and split it into multiple files
  • Changed saved variable format to be more compact
  • Switched to semantic versioning
  • Switched to LibDebugLogger and LibChatMessage for debug and chat output respectively
    • NOTE: Make sure you have them installed separately!
  • Introduced a new API v3 and added compatibility layer for LibGPS2 ->
    • NOTE: Check the migration guide on the description tab to see what has changed and how to switch to the new API
  • Added experimental support for calculating distances in world space
    • NOTE: Let us know if you find any problems
  • Fixed some bugs and introduced new ones
  • Updated API version in manifest


version 2.0 r21 - sirinsidiator
  • Reverted a change that would cause measurements to be incorrect in combination with mini map addons
    • NOTE: Persisted measurements will be wiped automatically

version 2.0 r20 - sirinsidiator
  • Fixed error when LibStub is not loaded

version 2.0 r19 - sirinsidiator
  • Fixed version updates for persistent measurements not working correctly in some cases
  • Fixed ClearMapMeasurements not removing persistent data
  • Fixed map measurements producing illegal values when the player pin is near the world origin for some reason, which could result in inaccurate measurements or even errors on load.
    • NOTE: The error will still show up on the first load after updating the library, but should be gone after that

version 2.0 r18 - votan
  • Persist measurements. Do not do them on every (re-)load again.
  • API version update.
  • Hook SetMapToAutoMapNavigationTargetPosition, too.
  • LibMapPing not bundled anymore.

version 2.0 r17 - votan
  • Update to API 100027 "Elsweyr".

version 2.0 r16 - sirinsidiator
  • fixed error due to renamed methods in Murkmire

version 2.0 r15 - votan
  • Handling the new zone "Artaeum".

version 2.0 r14 - votan
  • Fixed MapZoomInMax. Now working for Cold Harbour and Clockwork City aswell.
  • New function SetMapToRootMap(x, y) using global coordinates to choose the right root map.
  • LibMapPing rev 6
    • Fixed map ping events can cause wrong waypoint/rally pins in combination with addons changing the current map.

version 2.0 r13 - votan
  • Fixed issue with missing waypoint pin, if addons use different revisions. Thanks to @babylon.
  • Fully compatible with Morrowind+, now.
  • Restore pan & zoom after measurement as well.

version 2.0 r12 - votan
  • Handling the new zone "Clockwork City".

version 2.0 r11 - votan
  • Fixed issue, which was fixed in rev9 and lost in rev10, again. e.g. "Show on Map"
  • Update API version in manifest
  • Make use of new API functions to get pin manager and pan to location.

version 2.0 r10 - sirinsidiator
  • added new method GetCurrentMapParentZoneIndices
  • update API version in manifest

version 2.0 r9 - votan
  • Fixed issue with maps like "Blackwood Borderlands".
  • update API version in manifest

version 2.0 r8 - sirinsidiator
  • updated LibMapPing to r5
  • update API version in manifest

version 2.0 r7.1 - sirinsidiator
  • fixed issue in PopCurrentMap where it would throw an error on some maps

version 2.0 r7a - sirinsidiator
  • updated the bundled LibMapPing to r4
  • no other changes

version 2.0 r7 - sirinsidiator
  • fixed player waypoints not showing on the map in some cases
  • removed some compatibility code for old API

version 2.0 r6 - sirinsidiator
  • Prepared library for API version 100014
  • Improved measurement algorithm for better addon compatibility
  • Added LibMapPing to handle silent setting of map pings
    • Note: This is a required dependency and you need to include it in your addon and load it before LibGPS
  • Added two new functions PushCurrentMap and PopCurrentMap to handle returning to a previous map

version 2.0 r5.4 - votan
  • Fixed muting waypoint click sound can get stucked. (you need to place the waypoint more times until it is working again)
  • Hooked ProcessClick to get map measurement while clicking down to a (sub-)zone already.

version 2.0 r5.3 - votan
  • Restore player waypoint correctly. Broken since ESO 2.2.5???

version 2.0 r5.2 - votan
  • New functions IsReady() and IsMeasuring()
  • Earlier initialization: LibGPS is ready at player activation.

version 2.0 r5.1 - votan
  • New origin map location detection does not use localized names (GetMapName, GetPlayerLocationName) anymore. Instead working with SetMapToPlayerLocation. Thanks to circonian for inspiring idea.

version 2.0 r5 - votan
  • Origin map location detection: isPlayerLocation uses in-string search and exception list.
  • Hook all SetMapTo* functions, for a deterministic last action
Both changes hopefully fixing problems with dungeons.

version 2.0 r4.3 - votan
  • Fixed map measurement for dungeons like "The Harborage".
  • Removed code for API 100011.

version 2.0 r4.2 - votan
  • Fix for recent changes to EVENT_MAP_PING behavior. (Update 7)

version 2.0 r4.1 - votan
  • Fixed minor bug with Transitus Shrine of alliance base: Depending on when LibGPS does its measurement, you got locked to the alliance base subzone, because map navigation is disabled while interacting with a Transitus Shrine.

version 2.0 r4 - votan
  • ESO 2.1 API 100012 ready
  • Event name is public now: lib.LIB_EVENT_STATE_CHANGED
  • Fixing issue if near a wayshrine sub-zone: Map was not detected as current player location
  • For devs: new switch to enable debug: lib.debugMode = 1

version 2.0 r3 - votan
  • Rewrote calculation of map measurements to get rid of using zo_callLater to prevend timing issues
  • Introduced new event callback to get notified when measurement starts and ends

version 2.0.1 - sirinsidiator
features
  • updated to latest API version

version 2.0 - sirinsidiator
features
  • rewrote calculation of map measurements to be more robust and efficient fixing many cases where calculations where not working as intended
  • changed library to use real global positions (tamriel coordinates)
  • added counter measure against a bug in the game where the waypoint is lost when entering or leaving some dungeons
  • fixed libGPS interfering with manually changing the map to one that has not been measured yet
  • changed how the waypoint sounds are muted to prevent the whole UI from being muted permanently in some cases
  • added error messages with attached debug information that can be copied to clipboard
  • split off CalculateCurrentMapMeasurements function from GetCurrentMapMeasurements
  • added ZoneToGlobal function to convert from old global coordinates to new format
  • added ClearCurrentMapMeasurements function to clear measurements of only the current map
  • added PanToMapPosition function which allows to pan to any position on the current map
  • added MapZoomInMax function which zooms in as far as possible (map wise) for a given global position
  • added SetPlayerChoseCurrentMap function which allows you to set the current map as player chosen, thus preventing the map from automatically snapping back.

version 1.0.1 - sirinsidiator
features
  • renamed zoneIndex to mapIndex to avoid confusion (thanks Garkin)
Optional Files (0)


Archived Files (33)
File Name
Version
Size
Uploader
Date
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


Post A Reply Comment Options
Unread 07/14/20, 09:53 AM  
TECHHNYNE

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by sirinsidiator
Originally Posted by TECHHNYNE
i have this folder in my ESO addons folder but in game it is in red saying all dependencies are missing but they are also in my folder any reason whats up?
No idea. Without any information I can only ask you to try these steps.

P.S. looking at your other messages, it seems you have installed them in the wrong folder. Addons need to reside in "Elder Scrolls Online\live\AddOns", not in "Elder Scrolls Online\AddOns". Also please don't send multiple messages on different channels about the same problem. Just put everything in one place.
ok i figured it out thanks
Last edited by TECHHNYNE : 07/14/20 at 09:57 AM.
Report comment to moderator  
Reply With Quote
Unread 07/14/20, 03:32 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Originally Posted by TECHHNYNE
i have this folder in my ESO addons folder but in game it is in red saying all dependencies are missing but they are also in my folder any reason whats up?
No idea. Without any information I can only ask you to try these steps.

P.S. looking at your other messages, it seems you have installed them in the wrong folder. Addons need to reside in "Elder Scrolls Online\live\AddOns", not in "Elder Scrolls Online\AddOns". Also please don't send multiple messages on different channels about the same problem. Just put everything in one place.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 07/14/20 at 03:37 AM.
Report comment to moderator  
Reply With Quote
Unread 07/14/20, 01:55 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 513
File comments: 1337
Uploads: 35
Originally Posted by TECHHNYNE
i have this folder in my ESO addons folder but in game it is in red saying all dependencies are missing but they are also in my folder any reason whats up?
What does the description say about why the dependencies are missing?
__________________
@votan73 (EU - megaserver)
Report comment to moderator  
Reply With Quote
Unread 07/13/20, 08:30 PM  
TECHHNYNE

Forum posts: 0
File comments: 4
Uploads: 0
i have this folder in my ESO addons folder but in game it is in red saying all dependencies are missing but they are also in my folder any reason whats up?
Report comment to moderator  
Reply With Quote
Unread 06/06/20, 06:27 PM  
anathemastudio

Forum posts: 0
File comments: 11
Uploads: 0
Exclamation Re: Re: Re: Please help, error

Hey SirInsidiator

I just PM'd you a link to the new LibDebugLogger.lua file.

This one has the outdated addons turned on, LibGPS (and it's required libs) on, all other map related addons turned off.

Referring to your PM -
I tried that, but sorry that didn't fix it.

I had actually turned off the outdated addons (and turned on that setting not allowing them) after this error started.

I didn't know what would be in the lua file I sent you, so I just resent it after turning on the outdated addons, LibGPS, etc. (like I said above) to see what the lua file says now, because I just recreated the error.



Originally Posted by anathemastudio
Originally Posted by sirinsidiator
Originally Posted by anathemastudio
Ello, I love your Lib, really helpful

But when i got Greymoor and Elswyre I started getting three errors. Not sure if it's coming from the addons or LibGPS, but one of the errors mentions the WayshrineManager (which I'm guessing is just part of the vanilla game, because I have no addons with that name).

Any help would be appreciated, because I had to turn off the addons and LibGPS. The whole game's map won't display with it turned on, then I can't exit the invisible map, and I have to quit the game to fix it.

I even tried uninstalling (including saved variables) and reinstalling both the addons (HarvestMap, and Lorebooks) and LibGPS, but it didn't fix it. Please help if you can.
These errors indicate that you are missing LibMapPing, in which case you shouldn't even be able to load LibGPS. Did you modify the addon code to get it to load? If so, just reinstall both LibMapPing and LibGPS. Otherwise could you please upload your LibDebugLogger.lua saved variables file here and send me the link so I can take a closer look at what is happening.
Thanks for your help

Sorry, I didn't change any coding, I don't know lua, wish I did .
I do have LibMapPing, I took a screenshot but don't see a place to upload.
Everything is up to date. I run Minion and update whenever I play ESO.


I just PM'd you the link to the LibDebugLogger.lua file.


Like I was telling BlackWolf:
All I changed really had nothing to do with the addons. I got a new comp, Win 10 (of course), installed game fresh, installed addons using Minion, got Greymoor with Elswyr. Then when I logged in with these addons turned on, and tried to look at map, the map never displayed, but the rest of the UI acted like I was looking at the map, and blurred the environment, and hid all other UI, so I couldn't exit the invisible map, and had to slam the game to exit it.

I did a little test to try to narrow down the cause between the Libs and the addons:
I tried turning on LibGPS, and required it's Libs, LoreBooks, and HarvestMap, and their required Libs, and the map did the same thing that I mentioned above, and I had to slam the game. So then I restarted it, and turned off LoreBooks, and HarvestMap, and kept on LibGPS and it's required Libs, and the map did the same thing again, and had to slam. But then I restarted, and turned off LibGPS, and the map is working as it should. Hope this helps.

Thanks again, I really appreciate your help
Last edited by anathemastudio : 06/06/20 at 06:35 PM.
Report comment to moderator  
Reply With Quote
Unread 06/06/20, 05:08 AM  
StoneCold076

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by StoneCold076
Hello I have a problem i dont know if its just me or everyone but when i try to use skyshards or lorebooks addon (with all dependencys installed) it says LipGPS (disabled) i tried reinstalling addons,dependencys but nothing seems to fix it. any idea how i can fix this

UPDATE: Ok i obviously didnt read the description its fixed
Report comment to moderator  
Reply With Quote
Unread 06/06/20, 05:02 AM  
StoneCold076

Forum posts: 0
File comments: 2
Uploads: 0
Hello I have a problem i dont know if its just me or everyone but when i try to use skyshards or lorebooks addon (with all dependencys installed) it says LipGPS (disabled) i tried reinstalling addons,dependencys but nothing seems to fix it. any idea how i can fix this
Report comment to moderator  
Reply With Quote
Unread 06/05/20, 01:52 PM  
anathemastudio

Forum posts: 0
File comments: 11
Uploads: 0
Originally Posted by Blackwolfe
Did you have to post that in several different places? Also, did you also update LibMapPins because the error looks very much pinrelated.
Thanks for your help

I did post the appropriate bug in LoreBooks, HarvestMap, and all three here because they all mention LibGPS. I'm not familiar with lua, so besides seeing these names, I really don't know what I'm looking at here.

I haven't changes any coding, or actually looked at any lua files.

I do have LibMapPing, I took a screenshot but don't see a place to upload here.
Everything is up to date.

All I changed really had nothing to do with the addons. I got a new comp, Win 10 (of course), installed game fresh, installed addons using Minion, got Greymoor with Elswyr. Then when I logged in with these addons turned on, and tried to look at map, the map never displayed, but the rest of the UI acted like I was looking at the map, and blurred the environment, and hid all other UI, so I couldn't exit the invisible map, and had to slam the game to exit it.

Weird, right?
Report comment to moderator  
Reply With Quote
Unread 06/05/20, 01:44 PM  
anathemastudio

Forum posts: 0
File comments: 11
Uploads: 0
Re: Re: Please help, error

Originally Posted by sirinsidiator
Originally Posted by anathemastudio
Ello, I love your Lib, really helpful

But when i got Greymoor and Elswyre I started getting three errors. Not sure if it's coming from the addons or LibGPS, but one of the errors mentions the WayshrineManager (which I'm guessing is just part of the vanilla game, because I have no addons with that name).

Any help would be appreciated, because I had to turn off the addons and LibGPS. The whole game's map won't display with it turned on, then I can't exit the invisible map, and I have to quit the game to fix it.

I even tried uninstalling (including saved variables) and reinstalling both the addons (HarvestMap, and Lorebooks) and LibGPS, but it didn't fix it. Please help if you can.
These errors indicate that you are missing LibMapPing, in which case you shouldn't even be able to load LibGPS. Did you modify the addon code to get it to load? If so, just reinstall both LibMapPing and LibGPS. Otherwise could you please upload your LibDebugLogger.lua saved variables file here and send me the link so I can take a closer look at what is happening.
Thanks for your help

Sorry, I didn't change any coding, I don't know lua, wish I did .
I do have LibMapPing, I took a screenshot but don't see a place to upload.
Everything is up to date. I run Minion and update whenever I play ESO.


I just PM'd you the link to the LibDebugLogger.lua file.


Like I was telling BlackWolf:
All I changed really had nothing to do with the addons. I got a new comp, Win 10 (of course), installed game fresh, installed addons using Minion, got Greymoor with Elswyr. Then when I logged in with these addons turned on, and tried to look at map, the map never displayed, but the rest of the UI acted like I was looking at the map, and blurred the environment, and hid all other UI, so I couldn't exit the invisible map, and had to slam the game to exit it.

I did a little test to try to narrow down the cause between the Libs and the addons:
I tried turning on LibGPS, and required it's Libs, LoreBooks, and HarvestMap, and their required Libs, and the map did the same thing that I mentioned above, and I had to slam the game. So then I restarted it, and turned off LoreBooks, and HarvestMap, and kept on LibGPS and it's required Libs, and the map did the same thing again, and had to slam. But then I restarted, and turned off LibGPS, and the map is working as it should. Hope this helps.

Thanks again, I really appreciate your help
Last edited by anathemastudio : 06/05/20 at 02:54 PM.
Report comment to moderator  
Reply With Quote
Unread 06/02/20, 01:33 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1416
File comments: 937
Uploads: 36
Re: Please help, error

Originally Posted by anathemastudio
Ello, I love your Lib, really helpful

But when i got Greymoor and Elswyre I started getting three errors. Not sure if it's coming from the addons or LibGPS, but one of the errors mentions the WayshrineManager (which I'm guessing is just part of the vanilla game, because I have no addons with that name).

Any help would be appreciated, because I had to turn off the addons and LibGPS. The whole game's map won't display with it turned on, then I can't exit the invisible map, and I have to quit the game to fix it.

I even tried uninstalling (including saved variables) and reinstalling both the addons (HarvestMap, and Lorebooks) and LibGPS, but it didn't fix it. Please help if you can.
These errors indicate that you are missing LibMapPing, in which case you shouldn't even be able to load LibGPS. Did you modify the addon code to get it to load? If so, just reinstall both LibMapPing and LibGPS. Otherwise could you please upload your LibDebugLogger.lua saved variables file here and send me the link so I can take a closer look at what is happening.
__________________
https://www.imperialtradingcompany.eu/ - My Addons - The Vault (Early updates and experimental projects) - My patreon - My blog
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 06/02/20, 12:48 PM  
Blackwolfe

Forum posts: 37
File comments: 128
Uploads: 0
Did you have to post that in several different places? Also, did you also update LibMapPins because the error looks very much pinrelated.
Last edited by Blackwolfe : 06/02/20 at 12:50 PM.
Report comment to moderator  
Reply With Quote
Unread 06/02/20, 12:17 PM  
anathemastudio

Forum posts: 0
File comments: 11
Uploads: 0
Exclamation Please help, error

Ello, I love your Lib, really helpful

But when i got Greymoor and Elswyre I started getting three errors. Not sure if it's coming from the addons or LibGPS, but one of the errors mentions the WayshrineManager (which I'm guessing is just part of the vanilla game, because I have no addons with that name).

Any help would be appreciated, because I had to turn off the addons and LibGPS. The whole game's map won't display with it turned on, then I can't exit the invisible map, and I have to quit the game to fix it.

I even tried uninstalling (including saved variables) and reinstalling both the addons (HarvestMap, and Lorebooks) and LibGPS, but it didn't fix it. Please help if you can.

This is it:

user:/AddOns/LibGPS/api.lua:35: attempt to index a nil value
stack traceback:
user:/AddOns/LibGPS/api.lua:35: in function 'lib:GetCurrentMapMeasurement'
<Locals> self = [table:1]{LIB_EVENT_STATE_CHANGED = "OnLibGPSMeasurementChanged"} </Locals>
(tail call): ?
user:/AddOns/Lorebooks/LoreBooks.lua:473: in function 'CreatePins'
<Locals> shouldDisplay = T, mapContentType = 0, usePrecalculatedCoords = F, zoneId = 1086 </Locals>
user:/AddOns/Lorebooks/LoreBooks.lua:587: in function 'QueueCreatePins'
<Locals> pinType = "LBooksMapPin_eidetic" </Locals>
user:/AddOns/Lorebooks/LoreBooks.lua:611: in function 'MapCallback_eidetic'
EsoUI/Ingame/Map/WorldMap.lua:3881: in function 'ZO_WorldMapPins:RefreshCustomPins'
<Locals> self = [table:2]{m_NextFree = 15, m_NextControlId = 0, nextCustomPinType = 226}, optionalPinType = 226, pinTypeId = 226, pinData = [table:3]{enabled = T, pinTypeString = "LBooksMapPin_eidetic"} </Locals>
user:/AddOns/LibMapPins-1.0/LibMapPins-1.0.lua:160: in function 'lib:AddPinType'
<Locals> self = [table:4]{version = 10021, name = "LibMapPins-1.0"}, pinTypeString = "LBooksMapPin_eidetic", pinTypeAddCallback = user:/AddOns/Lorebooks/LoreBooks.lua:609, pinLayoutData = [table:5]{level = 40, size = 26}, pinTooltipCreator = [table:6]{tooltip = 1}, pinTypeId = 226 </Locals>
user:/AddOns/Lorebooks/LoreBooks.lua:1736: in function 'InitializePins'
<Locals> pinTextureLevel = 40, pinTextureSize = 26, compassMaxDistance = 0.04, mapPinLayout_eidetic = [table:5], mapPinLayout_eideticCollected = [table:7]{level = 40, size = 26}, mapPinLayout_unknown = [table:8]{level = 40, size = 26}, mapPinLayout_collected = [table:9]{level = 40, size = 26}, compassPinLayout = [table:10]{texture = "EsoUI/Art/Icons/lore_book4_det...", maxDistance = 0.04}, compassPinLayoutEidetic = [table:11]{texture = "EsoUI/Art/Icons/lore_book4_det...", maxDistance = 0.04} </Locals>
user:/AddOns/Lorebooks/LoreBooks.lua:2168: in function 'OnLoad'
<Locals> eventCode = 65536, name = "LoreBooks" </Locals>


user:/AddOns/LibGPS/api.lua:24: attempt to index a nil value
stack traceback:
user:/AddOns/LibGPS/api.lua:24: in function 'lib:ClearMapMeasurements'
<Locals> self = [table:1]{LIB_EVENT_STATE_CHANGED = "OnLibGPSMeasurementChanged"} </Locals>
(tail call): ?
user:/AddOns/HarvestMap/Modules/HarvestMap/Main/MapTools.lua:16: in function 'MapTools:Initialize'
<Locals> self = [table:2]{} </Locals>
user:/AddOns/HarvestMap/Modules/HarvestMap/HarvestMap.lua:31: in function 'Harvest:InitializeModules'
<Locals> self = [table:3]{displayVersion = "3.14.4", FLOWER = 13, UNKNOWN = 18, CLAM = 15, STASH = 12, PSIJIC = 16, CHESTS = 6, JUSTICE = 11, WATERPLANT = 14, JEWELRY = 17, WOODWORKING = 5, ENCHANTING = 3, CLOTHING = 2, WATER = 7, FISHING = 8, nodeVersion = 50309039, TOUR = 100, MUSHROOM = 4, HEAVYSACK = 9, TROVE = 10, BLACKSMITH = 1}, _ = 2, moduleTable = [table:2] </Locals>
user:/AddOns/HarvestMap/Modules/HarvestMap/HarvestMap.lua:57: in function 'Harvest.OnLoad'
<Locals> eventCode = 65536, addOnName = "HarvestMap" </Locals>


user:/AddOns/LibGPS/WaypointManager.lua:42: attempt to index a nil value
stack traceback:
user:/AddOns/LibGPS/WaypointManager.lua:42: in function 'WaypointManager:Initialize'
<Locals> self = [table:1]{x = 0, y = 0, playerX = 0, playerY = 0, suppressCount = 0}, adapter = [table:2]{}, meter = [table:3]{measuring = F, unitZoneId = 0}, FinalizeMeasurement = user:/AddOns/LibGPS/WaypointManager.lua:30, HandlePingEvent = user:/AddOns/LibGPS/WaypointManager.lua:36 </Locals>
user:/AddOns/LibGPS/WaypointManager.lua:19: in function 'WaypointManager:New'
<Locals> self = [table:4]{}, object = [table:1] </Locals>
user:/AddOns/LibGPS/StartUp.lua:56: in function 'lib.internal:Initialize'
<Locals> self = [table:5]{TAMRIEL_MAP_INDEX = 1}, class = [table:6]{}, logger = [table:7]{enabled = T, originalTag = "LibGPS3", tag = "LibGPS3"}, internal = [table:5], TAMRIEL_MAP_INDEX = 1, mapAdapter = [table:2], meter = [table:3] </Locals>
user:/AddOns/LibGPS/api.lua:153: in function '(main chunk)'
<Locals> lib = [table:8]{LIB_EVENT_STATE_CHANGED = "OnLibGPSMeasurementChanged"}, internal = [table:5], logger = [table:7] </Locals>
Report comment to moderator  
Reply With Quote
Unread 05/11/20, 07:15 AM  
Userxyz

Forum posts: 0
File comments: 4
Uploads: 0
thank you for smart solution, i will test it when server goes live.

edit: Raidnotifier got a update today
Last edited by Userxyz : 05/11/20 at 08:06 AM.
Report comment to moderator  
Reply With Quote
Unread 05/10/20, 06:26 PM  
hacky2007

Forum posts: 0
File comments: 14
Uploads: 0
Fix for Hodor + RaidNotifier

Instead of downgrading LibGPS, you can force RaidNotifier to use the updated version since it is still using the version that comes with it.

I removed the LibGPS folder (the one inside RaidNotifier) and edited RaidNotifier.txt to include:

## DependsOn: LibGPS>=21

Right above the line ## OptionalDependsOn:

And removed all libs/LibGPS paths in the file.
No errors at all so far.

Addons that are still including libs inside them are usually the problem.
Report comment to moderator  
Reply With Quote
Unread 05/10/20, 03:32 PM  
Userxyz

Forum posts: 0
File comments: 4
Uploads: 0
currently there is an incompatibity with LibGPS and the Addons HodorReflexes / RaidNotifier at the same time. It caused errors and the only solution is to uninstall RaidNotifier or use a previous version of LibGPS. The issue happend only when both addons (HodorReflexes and Radnotifier) will be active the same time. HodorReflexes and LibGPS will work but together with Raidnotifier it will bug. I guess because of using same routines for sharing ultimates or Mappings.

The Error / Bug will disappear with LibGPS version 2.0 r21 (02/28/20).

Can u please have a look into it, because a few people will use both addons (HodorReflexes and Radnotifier) at the same time. Thank you very much. you do a great job.

bye
Last edited by Userxyz : 05/10/20 at 05:01 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.