View Single Post
02/10/22, 10:33 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,990
LibDAU got no own txt file on ESOUI (seems to not have been released here) so leave it in the TrueExploration.txt file.

All others should be removed from the libs subfolder and the txt file lines, and added as
##DependsOn: LibMapPing LibAddonMenu-2.0>=32 LibChatMessage LibDebugLogger LibGPS>=30

The global variables to use instead of lines like
LibStub("LibGPS")
can be found at the description of that libraries on ESOUI.
e.g.
LibGPS uses LibGPS3 as global variable!
https://www.esoui.com/downloads/info601-LibGPS.html
Code:
In order to use the library you have to get an instance from the global variable:
Code:
local gps = LibGPS3
So in TrueExploration.lua change this: local GPS = LibGPS2
To: local GPS = LibGPS3


I think the other libs are just using their name like LibDebugLogger, LibMapPing, LibChatMessage.
LibAddonMenu-2.0 -> LibAddonMenu2

btw: All libraries in the subfolder "Libs" that contain a .txt file are okay to stay there!!!
The txt file will make the addon manager of ESO load the files ONLY if there is not any other newer version somewhere else available. So install these libs as newest version to live/AddOns and it will detect the newest version there, ignoreing other older .txt files in /libs/ subfolders of any addon!

Only libs that are included in a /libs/ subfolder WITHOUT their proper own txt file, and loaded via e.g. TrueExploration.txt directly (hardcoded call) will make the libs break if the included lib files in the /libs/ subfolder are old.

So your TrueExploration.txt file should look like this in the end:
Code:
## Title: TrueExploration
## APIVersion: 101032 101033
## Version: 2.0
## AddOnVersion: 200
## Author: Shinni
## SavedVariables: TE_SavedVars
## DependsOn: LibAddonMenu-2.0>=32 LibGPS>=30 LibMapPing LibChatMessage LibDebugLogger 
## OptionalDependsOn: AUI

##hardcoded call is okay as LibDAU was never released on ESOUi and thus no LibDAU.txt exists!
libs\LibDAU\LibDAU.lua 

language\en.lua
language\$(language).lua

TrueExploration.lua
TrueExplorationOptions.lua
TrueExploration.xml
TrueExploration v2.0 LibGPS update to v3
Untested as I do not use this addon!

Last edited by Baertram : 02/11/22 at 03:44 PM.
  Reply With Quote