WeakAuras

WeakAuras

206M Downloads

LUA Errors

Xoffie opened this issue ยท 1 comments

commented

Description

I am not sure if this is where I should post this, but I just started to get these errors after doing a addon update to both Pawn! and one/some of the DBM modules via CurseForge (not actually sure if it is related but that is the only change since I last played a few hours ago.)

I am new to all this, so I may be barking up the wrong tree as it feels like two other addons messed up weakauras and weakauras did not change but it is what is listed as throwing the LUA errors so I figure I would start here.

WeakAuras Version

WeakAuras 5.3.3

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

Message: Lua error in aura 'Holy_Power_3': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Holy_Power_3': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("VERTICAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Message: Lua error in aura 'Paladin_CastBar': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Paladin_CastBar': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("HORIZONTAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Message: Lua error in aura 'Holy_Power_5': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Holy_Power_5': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("VERTICAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Message: Lua error in aura 'Holy_Power_2': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Holy_Power_2': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("VERTICAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Message: Lua error in aura 'Holy_Power_1': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Holy_Power_1': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("VERTICAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Message: Lua error in aura 'Holy_Power_4': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
Time: Sun Jan  1 10:04:21 2023
Count: 1
Stack: Lua error in aura 'Holy_Power_4': init
WeakAuras Version: 5.3.3
Aura Version: 3.4.5
[string "return function() aura_env.region.bar.fg:Se..."]:1: bad argument #2 to 'SetGradient' (Usage: self:SetGradient(orientation, minColor, maxColor))
[string "=[C]"]: in function `SetGradient'
[string "return function() aura_env.region.bar.fg:SetGradient("VERTICAL",1,0.7,0.3,1,0.8,0.6)"]:1: in function <[string "return function() aura_env.region.bar.fg:Se..."]:1>
[string "=[C]"]: in function `xpcall'
[string "@Interface/AddOns/WeakAuras/AuraEnvironment.lua"]:374: in function `ActivateAuraEnvironment'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:845: in function `ScanWithFakeEvent'
[string "@Interface/AddOns/WeakAuras/GenericTrigger.lua"]:1183: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1896: in function `LoadDisplays'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1680: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1524>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1873: in function `Resume'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1159: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:1121>

Locals: <none>

Reproduction Steps

  1. I just logged in as my main character and it came up right away.

Last Good Version

WeakAuras 5.3.3

Screenshots

No response

Export String

No response

commented

Those errors are caused by custom code in your 'Holy_Power_#' auras, it is not a bug in WeakAuras.

The api for SetGradient has changed. You can either update tthe auras, if there's an update available, fix the code yourself, contact the original author of those auras, or search/ask on our discord with that information.