Thread Tools Display Modes
07-28-21, 06:40 PM   #1
jayman1000
A Deviate Faerie Dragon
Join Date: Aug 2015
Posts: 10
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)
  Reply With Quote
08-04-21, 01:25 PM   #2
Thrumbar
A Chromatic Dragonspawn
Join Date: Jan 2005
Posts: 157
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

Originally Posted by jayman1000 View Post
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)

Last edited by Thrumbar : 08-04-21 at 01:28 PM.
  Reply With Quote
08-04-21, 02:47 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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
  Reply With Quote

WoWInterface » Featured Projects » Carbonite » Carbonite: General Discussion » Error attempt to perform arithmetic on local 'honor' (a nil value)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off