AdiBags

AdiBags

8M Downloads

Currency's not showing and outtputing errors

Random-Stack-Random-Day opened this issue ยท 1 comments

commented

I'm getting frequent lua errors reg. Currency frame.

27x AdiBags\modules\CurrencyFrame.lua:128: attempt to index global 'CurrencyListInfo' (a nil value)
[string "=[C]"]: ?
[string "@ace3\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:29: in function <...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
[string "@ace3\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:64: in function SendMessage' [string "@AdiBags\core\Bags.lua"]:131: in function GetFrame'
[string "@AdiBags\core\Bags.lua"]:83: in function `Open'
[string "@AdiBags\core\Bags.lua"]:119: in function <AdiBags\core\Bags.lua:115>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "TOGGLEBACKPACK"]:1: in function <[string "TOGGLEBACKPACK"]:1>

It references Ace3, but it resolved to AdiBags. I don't see anyone else reporting this issue, so is there something I should do? When I go to Plugins -> Currency, it doesn't show any Currencys selectable like it used too.

commented

Are you using the latest version of AdiBags (1.9.21)? You can get the newest version from curseforge at https://www.curseforge.com/wow/addons/adibags

The error you are receiving shouldn't be possible in the current version.

local currencyListInfo = GetCurrencyListInfo(index)
if currencyListInfo then
if currencyListInfo.name then
if currencyListInfo.isHeader then
if not currencyListInfo.isHeaderExpanded then

First currencyListInfo is defined as a local, the error report says it is a global.
Those next three lines are error checking making sure there is a value and that it isnt "a nil value" specifically so that you won't get the exact error you are currently getting.
your error message shows CurrencyListInfo, but the name in the current version is currencyListInfo (case sensitive)