View Single Post
05/24/19, 01:15 PM   #4
Drakanwulf
 
Drakanwulf's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2017
Posts: 50
Originally Posted by Anceane View Post
If A use a lib but modify it for his own addon, without .txt in the lib folder

and this lib is used by b, C, D .... as a Standalone with a different version and a .txt,

which version will be used first by the game ?


-- tried to be clear but not sur, if you need me to ask this differently, let me know lol--
As stated in the ESOUI wiki Packaging section, Part 1, the game should use the FIRST copy of the library or support add-on it finds that a) has a valid number for its APIVersion: and b) has the highest value (i.e. latest code) in its AddOnVersion: directive.

Translated, this means that the actual selection order (A, b, C, D) that the game uses to find the first copy changes either as the number of add-ons changes or as the add-on names being loaded are changed. However, if either of the APIVersion: or AddOnVersion: directives are missing from the manifest, or have incorrect (e.g. OOD) values in them, then all bets are off and the game either refuses to load the add-on or, if you checked the OOD check box, makes a "best guess" at which add-on to load first.

Rhyono was correct when he said that manifests should not be loading library add-ons by using "libs/mylibrary/mylibrary.lua" commands within their text areas because doing that only makes it more difficult or possibly destroys any chance for the game to find and select the best option from its library add-on choices (A, b, C, or D).

If an add-on refuses to run or the game refuses to load an add-on, you should be able to find the cause by searching for "ERROR" messages in the log files located in the .../Logs/... folder listed below your .../Addons/... folder.

As you have probably surmised by now, loading add-on programs is not trivial and involves complex interactions between the game, the add-ons, and their dependent library and/or support add-ons. If you are interested in learning more about loading add-on libraries, take a look at the forum threads and their links that are linked to this topic and to this obsolete addon.
  Reply With Quote