Unable to load friends list #222


Closed
  • chengyiwu created this issue Sep 28, 2019

    'm unable to use the dropdown to load the friends list. Stacktrace:

     

    9x FrameXML\FriendsFrame.lua:2287: attempt to index local 'accountInfo' (a number value)
    FrameXML\FriendsFrame.lua:2287: in function `CanCooperateWithGameAccount'
    Postal\Modules\BlackBook.lua:370: in function `SortAndCountNumFriends'
    Postal\Modules\BlackBook.lua:457: in function `initFunction'
    FrameXML\UIDropDownMenu.lua:76: in function `UIDropDownMenu_Initialize'
    FrameXML\UIDropDownMenu.lua:1060: in function <FrameXML\UIDropDownMenu.lua:925>
    [C]: in function `ToggleDropDownMenu'
    Postal\Modules\BlackBook.lua:41: in function <Postal\Modules\BlackBook.lua:36>

    Locals:
    accountInfo = 59
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to index local 'accountInfo' (a number value)"
    playerFactionGroup = "Horde"

  • Forge_User_65649594 posted a comment Sep 29, 2019

    I have exactly the same mistake

  • Poms13 posted a comment Oct 4, 2019

    1. BlackBook.lua is located inside the Postal addon folder. C:\Program Files (x86)\World of Warcraft\_retail_\Interface\AddOns\Postal\Modules

     

    2. A .lua file is just a text file with a bunch of code in it. by default windows wont know what to do. If you have Notepad++ (which I highly recommend) you right click the file and choose Edit with Notepad++. Alternatively you can open it with regular notepad by clicking "open with" and selecting notepad.

     

    4. Notepad++ gives us the benefit of showing us line numbers, which regular notepad does not.

     

    3. With the file open, and assuming in Notepad++, you will see a bunch of text for the script. Scroll down until you reach line 366. Line number will be shown on the left side. There you will see the entire line will say "if BNGetNumFriends then -- For pre 3.3.5 backwards compat". Simply copy and paste the work around on top of it and save (ctrl+s).

     

    Nothing super complicated, or any lua knowledge required. It's just a simple copy/paste of a text file.

  • Forge_User_45025362 posted a comment Oct 13, 2019

    For those wondering what the workaround is to paste in that Poms13 is referring to, go to this url:

     

    https://pastebin.com/yCCD0mYG

     

    Overwrite the contents of your BlackBook.lua with the contents of that Pastebin code window.

    Save it.

     

    When you login next time, it should be working with no errors.


    Edited Oct 13, 2019
  • easy0516 posted a comment Oct 13, 2019

    how do i fix this

     

     

  • helloe9 posted a comment Oct 14, 2019
  • Spundot posted a comment Oct 30, 2019

    Thanks for the fix, worked great!

  • Zimzarina closed issue Oct 29, 2020
  • Zimzarina posted a comment Oct 29, 2020

    Fixed.


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