View Single Post
10/22/20, 04:49 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Minion does not install dependencies automatically if you install an addon.
You just need to type the name of the addon/library/dependency and install it like Sharlikran described above.
It will download the zip, extract it to your live/AddOns folder then like any other addon.

e.g.

Code:
live/AddOns/AwesomeGuildStore
live/AddOns/AddonSelector
live/AddOns/LibAddonMenu-2.0
live/AddOns/LibDialog
How do the addons define the dependency and find them?
The addons will find the libraries/dependencies in the live/AddOns folder via their txt files then, e.g
within live/AddOns/AwesomeGuildStore/AwesomeGuildStore.txt there is the line
Code:
## DependsOn: ... LibAddonMenu-2.0>=31 ...
This will make the addon AwesomeGuildSTore dependent on the library LibAddonMenu-2.0 with the version 31 or higher.

DependsOn means the addon won't load if the library/dependency (could be another addon as well) is missing in your live/AddOns folder with this version after the >=
OptionalDependsOn means the addon will load if the optional dependency is missing, as it's only optionally needed.

So the addon manager ingame will check for a txt file LibAddonMenu-2.0 and if it finds it (at best in live/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0.txt) it will check for the tag
Code:
## AddOnVersion: number
in this txt file LibAddonMenu-2.0.txt
If the number there equals or is higher than 31 it will load the txt file and thus LibAddonMenu-2.0 from this folder.

The addon manager will check for the dependencies as it loads the game so if you install new libraries / addons make sure you are logged out or at best close the game before! Updating exisitng ones should be no problem while at the character screen, as long as these txt files contents do not change a lot.
  Reply With Quote