Thread Tools Display Modes
02-25-11, 06:51 PM   #1
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
aura tooltip error

I get this error when I mouseover a debuff on my raidframes.

I do not get an error when I mouseover a buff/debuff on target or focus.
I disabled my tooltip addon to see if it's the cause, it doesn't matter.
I'm using the latest version of oUF from Github, but tried to use 1.5.8 aswell.

Code:
Message: Interface\AddOns\oUF\elements\aura.lua:8: Usage: GameTooltip:SetUnitAura("unit", [index] or ["name", "rank"][, "filter"])
Time: 02/26/11 01:45:45
Count: 1
Stack: [C]: in function `SetUnitAura'
Interface\AddOns\oUF\elements\aura.lua:8: in function `UpdateTooltip'
Interface\AddOns\oUF\elements\aura.lua:15: in function <Interface\AddOns\oUF\elements\aura.lua:11>

Locals: (*temporary) = GameTooltip {
 0 = <userdata>
 FadeOut = <function> defined @Interface\AddOns\dTooltip\dTooltip.lua:40
 updateTooltip = 0.086999992653728
 comparing = false
 shoppingTooltips = <table> {
 }
}
(*temporary) = nil
(*temporary) = 1
(*temporary) = "HARMFUL"
My debuff code is pretty straight forward ...
Code:
		-- debuffs
		local Debuffs = CreateFrame("Frame", nil, self.Health)
		Debuffs:SetSize(22, 22)
		Debuffs:SetPoint("TOPLEFT", self.Health, "TOPLEFT", 1, -1)
		Debuffs.initialAnchor = "TOPLEFT"
		Debuffs.num = 1
		Debuffs.size = 22
		Debuffs.PostCreateIcon = PostCreateIcon
		Debuffs.PostUpdateIcon = PostUpdateIcon	
		Debuffs.CustomFilter = CustomFilter
		self.Debuffs = Debuffs
I also tried it without
Code:
		Debuffs.PostCreateIcon = PostCreateIcon
		Debuffs.PostUpdateIcon = PostUpdateIcon
and still get the exact same error ... which is really strange.

Any ideas?
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
02-26-11, 02:35 AM   #2
tecu
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 30
It looks like the unit argument to SetUnitAura is nil. Which would mean, from oUF/elements/auras.lua, 'self.parent:GetParent().unit' is nil (self is the aura button, self.parent is the auras frame, and self.parent:GetParent() should be the unit frame itself).

You parent your buff frame to self.Health (self in this case is your unit frame), so the :GetParent() call above is returning the Health element rather than the unit frame.

The easiest temp fix would be to change self.parent.GetParent().unit to self.parent.__owner.unit in auras.lua.
  Reply With Quote
02-26-11, 06:01 AM   #3
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Looks like I forgot to change that one when I added .__owner.

Just so I don't forget about it: https://github.com/haste/oUF/issues/75
__________________
「貴方は1人じゃないよ」
  Reply With Quote
02-26-11, 09:19 AM   #4
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I'm just glad it wasn't me. I was about going crazy on this.

Seems to work fine with the latest version on github, thanks.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » aura tooltip error


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