Hello,
NeavUI has not been updated sence 08/27/18 some people have tried to do quick fixes but not everything is updated. One of the addons I use from it is called nPower and it works but keeps thowing me a error everytime a load screen comes up.
Here is the link to the GitHub for the addon to see the whole addon.
nPower
the error code I am getting from BugGrabber is:
Code:
411x nPower\core.lua:209: attempt to perform arithmetic on local 'start' (a nil value)
nPower\core.lua:209: in function <nPower\core.lua:207>
nPower\core.lua:388: in function <nPower\core.lua:373>
Locals:
self = 1
start = nil
duration = nil
runeReady = nil
(*temporary) = <function> defined =[C]:-1
(*temporary) = 342594.828000
(*temporary) = 342594.828000
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on local 'start' (a nil value)"
It seems to only happen on my Deathknight. the chunk of code that is being referenced is:
Lua Code:
local function CalcRuneCooldown(self)
local start, duration, runeReady = GetRuneCooldown(self)
local time = floor(GetTime() - start)
local cooldown = ceil(duration - time)
if (runeReady or UnitIsDeadOrGhost("player")) then
return "#"
elseif (not UnitIsDeadOrGhost("player") and cooldown) then
return cooldown
end
end
and this function only seems to show up in this bit of code at the end of the .lua:
Lua Code:
if (f.Rune) then
local updateTimer = 0
f:SetScript("OnUpdate", function(self, elapsed)
updateTimer = updateTimer + elapsed
if (updateTimer > 0.1) then
for i = 1, 6 do
if (UnitHasVehicleUI("player")) then
if (f.Rune[i]:IsShown()) then
f.Rune[i]:Hide()
end
else
if (not f.Rune[i]:IsShown()) then
f.Rune[i]:Show()
end
end
f.Rune[i]:SetText(CalcRuneCooldown(i))
f.Rune[i]:SetTextColor(0.0, 0.6, 0.8)
end
updateTimer = 0
end
end)
end
Hopefully one of you awesome programmers have an idea why this keep throwing an error.
Thanks in advance for any help solving this issue.
Coke