When I cast a shield on myself I get a lua error that keeps coming back #1713


  • New
  • Defect
Open
  • _ForgeUser5062950 created this issue Oct 19, 2014

    What steps will reproduce the problem?
    1. Casting a shield on anyone
    2. Target getting debuff
    3. Every now and then it randomly comes up

    What is the expected output? What do you see instead?

    What version of the product are you using?
    The alpha version on here

    Do you have an error log of what happened?
    Message: Interface\AddOns\XPerl\XPerl_Highlight.lua:32: attempt to call global 'GetNumTalents' (a nil value)
    Time: 10/19/14 20:50:13
    Count: 45
    Stack: Interface\AddOns\XPerl\XPerl_Highlight.lua:32: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:30>
    Interface\AddOns\XPerl\XPerl_Highlight.lua:43: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:41>
    Interface\AddOns\XPerl\XPerl_Highlight.lua:53: in function `GetModifier'
    Interface\AddOns\XPerl\XPerl_Highlight.lua:62: in function `GetRankAmount'
    Interface\AddOns\XPerl\XPerl_Highlight.lua:1452: in function `ev'
    Interface\AddOns\XPerl\XPerl_Highlight.lua:1305: in function `?'
    Interface\AddOns\XPerl\XPerl_Highlight.lua:1283: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:1282>

    Locals: findName = nil
    (for index) = 1
    (for limit) = 3
    (for step) = 1
    i = 1
    (*temporary) = 1
    (*temporary) = nil
    (*temporary) = 1
    (*temporary) = "attempt to call global 'GetNumTalents' (a nil value)"

    Please provide any additional information below.

  • _ForgeUser5062950 added the tags New Defect Oct 19, 2014
  • _ForgeUser5062950 posted a comment Oct 19, 2014

    Happened again as soon as I cast a shield on myself:

    Message: Interface\AddOns\XPerl\XPerl_Highlight.lua:32: attempt to call global 'GetNumTalents' (a nil value) Time: 10/19/14 20:50:13 Count: 45 Stack: Interface\AddOns\XPerl\XPerl_Highlight.lua:32: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:30> Interface\AddOns\XPerl\XPerl_Highlight.lua:43: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:41> Interface\AddOns\XPerl\XPerl_Highlight.lua:53: in function `GetModifier' Interface\AddOns\XPerl\XPerl_Highlight.lua:62: in function `GetRankAmount' Interface\AddOns\XPerl\XPerl_Highlight.lua:1452: in function `ev' Interface\AddOns\XPerl\XPerl_Highlight.lua:1305: in function `?' Interface\AddOns\XPerl\XPerl_Highlight.lua:1283: in function <Interface\AddOns\XPerl\XPerl_Highlight.lua:1282>

    Locals: findName = nil (for index) = 1 (for limit) = 3 (for step) = 1 i = 1 (*temporary) = 1 (*temporary) = nil (*temporary) = 1 (*temporary) = "attempt to call global 'GetNumTalents' (a nil value)"

  • _ForgeUser15702739 posted a comment Oct 21, 2014

    I was having the same problem. It seems 6.0 removed GetNumTalents ().

    Removing GetTalentPosition() and changing GetTalentValueByName(name) to the following worked for me:

    local function GetTalentValueByName(name)
        local group = GetActiveSpecGroup()
        local talentCount = 18
        if select(4, GetBuildInfo()) >= 60000 then
            talentCount = 21
        end
        for i = 1,GetNumSpecializations() do
            for j = 1,talentCount do
                local infoName, iconPath, currentRank, maxRank, isExceptional, meetsPrereq = GetTalentInfo(i, j, group)
                if (infoName == findName) then
                    return currentRank
                end
            end
        end
        return 0
    end
    

    I should note I have no idea what I'm doing, or if this is properly preserving the value xperl is trying to capture, but the errors go away and the shield value displays.

  • _ForgeUser5062950 posted a comment Oct 21, 2014

    @salushyjal: Go

    Thank you! I am actually quite useless with this.. would I put what you posted into the lua error box when it shows up again? :)

  • _ForgeUser5062950 posted a comment Oct 23, 2014

    After playing like this awhile I have noticed that I get the error when I cast a shield on anything, and then appears again as soon as the shield is broken or fades. Please can someone help me, it is rather annoying but I love my ui.

    Thanks

  • KnightRyder002 posted a comment Oct 26, 2014

    I'm also getting same error:

    Date: 2014-10-26 00:58:10 ID: 1 Error occured in: Global Count: 28 Message: ..\AddOns\XPerl\XPerl_Highlight.lua line 32: attempt to call global 'GetNumTalents' (a nil value) Debug: XPerl\XPerl_Highlight.lua:32: XPerl\XPerl_Highlight.lua:30 XPerl\XPerl_Highlight.lua:43: XPerl\XPerl_Highlight.lua:41 XPerl\XPerl_Highlight.lua:53: GetModifier() XPerl\XPerl_Highlight.lua:62: GetRankAmount() XPerl\XPerl_Highlight.lua:1452: ev() XPerl\XPerl_Highlight.lua:1305: ?() XPerl\XPerl_Highlight.lua:1283: XPerl\XPerl_Highlight.lua:1282 Locals: findName = nil (for index) = 1 (for limit) = 3 (for step) = 1 i = 1 (*temporary) = 1 (*temporary) = nil (*temporary) = 1 (*temporary) = "attempt to call global 'GetNumTalents' (a nil value)"

  • _ForgeUser5062950 posted a comment Oct 26, 2014

    Are we going to get any help with this? Otherwise It will just be easier for me not to use Xperl. This is how you lose users... by not even replying.

  • _ForgeUser1474348 posted a comment Oct 26, 2014

    @user_254594: Go

    Sadly, Asixandur quitted to play WoW so we don't have any of coder for handle about fixing bugs...and Zek never give a shit from long time ago when he given up all his addons.

    If you can't take it anymore, welcome to use other working Unitframe addons... :(


    Edited Oct 26, 2014
  • _ForgeUser5062950 posted a comment Oct 26, 2014

    @PlayerLin: Go

    :/ that is sad. Thank you for getting back to us at least. I cant deal with buggy addons so I will unfortunately have to use something else.

  • _ForgeUser1474348 posted a comment Oct 27, 2014

    @user_254594: Go

    At least Resike forked a new one, for try to continue X-Perl but name changed, you can try that...

    http://wow.curseforge.com/addons/zperl/ (It's not released yet, as still not stable...)


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