Issue when right clicking char name in chat #18


Closed
Assigned to talryn
  • Forge_User_91435266 created this issue Aug 9, 2018

    alts version: 8.0.0 (through twitch app)

    reproducing this lua error on every login with just "alts" activated

     

    when right clicking a charname in the chat window a lua error pops up immediately and the counter rushes in the thousands until closing right click menu!

     

    thx for help/fix!

     

    Message: Interface\FrameXML\UnitPopup.lua:1359: Usage: CheckInteractDistance("unit", distIndex)
    Time: Thu Aug  9 21:15:42 2018
    Count: 154
    Stack: Interface\FrameXML\UnitPopup.lua:1359: Usage: CheckInteractDistance("unit", distIndex)
    [C]: in function `CheckInteractDistance'
    Interface\FrameXML\UnitPopup.lua:1359: in function <Interface\FrameXML\UnitPopup.lua:1354>
    Interface\FrameXML\UnitPopup.lua:1402: in function `UnitPopup_OnUpdate'
    [string "*:OnUpdate"]:3: in function <[string "*:OnUpdate"]:1>
    
    Locals: (*temporary) = nil
    (*temporary) = 0
    

     

  • NexGaming posted a comment Oct 7, 2018

    Hi,

     

    goto Alts.lua

    search for "dist"

    you should find a line like : 

    _G.UnitPopupButtons["ALTS_SET_MAIN"] = {text = L"Set Main", dist = 0}

     

    and change it into :

     

    _G.UnitPopupButtons["ALTS_SET_MAIN"] = {text = "Set Main", dist = 0}

     

    This will fix it.

     

    Greetings

  • bbleeker posted a comment Jul 14, 2019

    I have the same problem, and when I replace  _G.UnitPopupButtons["ALTS_SET_MAIN"] = {text = L["Set Main"], dist = 0} with  _G.UnitPopupButtons["ALTS_SET_MAIN"] = {text = L["Set Main"], dist = 0}, when I start the game or reload I get:

    Message: Interface\AddOns\Alts\Alts.lua:2625: unexpected symbol near '['
    Time: Sun Jul 14 12:23:51 2019
    Count: 1
    Stack: Interface\AddOns\Alts\Alts.lua:2625: unexpected symbol near '['

     

  • Veyska posted a comment Aug 31, 2019

     Try replacing the line in question with this:

     

    _G.UnitPopupButtons["ALTS_SET_MAIN"] = {text = L["Set Main"]}

     

    (So just deleting the , dist = 0 bit.  No errors thrown here, been making the change every update for a while.  Do make sure to leave the closing curly bracket in, otherwise you'll just cause a whole new pile of errors.  :-P)


    Edited Aug 31, 2019
  • Talryn posted a comment Sep 3, 2019

    I have seen the errors when right clicking a name in chat.  I will try to fix that.  I have to add a hook to add the menu option but the client does not like that.

  • Talryn closed issue Sep 3, 2019
  • Talryn posted a comment Sep 3, 2019

    I added the fix and it should be available as a new release soon.

  • Talryn self-assigned this issue Sep 3, 2019

To post a comment, please login or register a new account.