error, profession bar #6


  • Accepted
  • Other
Open
Assigned to gallantron
  • _ForgeUser2371243 created this issue Oct 19, 2010

    What is the issue?

    getting an error when i log into wow, and i dont see the bars at all :(

    Please provide any additional information below.

    Interface\AddOns\ProfessionBars\ProfessionBars.lua:252: attempt to call global 'GetNumSkillLines' (a nil value)
    (tail call): ?
    (tail call): ?
    Interface\AddOns\ProfessionBars\ProfessionBars.lua:252: in function `GetLevel'
    Interface\AddOns\ProfessionBars\ProfessionBars.lua:278: in function `GetDisenchantableItems'
    Interface\AddOns\ProfessionBars\ProfessionBars.lua:1588: in function `?'
    ...ags\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147: in function <...ags\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
    [string "safecall Dispatcher[3]"]:4: in function <[string "safecall Dispatcher[3]"]:4>
    [C]: ?
    [string "safecall Dispatcher[3]"]:13: in function `?'
    ...ags\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:92: in function `Fire'
    ...ce\AddOns\AdiBags\libs\AceEvent-3.0\AceEvent-3.0.lua:120: in function <...ce\AddOns\AdiBags\libs\AceEvent-3.0\AceEvent-3.0.lua:119>

  • _ForgeUser2371243 added the tags New Other Oct 19, 2010
  • gallantron removed a tag New Oct 20, 2010
  • gallantron added a tag Accepted Oct 20, 2010
  • _ForgeUser1803749 posted a comment Oct 29, 2010

    I've also been looking for a way to get professionbars working again and finally managed to find a way to do it.

    disclaimer: This code wasn't made by me but MrLavender as a temporary fix for Cromulent.

    Put this somewhere at the top in the professionbars.lua

    --- replacing the old bliz function ----

    local function GetNumSkillLines() return 6 end

    local function GetSkillLineInfo(skillIndex) local name, _, level = "", 0, 0 local i = select(skillIndex, GetProfessions()) if i = nil then name, _, level = GetProfessionInfo(i) end return name, nil, nil, level end

    -------------

    and if you want profbars to work with GnomeWorks instead of ATSW change the following:

    change all 'AdvancedTradeSkillWindow' references to 'GnomeWorks' ditto for 'ATSWFrame' to 'GnomeWorksFrame'

    then change the frame offset in those lines from 10 to -5 (or whatever you think looks good.)

    It should look something like this:

    if IsAddOnLoaded("GnomeWorks") then ProfessionBars:ExecuteFrameAction(bs_bar, "SetPoint", {"TOP", GnomeWorksFrame, "BOTTOM", 0, -5})

    Do this for all professions..

  • _ForgeUser1803749 posted a comment Oct 30, 2010

    It looks like a bit of my comment was swallowed so the code you fixed isn't doing what it should..  This is what it should have been..
    (note the ~= instead of the == which you used.. )

    local function GetNumSkillLines()
    return 6
    end

    local function GetSkillLineInfo(skillIndex)
    local name, _, level = "", 0, 0
    local i = select(skillIndex, GetProfessions())
    if i ~= nil then name, _, level = GetProfessionInfo(i) end
    return name, nil, nil, level
    end

  • gallantron posted a comment Oct 31, 2010

    Thanks for the detailed info! Fixed!


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