Unit name displayed as nil
jimmycuadra opened this issue ยท 3 comments
Describe the bug
I created auras to track tank debuffs in Castle Nathria. The display includes the name of the debuffed unit using %1.unitName
. When the debuff is on me, my name is displayed as expected. When the debuff is on another tank, the name is displayed as "nil". I've tried it using both "focus" and "raid" as the unit type in the trigger, and both of these exhibit the same behavior. I've only tried this in LFR, so I'm not sure if it happens in a normal/heroic/mythic raid scenario.
Do you have an error log of what happened?
No script errors are produced.
To Reproduce
Steps to reproduce the behavior:
Here is a lua table for one of the auras in question (I have several for different debuffs in Castle Nathria, but this is the one shown in the included screenshot):
{
["iconSource"] = -1,
["authorOptions"] = {
},
["yOffset"] = 0,
["anchorPoint"] = "CENTER",
["cooldownSwipe"] = true,
["cooldownEdge"] = false,
["actions"] = {
["start"] = {
},
["finish"] = {
},
["init"] = {
},
},
["triggers"] = {
[1] = {
["trigger"] = {
["showClones"] = true,
["type"] = "aura2",
["use_debuffClass"] = false,
["subeventSuffix"] = "_CAST_START",
["useStacks"] = false,
["matchesShowOn"] = "showOnActive",
["event"] = "Health",
["subeventPrefix"] = "SPELL",
["unit"] = "raid",
["stacks"] = "2",
["spellIds"] = {
},
["names"] = {
},
["useExactSpellId"] = true,
["auraspellids"] = {
[1] = "326456",
},
["stacksOperator"] = "<=",
["debuffType"] = "HARMFUL",
},
["untrigger"] = {
},
},
["activeTriggerMode"] = -10,
},
["internalVersion"] = 40,
["keepAspectRatio"] = false,
["selfPoint"] = "CENTER",
["desaturate"] = false,
["subRegions"] = {
[1] = {
["text_shadowXOffset"] = 0,
["text_text_format_s_format"] = "none",
["text_text"] = "%s",
["text_shadowColor"] = {
[1] = 0,
[2] = 0,
[3] = 0,
[4] = 1,
},
["text_selfPoint"] = "AUTO",
["text_automaticWidth"] = "Auto",
["text_fixedWidth"] = 64,
["anchorYOffset"] = 0,
["text_justify"] = "CENTER",
["rotateText"] = "NONE",
["type"] = "subtext",
["text_color"] = {
[1] = 1,
[2] = 1,
[3] = 1,
[4] = 1,
},
["text_font"] = "Friz Quadrata TT",
["text_shadowYOffset"] = 0,
["text_wordWrap"] = "WordWrap",
["text_visible"] = true,
["text_anchorPoint"] = "INNER_BOTTOMRIGHT",
["text_fontSize"] = 12,
["anchorXOffset"] = 0,
["text_fontType"] = "OUTLINE",
},
[2] = {
["text_shadowXOffset"] = 0,
["text_text"] = "%1.unitName",
["text_text_format_1.unitName_color"] = "class",
["text_shadowColor"] = {
[1] = 0,
[2] = 0,
[3] = 0,
[4] = 1,
},
["text_selfPoint"] = "AUTO",
["text_automaticWidth"] = "Auto",
["text_fixedWidth"] = 64,
["anchorYOffset"] = 0,
["text_justify"] = "CENTER",
["rotateText"] = "NONE",
["text_text_format_1.unitName_abbreviate_max"] = 8,
["text_text_format_1.unitName_abbreviate"] = false,
["type"] = "subtext",
["text_text_format_1.unitName_realm_name"] = "never",
["text_color"] = {
[1] = 1,
[2] = 1,
[3] = 1,
[4] = 1,
},
["text_font"] = "Arial Narrow",
["text_text_format_1.unitName_format"] = "Unit",
["text_shadowYOffset"] = 0,
["text_text_format_p_format"] = "timed",
["text_wordWrap"] = "WordWrap",
["text_fontType"] = "OUTLINE",
["text_anchorPoint"] = "OUTER_BOTTOM",
["text_text_format_p_time_precision"] = 1,
["text_visible"] = true,
["text_fontSize"] = 10,
["anchorXOffset"] = 0,
["text_text_format_p_time_dynamic"] = false,
},
},
["height"] = 40,
["load"] = {
["size"] = {
["multi"] = {
},
},
["role"] = {
["single"] = "TANK",
},
["spec"] = {
["multi"] = {
},
},
["talent"] = {
["multi"] = {
},
},
["use_role"] = true,
["encounterid"] = "2402",
["class"] = {
["multi"] = {
},
},
["use_encounterid"] = true,
},
["regionType"] = "icon",
["color"] = {
[1] = 1,
[2] = 1,
[3] = 1,
[4] = 1,
},
["icon"] = true,
["information"] = {
},
["animation"] = {
["start"] = {
["easeStrength"] = 3,
["type"] = "none",
["duration_type"] = "seconds",
["easeType"] = "none",
},
["main"] = {
["easeStrength"] = 3,
["type"] = "none",
["duration_type"] = "seconds",
["easeType"] = "none",
},
["finish"] = {
["easeStrength"] = 3,
["type"] = "none",
["duration_type"] = "seconds",
["easeType"] = "none",
},
},
["cooldownTextDisabled"] = false,
["zoom"] = 0,
["frameStrata"] = 1,
["id"] = "Sun King's Salvation - Burning Remnants",
["uid"] = "ZSrg7Prs7K0",
["alpha"] = 1,
["anchorFrameType"] = "SCREEN",
["width"] = 40,
["config"] = {
},
["inverse"] = false,
["xOffset"] = 0,
["conditions"] = {
},
["cooldown"] = true,
["parent"] = "Castle Nathria (Tank)",
}
Jibsy is my name. The other tank's name is not displayed, and is shown as "nil" instead.
Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
No, I did not do this. I can't realistically disable all my other addons while raiding.
Which version of WeakAuras are you using?
3.1.8
Are you on World of Warcraft Classic or Retail?
- Classic
- Retail
Was it working in a previous version? If yes, which was the last good one?
No, this has never worked.
class colored options are not meant to be use with "unitName" field but with "unit" field
Thanks for the response! I'll try using unit instead of unitName. Could the code be changed so that class color formatting is not an available option when using unitName if it doesn't work? Or at least explain this in documentation somewhere. I looked through all the docs and didn't find anything about this. I'm not sure how I would've known.