Thread Tools Display Modes
02-27-10, 05:06 PM   #1
jusion
A Defias Bandit
AddOn Compiler - Click to view compilations
Join Date: May 2008
Posts: 2
General oUF/oUF_ALZA help

I converted over to ALZA's newest released UI a couple days ago, but I started getting a large amount of LUA errors while in combat in a raid. The errors came from oUF_ALZA\raid.lua (lines 16 and 18 ):
Code:
--[[ Aggro coloring ]]
 local function ColorAggro(self, event, unit)
    if(not unit) then return end
    local s = UnitThreatSituation(self.unit)
    if(s and s>0) then
        local r, g, b = .8, 0, 0
        if(s==1) then
            r, g, b = 0.5, 0.5, 0
        elseif(s==2) then
            r, g, b = 0.5, 0, 0
        end
        self.bd:SetBackdropBorderColor(r, g, b)
    else
        self.bd:SetBackdropBorderColor(0, 0, 0)
    end
end
Those lines are from the aggro coloring section. Being the LUA novice I am, I just commented out the whole section, as I don't particularly care for having aggro coloring on my raid frames anyways.
However, after that (or maybe simultaneously, I just didn't notice) I am now getting spammed with errors originating from oUF\ouf.lua
Code:
local oUF = {}
The exact error is:
Code:
oUF-1.3.16\ouf.lua:39: attempt to call field '?' (a nil value)

Locals:

  ---
The oUF version is 1.3.16; I am unable to update oUF without braking oUF_ALZA. Any ideas?
EDIT: The problem is definitely with the oUF_ALZA\raid.lua. Disabling that file in the ALZA TOC stops the oUF errors.

Last edited by jusion : 02-27-10 at 05:21 PM.
  Reply With Quote
02-28-10, 06:55 AM   #2
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
You don't need to comment out the function. Well it's better if you do it, too. But a function is "disabled" if you remove the way it's updated. Depending on how he's updating it there should be something like

RegisterEvent, blah, ColorAggro

or

UpdateThreatblah = ColorAggro
__________________
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-28-10, 02:12 PM   #3
jusion
A Defias Bandit
AddOn Compiler - Click to view compilations
Join Date: May 2008
Posts: 2
Originally Posted by Dawn View Post
You don't need to comment out the function. Well it's better if you do it, too. But a function is "disabled" if you remove the way it's updated. Depending on how he's updating it there should be something like

RegisterEvent, blah, ColorAggro

or

UpdateThreatblah = ColorAggro
That worked. Thanks a bunch!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » General oUF/oUF_ALZA help


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