I'm pretty sure you're going to hate me..
I c/p'd the code from your link /6263. Here's my file of it:
http://pastebin.com/53q2b56C
I put this code into my oUF_Skaarj layout target function:
http://pastebin.com/5BQKvyGL
I received this error
Code:
Message: Interface\AddOns\oUF_Skaarj\layout.lua:288: attempt to index global 'frame' (a nil value)
So I changed the code I put into my oUF_Skaarj layout target function to this:
http://pastebin.com/kTTfUHDn
(basically just changed all the frame to self, except for the frame inside of the filterFunc.)
I then received this error:
Code:
Message: Interface\AddOns\oUF_AuraBars\oUF_AuraBars.lua:279: attempt to compare number with nil
which is from
Lua Code:
bar.name:SetText(aura.count > 1 and format("%s [%d]", aura.name, aura.count) or aura.name)
So I realized that count must be setting to nil if the buff/debuff doesn't have a stack, ie something like a mount.
So I changed the code from
Lua Code:
bar.icon:SetTexture(aura.icon)
bar.name:SetText(aura.count > 1 and format("%s [%d]", aura.name, aura.count) or aura.name)
to this
Lua Code:
if aura.count == nil then
aura.count = 0
end
bar.icon:SetTexture(aura.icon)
bar.name:SetText(aura.count > 1 and format("%s [%d]", aura.name, aura.count) or aura.name)
And now I receive this error:
Code:
Message: Interface\AddOns\oUF_AuraBars\oUF_AuraBars.lua:292: Usage: <unnamed>:SetMinMaxValues(min, max)
which is from
Lua Code:
if aura.duration == 0 then
bar.duration, bar.expirationTime = nil, nil
bar:SetMinMaxValues(0, 1)
bar:SetValue(1)
bar.time:SetText(nil)
else
bar.duration, bar.expirationTime = aura.duration, aura.expirationTime
-> bar:SetMinMaxValues(0, aura.duration)
-- No need to set the value or time text here; the OnUpdate will do it.
numAurasWithDuration = numAurasWithDuration + 1
end