The problem is that the game is also returning unshown quests with the GetGossipAvailableQuests() call and they have “nil” for the level.
One possible fix that I have tested is to add the following line above line 41 of Levelator.lua:
if (not button:IsShown()) then return end;
Afterwards it should look like this:
function FLV_UpdateGossipQuests(…)
for i = 1, select(“#”, …), 3 do
local button = getglobal(“GossipTitleButton”..FLV_ButtonIndex);
if (not button:IsShown()) then return end;
if ( select(i+2, …) ) then
Hmm, failed at that last part. Here’s another try at what it should look like.
function FLV_UpdateGossipQuests(...)
for i = 1, select("#", ...), 3 do
local button = getglobal("GossipTitleButton"..FLV_ButtonIndex);
if (not button:IsShown()) then return end;
if ( select(i+2, ...) ) then
Sorry, I’ve been a bit overworked lately and unable to deal with this issue quickly. Thanks Xod and others for trying to help with the problem (actually, it wasn’t that the API was returning for nonexistent quests, but that it now returns more data fields than before). Levelator 3.3.1 is now available with a complete fix.
To leave feedback on a Fizzwidget Industries product, visit us on Github. There you can report bugs, contribute enhancements, or just live on the bleeding edge.
March 23rd, 2010 at 6:30 pm
error as of patch 3.3.3
[“message”] = “GFW_Levelator-3.3\\Levelator.lua:44: bad argument #2 to ‘SetFormattedText’ (number expected, got nil)\nGFW_Levelator-3.3\\Levelator.lua:44: in function `FLV_UpdateGossipQuests’\nGFW_Levelator-3.3\\Levelator.lua:12: in function <Interface\\AddOns\\GFW_Levelator\\Levelator.lua:5>\n\nLocals:|r\n(for index) = 4\n(for limit) = 4\n(for step) = 3\ni = 4\nbutton = GossipTitleButton2 {\n 0 = \n type = \”Active\”\n}\n\n —“,
March 23rd, 2010 at 8:02 pm
Levelator is throwing up massive error messages now that the 3.3.3 patch has gone live.
March 26th, 2010 at 2:04 am
Getting the following error in Levelator:
Date: 2010-03-26 09:01:36 ID: 2 Error occured in: Global Count: 1 Message: ..\AddOns\GFW_Levelator\Levelator.lua line 44: bad argument #2 to ‘SetFormattedText’ (number expected, got nil) Debug: (tail call): ? GFW_Levelator\Levelator.lua:44: FLV_UpdateGossipQuests() GFW_Levelator\Levelator.lua:8: GFW_Levelator\Levelator.lua:5
March 26th, 2010 at 8:33 pm
Will there be a new version for patch 3.3.3? The current release is throwing an error whenever I talk with a quest giver that has more than one quest.
March 27th, 2010 at 12:13 pm
I get the following error when turning in a quest where the NPC has multiple quests to be turned in.
Date: 2010-03-27 13:07:23 ID: -1 Error occured in: Global Count: 2 Message: ..\AddOns\GFW_Levelator\Levelator.lua line 44: bad argument #2 to 'SetFormattedText' (number expected, got nil) Debug: (tail call): ? (tail call): ? GFW_Levelator\Levelator.lua:44: FLV_UpdateGossipQuests() GFW_Levelator\Levelator.lua:12: GFW_Levelator\Levelator.lua:5 AddOns: [ snipped for page readability -Gazmik ]
March 28th, 2010 at 11:35 am
Get the same. Something broke in when going from 3.3.2 to 3.3.3
March 29th, 2010 at 4:28 am
i have posted a quick kludge fix for 3.3.3 on wowinterface. http://www.wowinterface.com/downloads/info16314.html
March 31st, 2010 at 2:14 pm
The problem is that the game is also returning unshown quests with the GetGossipAvailableQuests() call and they have “nil” for the level.
One possible fix that I have tested is to add the following line above line 41 of Levelator.lua:
Afterwards it should look like this:
function FLV_UpdateGossipQuests(…) for i = 1, select(“#”, …), 3 do local button = getglobal(“GossipTitleButton”..FLV_ButtonIndex); if (not button:IsShown()) then return end; if ( select(i+2, …) ) then
March 31st, 2010 at 2:15 pm
Hmm, failed at that last part. Here’s another try at what it should look like.
April 4th, 2010 at 11:11 pm
Yea, I get basically the same error. Not the list of addons, of course, but the actual error.
April 5th, 2010 at 11:30 pm
Sorry, I’ve been a bit overworked lately and unable to deal with this issue quickly. Thanks Xod and others for trying to help with the problem (actually, it wasn’t that the API was returning for nonexistent quests, but that it now returns more data fields than before). Levelator 3.3.1 is now available with a complete fix.