Quantcast
Download
(11 Kb)
Download
Updated: 02/28/20 04:10 PM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.4)
Updated:02/28/20 04:10 PM
Created:06/27/14 12:58 PM
Monthly downloads:66,358
Total downloads:609,500
Favorites:597
MD5:
5.3.4
LibGPS2  Popular! (More than 5000 hits)
Version: 2.0 r21
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
Starting with r18 LibMapPing is no longer bundled with LibGPS and has to be downloaded aswell.

Quick Start
Add the necessary statements in your addon manifest to load the files:
Code:
## DependsOn: LibGPS
In order to use the library you have to get an instance from the global variable:
Code:
local gps = LibGPS2
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, zoneMapIndex = gps:LocalToGlobal(GetMapPlayerPosition("player"))
The resulting x and y can be saved, sent or whatever else you want to do with it.
The call to LocalToGlobal will also return a mapIndex which represents the parent zone of the currently opened map.
NOTE: The zoneMapIndex can be different for the same position depending on the map the user has opened.
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)
API Reference
Here is a complete list of the functionality that is provided by LibGPS2:

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()
ClearCurrentMapMeasurements
Removes the cached measurement values for the map that is currently active.
Code:
lib:ClearCurrentMapMeasurements()
GetCurrentMapMeasurements
Returns a table with the measurement values for the active map or nil if the measurements could not be calculated for some reason.
The table contains scaleX, scaleY, offsetX, offsetY and zoneMapIndex.
scaleX and scaleY are the dimensions of the active map on the Tamriel map.
offsetX and offsetY are the offset of the top left corner on the Tamriel map.
zoneMapIndex is the mapIndex of the parent zone of the current map.
Code:
table measurements = lib:GetCurrentMapMeasurements()
GetCurrentMapParentZoneIndices *new in r10*
Returns the mapIndex and zoneIndex of the parent zone for the currently set map.
Code:
number mapIndex, number zoneIndex = lib:GetCurrentMapParentZoneIndices()
CalculateCurrentMapMeasurements
Calculates the measurements 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:CalculateCurrentMapMeasurements()
LocalToGlobal
Converts the given map coordinates on the current map into coordinates on the Tamriel map.
Returns x and y on the world map and the mapIndex of the parent zone
or nil if the measurements of the active map are not available.
Code:
number x, number y, number zoneMapIndex = 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)
ZoneToGlobal
Converts the given map coordinates on the specified zone map into coordinates on the Tamriel map.
This method is useful if you want to convert global positions from LibGPS version 1 into the new format.
Returns x and y on the world map or nil if the measurements of the zone map are not available.
Code:
number x, number y = gps:ZoneToGlobal(number zoneMapIndex, number x, number y)
PanToMapPosition
This function zooms and pans to the specified position on the active map.
Code:
lib:PanToMapPosition(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 *new in r14*
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()
OnLibGPS2MeasurementChanged
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.
Tip: Since r6 the waypoint handling is managed by LibMapPing, which you should take a look into as it offers many useful features for working with map pings.
Code:
CALLBACK_MANAGER:RegisterCallback(lib.LIB_EVENT_STATE_CHANGED, function(boolean isMeasuring) end)
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 (31)
File Name
Version
Size
Uploader
Date
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 02/29/20, 01:41 AM  
Snow

Forum posts: 0
File comments: 49
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
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 04:11 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Re: Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong

Originally Posted by Snow
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


After loggin out LibGPS2.lua for Summersend is:
Warning: Spoiler

Hope the additional info helps.
Snow
Thanks! The missing hint was Votan's Mini Map in the debug output. I've pushed a fix just now.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 02/28/20 at 04:11 PM.
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 06:32 AM  
WVCoop1015

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: UI Error

Originally Posted by sirinsidiator
Originally Posted by WVCoop1015
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?
This is actually a problem in LoreBooks. It has unbundled all its libraries and removed LibStub as a dependency, but still calls LibStub to access other libraries. You'll have to wait for an update, or just install LibStub until then.
Seriously thank you so much. I am a brand new player. Been on ESO for 2 days and I couldn’t not figure out why this app as happening and I literally spent an entire evening researching it.
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 04:49 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Re: UI Error

Originally Posted by WVCoop1015
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?
This is actually a problem in LoreBooks. It has unbundled all its libraries and removed LibStub as a dependency, but still calls LibStub to access other libraries. You'll have to wait for an update, or just install LibStub until then.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 09:10 PM  
WVCoop1015

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?
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 05:21 PM  
Snow

Forum posts: 0
File comments: 49
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


After loggin out LibGPS2.lua for Summersend is:
Warning: Spoiler

Hope the additional info helps.
Snow
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 02:04 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Re: LibGPS2 Version: 2.0 r19 Measurements sometimes wrong

Originally Posted by Snow
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:
  • Char is in Murkmire Lilmoth.
  • Logged out, deleted LibGPS.lua in SavedVariables, because Murkmire Pins were showing in the wrong places.
  • Logged in - Lilmoth pins are correct, Murkmire pins are correct.
  • Ported to Summerset Alinor (using FastTravel Favourite, so Summerset Map was not open).
  • Alinor Pins are correct, Summerset Pins are not correct.
  • Logged out.
LibGPS2.lua for Summersend:
Warning: Spoiler
  • Deleted LibGPS.lua in SavedVariables, logged in.
  • Alinor pins are correct, Summerset Pins are correct.
  • Logged out.
LibGPS2.lua for Summersend:
Warning: Spoiler

Hope this helps tracking down the issue.
Snow
Unfortunately I couldn't reproduce the problem with these steps.
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.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 04:59 AM  
Snow

Forum posts: 0
File comments: 49
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:
  • Char is in Murkmire Lilmoth.
  • Logged out, deleted LibGPS.lua in SavedVariables, because Murkmire Pins were showing in the wrong places.
  • Logged in - Lilmoth pins are correct, Murkmire pins are correct.
  • Ported to Summerset Alinor (using FastTravel Favourite, so Summerset Map was not open).
  • Alinor Pins are correct, Summerset Pins are not correct.
  • Logged out.
LibGPS2.lua for Summersend:
Warning: Spoiler
  • Deleted LibGPS.lua in SavedVariables, logged in.
  • Alinor pins are correct, Summerset Pins are correct.
  • Logged out.
LibGPS2.lua for Summersend:
Warning: Spoiler

Hope this helps tracking down the issue.
Snow
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 04:22 PM  
tombaa

Forum posts: 0
File comments: 3
Uploads: 0
Everything seems to be working fine now, thanks for the quick response and fixes!
Love your work
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 04:15 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Originally Posted by tombaa
Originally Posted by sirinsidiator
Just uploaded a new version which should fix the problem. The error will still show up the first time you log in after updating (unless you delete the LibGPS saved variable file). After that it should work without an issue.
Getting a new error now
Both are due to the same copy paste mistake I just made. I just uploaded another LibMapPing version.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 03:54 PM  
tombaa

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by sirinsidiator
Just uploaded a new version which should fix the problem. The error will still show up the first time you log in after updating (unless you delete the LibGPS saved variable file). After that it should work without an issue.
Getting a new error now
user:/AddOns/LibGPS/LibGPS.lua:14: [LibGPS2] Cannot load without LibMapPing
stack traceback:
[C]: in function 'error'
user:/AddOns/LibGPS/LibGPS.lua:14: in function '(main chunk)'
|caaaaaa<Locals> LIB_NAME = "LibGPS2", lib = [table:1]{} </Locals>|r
Also considering LibStub isn't being developed anymore, not sure where I should put this message but I get this aswell
Bad argument #2 to `NewLibrary' (string expected)
stack traceback:
[C]: in function 'assert'
user:/AddOns/LibStub/LibStub/LibStub.lua:73: in function 'LibStub:NewLibrary'
|caaaaaa<Locals> self = [table:1]{SILENT = T, minor = 7}, minor = 10 </Locals>|r
user:/AddOns/LibMapPing/LibMapPing.lua:2: in function '(main chunk)'
|caaaaaa<Locals> LIB_IDENTIFIER = "LibMapPing" </Locals>|r
My addon active addon list
Warning: Spoiler


And libraries
Warning: Spoiler



Rather lengthy list but I figured it was better to post this than my LibDebugLogger SV that was ~50k lines
Last edited by tombaa : 02/26/20 at 04:06 PM.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 03:28 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Just uploaded a new version which should fix the problem. The error will still show up the first time you log in after updating (unless you delete the LibGPS saved variable file). After that it should work without an issue.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 02:00 PM  
xilc

Forum posts: 0
File comments: 4
Uploads: 0
I'm getting the same error. Just wanted to share this.

user:/SavedVariables/LibGPS.lua:19: function expected instead of nil
stack traceback:
user:/SavedVariables/LibGPS.lua:19: in function '(main chunk)'

I'm using the following addons:
  • Destinations
  • SkyShards
  • Advanced UI (AUI)
Last edited by xilc : 02/26/20 at 02:00 PM.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 01:53 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Originally Posted by sirinsidiator
Originally Posted by tombaa
Originally Posted by sirinsidiator
Please upload your LibGPS saved variables and send me a link, so I can take a look what went wrong.


Here's the SavedVariables
https://pastebin.com/pq72nbF9

I presume it has something to do with the Y offsets resetting(?) for the DLC zones since it happens in Southern Elsweyr, Wrothgar and DG Temple
Thanks for the SVs. I have no idea yet how this could happen and it doesn't seem to be a problem for most people, otherwise there would be way more complaints. It could potentially be caused by some addon, so if everyone who has encountered this could post a list of their active addons (or simply the LibDebugLogger saved vars in case you have it installed), it would be very helpful to find out what is going on.
Actually never mind that. Just found a way to reproduce it.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 01:26 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1341
File comments: 874
Uploads: 35
Originally Posted by tombaa
Originally Posted by sirinsidiator
Please upload your LibGPS saved variables and send me a link, so I can take a look what went wrong.


Here's the SavedVariables
https://pastebin.com/pq72nbF9

I presume it has something to do with the Y offsets resetting(?) for the DLC zones since it happens in Southern Elsweyr, Wrothgar and DG Temple
Thanks for the SVs. I have no idea yet how this could happen and it doesn't seem to be a problem for most people, otherwise there would be way more complaints. It could potentially be caused by some addon, so if everyone who has encountered this could post a list of their active addons (or simply the LibDebugLogger saved vars in case you have it installed), it would be very helpful to find out what is going on.
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
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.