View Single Post
Old 03.08.2016, 10:55  
max41479
 Elder Member User Information

max41479's Avatar
1 - Версия ShestakUI - 6.01
2 - Версия клиента WoW - 7.0.3.22293
3 - Установленные и запущенные модификации - ShestakUI, Rarity

Если включить стилизацию иконок аддонов у миникарты и включить аддон Rarity то вылезает вот такая ошибка:
lua Code [Select]:
Message: ...\ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua:35: attempt to index local 'tex' (a number value)
Time: 08/02/16 23:10:20
Count: 1
Stack: ...\ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua:35: in function <...\ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua:16>
...\ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua:59: in function <...\ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua:56>

Locals: f = LibDBIcon10_Rarity {
 0 = <userdata>
 dataObject = <table> {
 }
 isMouseDown = false
 db = <table> {
 }
 icon = <unnamed> {
 }
}
(for index) = 3
(for limit) = 3
(for step) = 1
i = 3
region = <unnamed> {
 0 = <userdata>
 UpdateCoord = <function> defined @Interface\AddOns\Rarity\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:153
}
tex = 133861
(*temporary) = <unnamed> {
 0 = <userdata>
 UpdateCoord = <function> defined @Interface\AddOns\Rarity\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:153
}
(*temporary) = 133861
(*temporary) = <unnamed> {
 0 = <userdata>
 UpdateCoord = <function> defined @Interface\AddOns\Rarity\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:153
}
(*temporary) = <unnamed> {
 0 = <userdata>
}
(*temporary) = <unnamed> {
 0 = <userdata>
 UpdateCoord = <function> defined @Interface\AddOns\Rarity\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:153
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'tex' (a number value)"
buttons = <table> {
 1 = "QueueStatusMinimapButton"
 2 = "MiniMapTrackingButton"
 3 = "MiniMapMailFrame"
 4 = "HelpOpenTicketButton"
 5 = "GatherMatePin"
 6 = "HandyNotesPin"
}
T = <table> {
 SkinCheckBox = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:398
 RaidDebuffsReverse = <table> {
 }
 SetFontString = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:561
 Scale = <function> defined @Interface\AddOns\ShestakUI\Core\PixelPerfect.lua:24
 class = "HUNTER"
 RaidBuffs = <table> {
 }
 resolution = "1920x1080"
 dummy = <function> defined @Interface\AddOns\ShestakUI\Core\Constants.lua:6
 white_list = <table> {
 }
 getscreenheight = 1080
 level = 93
 HandleIcon = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:468
 MoverFrames = <table> {
 }
 CheckChat = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:37
 UpdateComboPoint = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1001
 ShiftBarUpdate = <function> defined @Interface\AddOns\ShestakUI\Modules\ActionBars\Functions.lua:7
 merge = <table> {
 }
 UpdateComboPointOld = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1072
 NeedLoot = <table> {
 }
 UpdateManaLevel = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:876
 getscreenwidth = 1920
 ShortValue = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:11
 Role = "Melee"
 MoveUnitFrames = <function> defined @Interface\AddOns\ShestakUI\Libs\oUF\Modules\MovableFrames.lua:410
 HideAuraFrame = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1405
 SetModifiedBackdrop = <function> defined @Interface\AddOns\ShestakUI\Core\API.lua:200
 PlateBlacklist = <table> {
 }
 CustomCastDelayText = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1348
 SkinDropDownBox = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:374
 PostUpdateHealth = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:568
 black_list = <table> {
 }
 RaidBuffsIgnore = <table> {
 }
 color = <table> {
 }
 raid_spells = <table> {
 }
 AuraTrackerTime = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1389
 CustomCastTimeText = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1344
 noscalemult = 0.71111111111111
 StylePet = <function> defined @Interface\AddOns\ShestakUI\Modules\ActionBars\Style.lua:163
 CreateAuraWatch = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1537
 UpdateThreat = <function> defined @Interface\AddOns\ShestakUI\Core\Functions.lua:1503
 UpdateAllElements = <func
С чем это связано? Баг ShestakUI? Баг Rarity?

Posted in 13 hours 33 minutes
Если 35 строку в файле ShestakUI\Modules\Skins\Blizzard\MinimapButtons.lua заменить на
lua Code [Select]:
if tex and type(tex) ~= "number" and (tex:find("Border") or tex:find("Background") or tex:find("AlphaMask")) then
то похоже все работает как надо.
Say Thank:
Shestak (04.08.2016)