View Single Post
08/05/23, 06:55 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,002
The dependencies always need the "folder name" (or txt file name without the .txt) without any color coding like that |c or |r and without any spaces !!!

If the addon is live/AddOns/AddonName1

You need to add:

## OptionalDependsOn: AddonName1

If you want to add multiple you can add them in the same row up to a maximum length you can see at the Wiki:
https://wiki.esoui.com/Addon_manifes...ionalDependsOn

## OptionalDependsOn: AddonName1 AddonName2

Also adding a version check is possible there via >=<versionOfTheOtherAddon> tag at the end.
That's described here:
https://wiki.esoui.com/Libraries#.23...ned_integer.3E



If that Optional dependency does not fix it you need to check in the other addons "where they do the RedirectTexture" and then do your's later/after that.
Maybe using a RedirectTexture for the same texture, in multiple addons, won't work as textures are cached in the file
live/ShaderCache.cooked
Once they got loaded you can only overwrite them visually ingame by logout, delete the file and then do the RedirectTexture again.

Sometimes it's working by doing a RedirectTexture multiple times, sometimes it doesn't, which makes multiple addons changing the same texture not work in combination and thus you need to code the dependency manually in all addons then.
Like check if Addon1 is active and it's setting to replace compass is active then do not change it in Addon2, and if Addon3 is active and setting to change the compass is active do not change it in Addon1 nor Addon2. Or similar logic.

Last edited by Baertram : 08/05/23 at 06:59 AM.
  Reply With Quote