Quantcast
oUF_Aftermathh Errors - WoWInterface
Thread Tools Display Modes
10-31-14, 02:11 AM   #1
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 462
oUF_Aftermathh Errors

I tried using oUF_Aftermathh with the latest oUF and the following I got the following errors. I've looked at the code and cannot see what is wrong with the call to Aftermathh:HolyPower or the spawn for the player frame. Any thoughts are welcome.

1x oUF\ouf-1.6.8.lua:262: Attempted to use invalid tag [Aftermathh:HolyPower].
[C]: in function `error'
oUF\elements\tags.lua:585: in function `Tag'
oUF_Aftermathh\oUF_Aftermathh-4.0.lua:1004: in function `styleFunc'
oUF\ouf-1.6.8.lua:262: in function <oUF\ouf.lua:192>
(tail call): ?
oUF\ouf-1.6.8.lua:552: in function `Spawn'
oUF_Aftermathh\oUF_Aftermathh-4.0.lua:1014: in function `func'
oUF\factory.lua:20: in function <oUF\factory.lua:16>
(tail call): ?

Locals:
self = oUF_AftermathhPlayer {
0 = <userdata>
Debuffs = <unnamed> {
}
MasterLooter = <unnamed> {
}
__tags = <table> {
}
UNIT_ENTERED_VEHICLE = <function> defined @oUF\ouf.lua:38
Leader = <unnamed> {
}
unit = "player"
Resting = <unnamed> {
}
Health = <unnamed> {
}
RaidIcon = <unnamed> {
}
__elements = <table> {
}
Name = <unnamed> {
}
CombatFeedbackText = <unnamed> {
}
Portrait = <unnamed> {
}
Combat = <unnamed> {
}
Power = <unnamed> {
}
LastUpdate = 0
HealPrediction = <table> {
}
PvPTimer = oUF_AftermathhPlayerPVPTimer {
}
PvP = <unnamed> {
}
style = "Aftermathh"
Castbar = <unnamed> {
}
menu = <function> defined @oUF_Aftermathh\oUF_Aftermathh_Functions.lua:49
PLAYER_ENTERING_WORLD = <function> defined @oUF\ouf.lua:149
UNIT_AURA = <function> defined @oUF_Aftermathh\oUF_Aftermathh_Functions.lua:67
Buffs = <unnamed> {
}
UNIT_EXITED_VEHICLE = <function> defined @oUF\ouf.lua:38
disallowVehicleSwap = true
}
fs = <unnamed> {
0 = <userdata>
parent = oUF_AftermathhPlayer {
}
}
tagstr = "[Aftermathh:HolyPower]"
func = nil
format = "%s"
numTags = 1
args = <table> {
}
(for generator) = <function> defined =[C]:-1
(for state) = nil
(for control) = "[Aftermathh:HolyPower]"
bracket = "[Aftermathh:HolyPower]"
tagFunc = nil
OnShow = <function> defined @oUF\elements\tags.lua:462
tagPool = <table> {
[perhp]% = <function> defined @oUF\elements\tags.lua:590
[curhp]/[maxhp] = <function> defined @oUF\elements\tags.lua:604
[cpoints] = <function> defined @oUF\elements\tags.lua:590
[perpp]% = <function> defined @oUF\elements\tags.lua:590
[curpp]/[maxpp] = <function> defined @oUF\elements\tags.lua:604
}
_PATTERN = "%[..-%]+"
funcPool = <table> {
}
tags = <table> {
cpoints = <function> defined return function(u)
local cp
if(UnitHasVehicleUI'player') then
cp = GetComboPoints('vehicle', 'target')
else
cp = GetComboPoints('player', 'target')
end

if(cp > 0) then
return cp
end
end:1
curpp = <function> defined =[C]:-1
perpp = <function> defined return function(u)
local m = UnitPowerMax(u)
if(m == 0) then
return 0
else
return math.floor(UnitPower(u)/m*100+.5)
end
end:1
maxhp = <function> defined =[C]:-1
perhp = <function> defined return function(u)
local m = UnitHealthMax(u)
if(m == 0) then
return 0
else
return math.floor(UnitHealth(u)/m*100+.5)
end
end:1
race = <function> defined =[C]:-1
faction = <function> defined =[C]:-1
maxpp = <function> defined =[C]:-1
curhp = <function> defined =[C]:-1
class = <function> defined =[C]:-1
}
getTagName = <function> defined @oUF\elements\tags.lua:468
_ENV = <table> {
Hex = <function> defined @oUF\elements\tags.lua:11
ColorGradient = <function> defined @oUF\colors.lua:155
_TAGS = <table> {
}
}
tmp = <table> {
}
eventlessUnits = <table> {
}
createOnUpdate = <function> defined @oUF\elements\tags.lua:436
RegisterEvents = <function> defined @oUF\elements\tags.lua:483
  Reply With Quote
10-31-14, 09:26 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,705
oUF_Aftermathh has not been updated to the tag system in oUF 1.6.x, you need to use 1.5.x or update the layout. The latter is the best option, as 1.5.x is probably not going to work in WoD.
  Reply With Quote
10-31-14, 10:18 AM   #3
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 462
Originally Posted by p3lim View Post
oUF_Aftermathh has not been updated to the tag system in oUF 1.6.x, you need to use 1.5.x or update the layout. The latter is the best option, as 1.5.x is probably not going to work in WoD.
That makes since. I will dive in to look at the tags. Thanks!
  Reply With Quote
10-31-14, 12:15 PM   #4
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 462
So, I took a look at the "partial documentation" here: https://github.com/haste/oUF/wiki. The section on Tags was empty. This will work fine on oUF 1.5 on patch 6.0.3, is there documentation or a good example to look at to migrate the tags to 1.6?
  Reply With Quote
10-31-14, 09:34 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The wiki is basically useless, as it's not maintained; just look at the comment headers in the files themselves.

That said, I don't think anything has changed with tags in a while. Why don't you just post the tag code you're using?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote
10-31-14, 11:54 PM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,705
Tags in 1.5.x:
Code:
oUF.Tags['tagname'] = function(unit)
    -- do something
end

oUF.TagEvents['tagname'] = 'EVENT_NAME'
Tags in 1.6.x:
Code:
oUF.Tags.Methods['tagname'] = function(unit)
    -- do something
end

oUF.Tags.Events['tagname'] = 'EVENT_NAME'
  Reply With Quote
11-01-14, 01:15 AM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Also, if the event isn't a unit event, you need to tell oUF that:

Code:
oUF.Tags.SharedEvents["EVENT_NAME"] = true
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote
11-01-14, 02:32 AM   #8
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,705
Originally Posted by Phanx View Post
Also, if the event isn't a unit event, you need to tell oUF that:

Code:
oUF.Tags.SharedEvents["EVENT_NAME"] = true
And the 1.5.x way of doing that used to be this:
Code:
oUF.UnitlessTagEvents['EVENT_NAME'] = true
Just so you know what to replace when updating.
  Reply With Quote
11-02-14, 03:06 AM   #9
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 462
Your replies did the trick (so far). I did a search and replace to fix the tags method and I found a couple of old spell ids that was used with GetSpellInfo(xxx). I just need to test this with my characters and see if there are any more errors. Thanks for your help!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_Aftermathh Errors

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off