This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
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>
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..
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 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
Thanks for the detailed info! Fixed!
To post a comment, please login or register a new account.