AutoGear.lua:3240: attempt to call method 'WrapTextInColorCode' (a nil value)
TyThompson opened this issue ยท 5 comments
Example when playing a rogue while it has stat weights for a paladin loaded it is generating this error.
I'm on Season of Discovery if that helps.
6x AutoGear/AutoGear.lua:3240: attempt to call method 'WrapTextInColorCode' (a nil value)
[string "@AutoGear/AutoGear.lua"]:3240: in function AutoGearReadItemInfo' [string "@AutoGear/AutoGear.lua"]:2570: in function
AutoGearUpdateEquippedItems'
[string "@AutoGear/AutoGear.lua"]:1821: in function <AutoGear/AutoGear.lua:1813>
Locals:
inventoryID = 16
lootRollID = nil
container = nil
slot = nil
questRewardIndex = nil
link = nil
info =
isGear = true
is1hWeaponOrOffHand = 1
item =
}
YellowSockets = 0
invType = 13
link = "|cff1eff00|Hitem:12247::::::::50:::::::::|h[Broad Bladed Knife]|h|r"
rarityColor =
}
numValidGearSlots = 0
classID = 2
BlueSockets = 0
unusable = 1
rarity = 2
name = "Broad Bladed Knife"
id = 12247
RedSockets = 0
subclassID = 15
isWeaponOrOffHand = 1
MetaSockets = 0
}
localizedClass = "Paladin"
class = "PALADIN"
spec = "Retribution"
(*temporary) = "(invalid item for "
(*temporary) = nil
(*temporary) =
b = 0.730000
colorStr = "fff48cba"
g = 0.550000
r = 0.960000
}
(*temporary) = "Retribution Paladin"
(*temporary) = "attempt to call method 'WrapTextInColorCode' (a nil value)"
futureAction =
}
L =
}
TOC_VERSION_CURRENT = 11502
TOC_VERSION_WOTLK = 30000
TOC_VERSION_WOD = 60000
weapons = "2h"
TOC_VERSION_MOP = 50000
The WrapTextInColorCode
function is still available in SoD: https://www.townlong-yak.com/framexml/era/Color.lua#66
Can you try disabling all other addons and tell me if it still happens? I ask because I expect that this error should only happen if another addon has assigned WrapTextInColorCode
nil
, since it is expected to be available in the default UI.
It is working when I disable all other addons
I'll report back if I find the addon that is causing this
Thanks for confirming. This is not an AutoGear issue, so when you find the addon causing it, please report the issue to that addon's author.
WeWantBlueShamans was causing the issue
https://www.curseforge.com/wow/addons/wewantblueshamans
I am the author of https://www.curseforge.com/wow/addons/wewantblueshamans. Thanks for bringing up the issue. Since v1.06 I now create ColorMixin
s with CreateColor
(https://github.com/XiconQoo/WeWantBlueShamans/blob/main/core.lua#L65), thus this nil error not being an issue anymore.