WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   EquipSetManager and icon replacements (https://www.wowinterface.com/forums/showthread.php?t=54305)

Stanzilla 08-27-16 01:52 AM

EquipSetManager and icon replacements
 
If you are using custom icon replacements, as in putting your own tga files into Interface\ICONS, the EquipmentManager icon selector will fail to set a correct icon path for every spell whose icon you are trying to use and fall back to the question mark icon.

Video: https://dl.dropboxusercontent.com/s/..._09-18-35.webm
(I am using an addon in the video that expands the icon selection screen, but the problem happens without any addons, too)

Example of such a icon pack: http://www.wowinterface.com/download...nPackBlue.html

Ketho 08-27-16 01:58 AM

I've seen a number of people having this problem

http://us.battle.net/forums/en/wow/topic/20747745286
https://www.wowace.com/addons/larger...ger-selection/

GetEquipmentSetIconInfo() would start returning texture paths with a dot appended (?) after the inventory gear items and in alphabetical order
Same for GetSpellorMacroIconInfo() after the class specific spell icons

With Equipment Manager window open:
Lua Code:
  1. /run for i = 15, 20 do print(i, GetEquipmentSetIconInfo(i)) end
Lua Code:
  1. 15, 133452
  2. 16, 1034142
  3. 17, 1085039
  4. 18, "6BF_Blackrock_Nova."
  5. 19, "6BF_Explosive_Shard."
  6. 20, "6BF_Retched_Blackrock."
That looks like it's from GetLooseMacroItemIcons() and GetLooseMacroIcons()
https://github.com/Gethe/wow-ui-sour...ua#L2040-L2041

(Edit) I was wrong about that part, I'm guessing it's SaveEquipmentSet() only accepting FileDataIDs, while CreateMacro() accepts both FileDataIDs and texture paths (with or without dot)
Lua Code:
  1. CreateMacro("test1", 135953) -- works
  2. CreateMacro("test2", "Spell_Holy_Renew") -- works
  3. CreateMacro("test3", "Spell_Holy_Renew.") -- works
  4.  
  5. SaveEquipmentSet("test1", 135953) -- works
  6. SaveEquipmentSet("test2", "Spell_Holy_Renew") -- does not work (question mark)
  7. SaveEquipmentSet("test3", "Spell_Holy_Renew.") -- does not work (question mark)
  8.  
  9. SetGuildBankTabInfo(1, "test1", 135953) -- works
  10. SetGuildBankTabInfo(1, "test2", "Spell_Holy_Renew") -- works
  11. SetGuildBankTabInfo(1, "test3", "Spell_Holy_Renew.") -- works


Certain (?) custom/skinned iconsthat are not normally macro icons would only work as FileDataIDs
Lua Code:
  1. CreateMacro("test1", 1392922) -- works
  2. CreateMacro("test2", "70_inscription_deck_Hellfire_3") -- does not work (green)
  3. CreateMacro("test3", "70_inscription_deck_Hellfire_3.") -- does not work (green)
  4.  
  5. CreateMacro("test1", 236834) -- works
  6. CreateMacro("test2", "Achievement_Zone_StormPeaks_03") -- works
  7. CreateMacro("test3", "Achievement_Zone_StormPeaks_03.") -- works

Ketho 08-30-16 04:09 PM

Preventing them from filling the *_ICON_FILENAMES tables is a workaround at least
Lua Code:
  1. GetLooseMacroItemIcons = function() end
  2. GetLooseMacroIcons = function() end
  • This won't fix custom icons (as in custom icon paths from addons) though, the duplicates(?) just won't show up in the icon selector

(I'd like to post this on the US forums but I'm on EU)


All times are GMT -6. The time now is 11:36 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI