Mythic Dungeon Tools - MDT

Mythic Dungeon Tools - MDT

67M Downloads

mouse hover error

sweetmun9 opened this issue ยท 0 comments

commented

having this issue when i hover over players not sure if this issue is from the addon or not

the error code

Message: [string "--[==[ Error in 'Utility':'initialization' ..."]:44: attempt to index global 'MethodDungeonTools' (a nil value)
Time: Fri Dec 11 01:49:20 2020
Count: 244
Stack: [string "--[==[ Error in 'Utility':'initialization' ..."]:44: attempt to index global 'MethodDungeonTools' (a nil value)
[string "--[==[ Error in 'Utility':'initialization' ]==] return function() aura_env.keyslot = aura_env.config["KeySlot"]
aura_env.gossipS = aura_env.config["GossipS"]
aura_env.blacklist = {
-- [123] = true
}

aura_env.popup = function()
for index = 1, STATICPOPUP_NUMDIALOGS do
local frame = _G["StaticPopup"..index]
if frame and frame:IsShown() then
return true
end
end
return false
end

local function decRound(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end

local _, affixes = C_ChallengeMode.GetActiveKeystoneInfo()
local teeming = false
for _, affixID in ipairs(affixes) do
if affixID == 5 then
teeming = true
end
end

local tooltip = aura_env.config["Tooltip"]
local function addtotooltip(self, unit)
local GUID = UnitGUID("mouseover")
if GUID then
local npcID = select(6, strsplit("-", GUID))
local count = 0
local max = 0
if teeming then
max, count = select(3, MethodDungeonTools:GetEnemyForces(tonumber(npcID)))
else
count, max = MethodDungeonTools:GetEnemyForces(tonumber(npcID))
end
if count and max and count ~= 0 and max ~= 0 then
local percent = decRound((count/max)*100, 2).."%"

        local string = (tooltip  == 4 and count.." ("..percent..")") or (tooltip  == 3 and percent) or (tooltip  == 2 and count)
        if string then
            GameTooltip:AppendText(" - "..string)
        end
    end
end

end

if not aura_env.region.addtotooltip then
aura_env.region.addtotooltip = true
hooksecurefunc(GameTooltip, "Show", addtotooltip)
end
--end

--[[
hooksecurefunc(GameToolTip, "Show", function()
print("xd")
end)]]

--[[
if not aura_env.region.hideobj then
aura_env.region.hideobj = true
hooksecurefunc(ObjectiveTrackerFrame, "Show", function()
if IsInInstance() then ObjectiveTrackerFrame:Hide()
end
end)
end
]]

end"]:44: in function <[string "--[==[ Error in 'Utility':'initialization' ..."]:35>
[string "=[C]"]: in function Show' [string "@Interface\AddOns\RaiderIO\core.lua"]:3017: in function ShowProfile'
[string "@interface\AddOns\RaiderIO\core.lua"]:3701: in function <Interface\AddOns\RaiderIO\core.lua:3689>
[string "=[C]"]: ?

Locals: self = GameTooltip {
BottomLeftCorner = {
}
SetText = defined =[C]:-1
OnBackdropLoaded = defined @interface\SharedXML\Backdrop.lua:195
textLeft1Font = "GameTooltipHeaderText"
GetBackdropColor = defined @interface\SharedXML\Backdrop.lua:433
hasMoney = 1
SetBackdropBorderColor = defined @interface\SharedXML\Backdrop.lua:465
RightEdge = {
}
textRight2Font = "GameTooltipText"
ApplyBackdrop = defined @interface\SharedXML\Backdrop.lua:337
SetBackdrop = defined @interface\SharedXML\Backdrop.lua:372
ClearBackdrop = defined @interface\SharedXML\Backdrop.lua:325
TopOverlay = {
}
GetBackdropBorderColor = defined @interface\SharedXML\Backdrop.lua:452
GetBackdrop = defined @interface\SharedXML\Backdrop.lua:390
Show = defined =[C]:-1
comparing = false
SetQuestItem = defined =[C]:-1
__tamedCounts = false
SetBorderBlendMode = defined @interface\SharedXML\Backdrop.lua:309
BottomRightCorner = {
}
numMoneyFrames = 1
TextRight1 = GameTooltipTextRight1 {
}
SetQuestLogItem = defined =[C]:-1
SetRecipeReagentItem = defined =[C]:-1
shoppingTooltips =

{
}
TextLeft1 = GameTooltipTextLeft1 {