CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on My ace addon breaks Bartender
    I'm updating an older addon and using AceComm for communication between users. This works fine on its own. Unfortunately, now Bartender breaks when I right click its minimap button, giving this error:

    [2009/08/09 13:03:23-57-x1]: AceConfigDialog-3.0-34:1470: attempt to index local 'group' (a nil value)
    AceConfigDialog-3.0-34:1432: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1412>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[3]":9: in function <[string "safecall Dispatcher[3]"]:5>
    (tail call): ?:
    AceGUI-3.0-25 (Bartender4):305: in function `Fire'
    ...4\libs\AceGUI-3.0\widgets\AceGUIWidget-TreeGroup.lua:480: in function `Select':
    ...4\libs\AceGUI-3.0\widgets\AceGUIWidget-TreeGroup.lua:489: in function `SelectByValue':
    AceConfigDialog-3.0-34:1610: in function `FeedGroup'
    AceConfigDialog-3.0-34:1773: in function `Open'
    Bartender4-3\Bartender4.lua:429: in function `OnClick'
    LibDBIcon-1.0-10 (Bartender4):121: in function <...dOns\Bartender4\libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:121>

    Am I doing something wrong when setting up Ace? With my addon disabled, this error doesn't happen. Here are the basic files I have setup...

    ## Interface: 30200
    ## Title: MyQuests
    ## Version: 0.2.7
    ## Notes: Player quest creation.
    ## SavedVariablesPerCharacter: myquests
    ## RequiredDeps:
    ## OptionalDeps: Ace3
    ## X-Embeds: Ace3
    ## X-Category: Interface Enhancements

    <Ui xmlns="<a href="" rel="noopener nofollow" target="_blank">" xmlns:xsi="" xsi:schemaLocation="

    <Script file="Libs\LibStub\LibStub.lua"/>
    <Include file="Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml" />
    <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml"/>
    <Include file="Libs\AceConsole-3.0\AceConsole-3.0.xml"/>
    <Include file="Libs\AceComm-3.0\AceComm-3.0.xml"/>
    <Include file="Libs\AceSerializer-3.0\AceSerializer-3.0.xml"/>

    MyQuests.lua (referenced in MyQuests.xml):
    MQAce = LibStub("AceAddon-3.0"):NewAddon("MQAce", "AceConsole-3.0", "AceEvent-3.0", "AceComm-3.0", "AceSerializer-3.0")

    function MQAce:OnInitialize()


    function MQAce:OnEnable()
    self:RegisterComm( "MQAce" )


    function MQAce:OnDisable()


    Then the rest of the addon code is using MQAce:SendCommMessage and MQAce:OnCommReceived for the communication.

    You can see I'm not using AceConfig, so I'm not sure why I'm getting an AceConfig error out of this... I did try using AceConfig too, in case it was required, but that didn't change the error.

    Any help would be appreciated! :)
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.