WeakAuras

WeakAuras

200M Downloads

Lua error on loading dev weakauras options on wotlk live & ptr

mrbuds opened this issue ยท 2 comments

commented

Description

Lua error since WeakAurasNewButton's button frame doesn't have a name anymore caused by OptionsListButtonTemplate

function OptionsListButton_OnLoad (self, toggleFunc)
    self.text = _G[self:GetName() .. "Text"];
    self.highlight = self:GetHighlightTexture();
    self.highlight:SetVertexColor(.196, .388, .8);
    self.text:SetPoint("RIGHT", "$parentToggle", "LEFT", -2, 0);
    self:RegisterForClicks("LeftButtonUp", "RightButtonUp");

    self.toggleFunc = toggleFunc or OptionsListButton_ToggleSubCategories;
end

The template wants self:GetName() to not return nil

WeakAuras Version

dev

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

10x Interface/FrameXML/OptionsFrameTemplates.lua:129: attempt to concatenate a nil value
[string "@Interface/FrameXML/OptionsFrameTemplates.lua"]:129: in function `OptionsListButton_OnLoad'
[string "*OptionsFrameTemplates.xml:203_OnLoad"]:1: in function <[string "*OptionsFrameTemplates.xml:203_OnLoad"]:1>
[string "=[C]"]: in function `CreateFrame'
[string "@Interface/AddOns/WeakAurasOptions/AceGUI-Widgets/AceGUIWidget-WeakAurasNewButton.lua"]:93: in function `?'
[string "@Interface/AddOns/WeakAuras/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:108: in function <...face/AddOns/WeakAuras/Libs/AceGUI-3.0/AceGUI-3.0.lua:97>
[string "@Interface/AddOns/WeakAuras/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:146: in function `Create'
[string "@Interface/AddOns/WeakAurasOptions/OptionsFrames/OptionsFrame.lua"]:1163: in function `NewAura'
[string "@Interface/AddOns/WeakAurasOptions/WeakAurasOptions.lua"]:832: in function `ShowOptions'
[string "@Interface/AddOns/WeakAurasOptions/WeakAurasOptions.lua"]:614: in function `ToggleOptions'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:155: in function `OpenOptions'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:1024: in function `OnClick'
[string "@Interface/AddOns/WeakAuras/Libs/LibDBIcon-1.0-44/LibDBIcon-1.0.lua"]:144: in function <...ddOns/WeakAuras/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:142>

Locals:
self = Button {
 0 = <userdata>
 toggle = UIParentToggle {
 }
}
toggleFunc = nil
(*temporary) = <table> {
 UpdateOnBarHighlightMarksBySpell = <function> defined @Interface/FrameXML/ActionButton.lua:70
 ERR_OUT_OF_CHI = "Not enough chi"
 DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded."
 MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown {
 }
 MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock {
 }
 GetTrainerServiceTypeFilter = <function> defined =[C]:-1
 UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names."
 SetTrainerServiceTypeFilter = <function> defined =[C]:-1
 LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 790
 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you."
 LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 408
 ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this group."
 CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture = CompactUnitFrameProfilesGeneralOptionsFrameHealthTextDropdownButtonNormalTexture {
 }
 MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown {
 }
 ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags."
 PVP_RANK_6_1 = "Corporal"
 MultiBarLeftButton7 = MultiBarLeftButton7 {
 }
 InterfaceOptionsNamesPanelUnitNameplatesShowAll = InterfaceOptionsNamesPanelUnitNameplatesShowAll {
 }
 VideoOptionsFrameDefaults = VideoOptionsFrameDefaults {
 }
 MerchantItem1AltCurrencyFrameItem1Text = MerchantItem1AltCurrencyFrameItem1Text {
 }
 OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN = "Action button keybinds will respond on key down, rather than on key up."
 BINDING_NAME_NAMEPLATES = "Show Enemy Name Plates"
 CHAT_HEADER_SUFFIX = ": "
 LFGBrowseGroupDataDisplayRoleCount_Update = <function> defined @Interface/AddOns/Blizzard_LookingForGroupUI/Blizzard_LFGBrowse.lua:706
 MultiBarBottomRightButton8Shine5 = MultiBarBottomRightButton8Shine5 {
 }
 IsReferAFriendLinked = <function> defined =[C]:-1
 MAIL_LETTER_TOOLTIP = "Click to make a permanent
copy of this letter."
 UnitFrameManaBar_UnregisterDefaultEvents = <function> defined @Interface/FrameXML/UnitFrame.lua:603
 ERR_NOAMMO_S = "%s"
 CHAT_CONFIG_OTHER_COMBAT = <table> {
 }
 CONSOLIDATED_BUFFS_PER_ROW = 4
 MoneyFrame_OnEvent = <function> defined @Interface/FrameXML/MoneyFrame.lua:214
 BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Blizzard services may be unavailable."
 LE_GAME_ERR_RECRUIT_A_FRIEND_FAILED = 1004
 CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight = CompactRaidFrameManagerDisplayFrameHiddenModeToggleTopRight {
 }
 LE_GAME_ERR_ONLY_ONE_QUIVER = 33
 SpellButton6Cooldown = SpellButton6Cooldown {
 }
 LOSS_OF_CONTROL_DISPLAY_FEAR = "Feared"
 Graphics_QualityText = Graphics_QualityText {
 }
 OverrideActionBarButton6Shine11 = OverrideActionBarButton6Shine11 {
 }
 ROGUE_COMBAT_CORE_ABILITY_4 = "Melee ability with an increased range that consumes Combo Points."
 JoinSkirmish = <function> defined =[C]:-1
 Advanced_GraphicsAPIDropDownButtonHighlightTexture = Advanced_GraphicsAPIDropDownButtonHighlightTexture {
 }
 MultiBarRightButton7Shine9 = MultiBarRightButton7Shine9 {
 }
 BankFrameItem17SearchOverlay = BankFrameItem17SearchOverlay {
 }
 DMG_LCD = "DMG"
 RaidGraphics_EnvironmentalDetailSlider = RaidGraphics_EnvironmentalDetailSlider {
 }
 PetPaperDollFrameTab3Right = PetPaperDollFrameTab3Right {
 }
 Is64BitClient = <function> defined =[C]:-1
 SecureCmdItemParse = <function> defined @Interface/FrameXML/ChatFrame.lua:1128
 SLASH_STOPATTACK1 = "/stopattack"
 MultiCastActionButton4HotKey = MultiCastActionButton4HotKey {
 }
 CompactRaidFrameManagerDisplayFrameFilterOptionsFilterRoleTankMiddleMiddle = CompactRaidFrameManagerDisplayFrameFilterOptionsFilterRoleTankMiddleMiddle {
 }
 SortQuestWatches = <function> defined =[C]:-1
 ContainerFrame4Item16Cooldown = ContainerFrame4Item16Cooldown {
 }
 MINIMAP_TRACKING_TRAINER_CLASS = "Class Trainer"
 SLASH_DISMOUNT2 = "/dismount"
 DUNGEON_FLOOR_DRAGONBLIGHTCHROMIESCENARIO2 = "Andorhal"
 TokenFrameContainerButton15Stripe = TokenFrameContainerB

Reproduction Steps

Log on wotlk (ptr or live)
Open /wa

Last Good Version

No response

Screenshots

No response

Export String

No response

commented

This was fixed

commented

Actually my PR is not yet merged :)