smaitch / Grail

World of Warcraft addon to provide a database of quest information.
31 stars 20 forks source link

Lua Error when porting to Mount Hyjal #245

Closed JacobraPDX closed 3 years ago

JacobraPDX commented 3 years ago

Every time I port to Mount Hyjal I get the following error:

Message: Interface\AddOns\Grail\Grail.lua:3968: Usage: local powerLevel = C_AzeriteItem.GetPowerLevel(azeriteItemLocation) Time: Fri Nov 20 22:04:25 2020 Count: 1 Stack: Interface\AddOns\Grail\Grail.lua:3968: Usage: local powerLevel = C_AzeriteItem.GetPowerLevel(azeriteItemLocation) [string "=[C]"]: in function GetPowerLevel' [string "@Interface\AddOns\Grail\Grail.lua"]:3968: in functionAzeriteLevelMeetsOrExceeds' [string "@Interface\AddOns\Grail\Grail.lua"]:6529: in function f' [string "@Interface\AddOns\Grail\Grail.lua"]:3768: in function_AllEvaluateTrueS' [string "@Interface\AddOns\Grail\Grail.lua"]:3868: in function <Interface\AddOns\Grail\Grail.lua:3849>

[string "@Interface\AddOns\Grail\Grail.lua"]:8178: in function MeetsPrerequisites' [string "@Interface\AddOns\Grail\Grail.lua"]:10849: in functionStatusCode' [string "@Interface\AddOns\Grail\Grail.lua"]:6664: in function f' [string "@Interface\AddOns\Grail\Grail.lua"]:3768: in function_AllEvaluateTrueS' [string "@Interface\AddOns\Grail\Grail.lua"]:3868: in function <Interface\AddOns\Grail\Grail.lua:3849>

[string "@Interface\AddOns\Grail\Grail.lua"]:3785: in function AncestorStatusCode' [string "@Interface\AddOns\Grail\Grail.lua"]:10851: in functionStatusCode' [string "@Interface\AddOns\Grail\Grail.lua"]:4341: in function ClassificationOfQuestCode' [string "@Interface\AddOns\Wholly\Wholly.lua"]:1434: in function_ClassifyQuestsInMap' [string "@Interface\AddOns\Wholly\Wholly.lua"]:1885: in function _ForcePanelMapArea' [string "@Interface\AddOns\Wholly\Wholly.lua"]:4417: in functionUpdateQuestCaches' [string "@Interface\AddOns\Wholly\Wholly.lua"]:963: in function ?' [string "@Interface\AddOns\Wholly\Wholly.lua"]:2532: in function_OnEvent' [string "@Interface\AddOns\Wholly\Wholly.lua"]:4433: in function <Interface\AddOns\Wholly\Wholly.lua:4433>

Locals:

smaitch commented 3 years ago

Portland? :-) Are you using Grail 112? I thought this was fixed in Grail 112.

JacobraPDX commented 3 years ago

Yup, I am in the Portland, OR area. :) I am using version 112, and get that error every time. Let me uninstall, and re-install and see if that fixes it.

JacobraPDX commented 3 years ago

Even after re-install, still getting the same error when porting to Mount Hyjal.

smaitch commented 3 years ago

The code that Grail 112 is using is:

currentLevel = C_AzeriteItem.GetPowerLevel(C_AzeriteItem.FindActiveAzeriteItem())

I have just tested with a character that does not have an azurite item, and unfortunately C_AzeriteItem.FindActiveAzeriteItem() returns nil, which I imagine it what you are seeing. Therefore, the next release of Grail will change that line to the following two lines (which you can replace in your Grail.lua file if you want):

local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem() currentLevel = azeriteItemLocation and C_AzeriteItem.GetPowerLevel(azeriteItemLocation) or 0

JacobraPDX commented 3 years ago

Yup, that fixed the problem! TYVM!

smaitch commented 3 years ago

Grail 113 is out with the change in place.