WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Carbonite: General Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=118)
-   -   Error attempt to perform arithmetic on local 'honor' (a nil value) (https://www.wowinterface.com/forums/showthread.php?t=58860)

jayman1000 07-28-21 06:40 PM

Error attempt to perform arithmetic on local 'honor' (a nil value)
 
Got Carbonite spamming this error mutliple times every second, slowing down the game to a few fps. This happened a few seconds after getting back zone after ending a battleground. After reloading UI it stopped.

If this is not the place to post bugs or errors I apologize, please let me know.

Message: Interface\AddOns\Carbonite\NxMap.lua:4429: attempt to perform arithmetic on local 'honor' (a nil value)
Time: Thu Jul 29 02:38:43 2021
Count: 1642
Stack: Interface\AddOns\Carbonite\NxMap.lua:4429: attempt to perform arithmetic on local 'honor' (a nil value)

Thrumbar 08-04-21 01:25 PM

Line 4428 nee to be changed from

4428 local _, honor = GetCurrencyInfo (392)

to this

4428 local _, honor = C_CurrencyInfo.GetCurrencyInfo (392)

and

4456 local _, honor = GetCurrencyInfo (392)

to

4456 local _, honor = C_CurrencyInfo.GetCurrencyInfo (392)

should work after that

Quote:

Originally Posted by jayman1000 (Post 339623)
Got Carbonite spamming this error mutliple times every second, slowing down the game to a few fps. This happened a few seconds after getting back zone after ending a battleground. After reloading UI it stopped.

If this is not the place to post bugs or errors I apologize, please let me know.

Message: Interface\AddOns\Carbonite\NxMap.lua:4429: attempt to perform arithmetic on local 'honor' (a nil value)
Time: Thu Jul 29 02:38:43 2021
Count: 1642
Stack: Interface\AddOns\Carbonite\NxMap.lua:4429: attempt to perform arithmetic on local 'honor' (a nil value)


Kanegasi 08-04-21 02:47 PM

That won't work. The new GetCurrencyInfo returns a table and the current iteration of Honor has the ID of 1792.

Lua Code:
  1. local honor = C_CurrencyInfo.GetCurrencyInfo(1792).quantity


All times are GMT -6. The time now is 09:36 PM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI