Thread Tools Display Modes
05/25/19, 03:37 AM   #21
usmth
Join Date: May 2019
Posts: 2
Yo! Any new information about this feature?
  Reply With Quote
05/25/19, 03:51 AM   #22
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Originally Posted by usmth View Post
Yo! Any new information about this feature?
It's still in being worked on. Just takes a bit longer due to a lack of time.
  Reply With Quote
05/25/19, 06:24 AM   #23
usmth
Join Date: May 2019
Posts: 2
Originally Posted by sirinsidiator View Post
It's still in being worked on. Just takes a bit longer due to a lack of time.
Top-notch <3
  Reply With Quote
05/25/19, 02:49 PM   #24
Celarra
Join Date: Jul 2017
Posts: 1
I am having the same problem. My Master Merchant will not work. Can not find out why. It say dependency. What is that?
  Reply With Quote
05/25/19, 04:07 PM   #25
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Originally Posted by Celarra View Post
I am having the same problem. My Master Merchant will not work. Can not find out why. It say dependency. What is that?
Dependency = other source code needed like in libraries.
Just click the Master Merchant entry in the addon manager and expand it and there you'll find the "deoendencies" listed you need to install (e.g. LibStub, LibAddonMenu-2.0, ...)
Or install "Votans Addon List" and you'll see the dependencies in the red (i) icon on the right side in the row of the addon. If you already own the dependencies it will automatically enable it for you.
  Reply With Quote
05/25/19, 05:21 PM   #26
Enodoc
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 52
Related query - since Elsweyr released, many people are now saying "you install Libraries separately". Is that technically accurate (and therefore advisable), or is it a misinterpretation on what ZOS have actually done?

In other words, should I still be including Libraries within my add-on in a Libs folder with OptionalDependsOn in my manifest, or should I be using DependsOn in my manifest, without a Libs folder, and stating the Libraries should be standalone and installed separately as prerequisites?
  Reply With Quote
05/26/19, 03:59 AM   #27
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Originally Posted by Enodoc View Post
In other words, should I still be including Libraries within my add-on in a Libs folder with OptionalDependsOn in my manifest, or should I be using DependsOn in my manifest, without a Libs folder, and stating the Libraries should be standalone and installed separately as prerequisites?
As an author, you switch away from the LibStub embedded way of adding source files to your own manifest. Instead you should use DependsOn for libraries that have to be loaded and OptionalDependsOn for libs that may be loaded. In any case you will have to check the library if it has been updated to support this.

Once you have done that, you can decide for yourself if you still want to bundle the libs with your addon, or have the users install them separately. Having them installed separately will cause less problems in the future (in case another addon is depending on a newer version of the lib, but doesn't have it bundled) and you won't have to update the bundled libs yourself any more. It also has slightly better performance (less folders to scan for the game), but that's likely only in the ms-range.
  Reply With Quote
05/27/19, 08:41 AM   #28
Enodoc
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 52
Originally Posted by sirinsidiator View Post
As an author, you switch away from the LibStub embedded way of adding source files to your own manifest. Instead you should use DependsOn for libraries that have to be loaded and OptionalDependsOn for libs that may be loaded. In any case you will have to check the library if it has been updated to support this.

Once you have done that, you can decide for yourself if you still want to bundle the libs with your addon, or have the users install them separately. Having them installed separately will cause less problems in the future (in case another addon is depending on a newer version of the lib, but doesn't have it bundled) and you won't have to update the bundled libs yourself any more. It also has slightly better performance (less folders to scan for the game), but that's likely only in the ms-range.
OK cool thanks. So just to check that I understand correctly - in terms of LAM, which is obviously the primary example that I know has already been updated:

The library in question needs to have its own manifest txt file, which must include:
Code:
## IsLibrary: true

The individual add-on's manifest txt file needs to change from:
Code:
## OptionalDependsOn: LibStub LibAddonMenu-2.0

Libs/LibStub/LibStub.lua
Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua
Libs/LibAddonMenu-2.0/controls/panel.lua
...

AddOn.lua
to:
Code:
## DependsOn: LibAddonMenu-2.0

AddOn.lua

And the add-on code itself needs to change from:
lua Code:
  1. local LAM = LibStub("LibAddonMenu-2.0")

to:
lua Code:
  1. local LAM = LibAddonMenu-2.0

Then the library could or could not be bundled in the add-on directory, and the game will load it from the add-on or from standalone depending on which is the most recent version.

Is that everything in summary? Thanks!
  Reply With Quote
05/27/19, 08:58 AM   #29
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
Originally Posted by Enodoc View Post
Is that everything in summary? Thanks!
That's mostly correct.
The IsLibrary flag is actually just so the game knows that it has to show it in the library list on the bottom of the addon menu. The more important thing is to specify an AddOnVersion. Otherwise the game cannot know which version is the newest one in case there are several copies present.
And the global variable is just "LibAddonMenu2" and not "LibAddonMenu-2.0", since Lua would interpret that as "nil - 2" and throw an error.
  Reply With Quote

ESOUI » Site Forums » Site help, bugs, suggestions/questions » Addon dependencies

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off