Thread Tools Display Modes
03-15-06, 10:08 PM   #1
Rags
A Cyclonian
 
Rags's Avatar
Join Date: Sep 2005
Posts: 44
KC_Items Common Stats.lua error

Error: Interface\AddOns\KC_Items\common\stats.lua:24: attempt to perform arithmetic on local `sItemCount' (a nil value)

This is the updated version of KC_Items

Looks like it's not setting the value for sItemCount
__________________
Rags
Warrior|Druid [Blackhand]
Warrior|Mage [Deathwing]


"I had a stick of Carefree gum, but it didn't work. I felt pretty good while I was blowing that bubble, but as soon as the gum lost its flavor, I was back to pondering my mortality." - Mitch Hedberg
  Reply With Quote
03-23-06, 01:32 AM   #2
DaphAlleria
A Kobold Labourer
Join Date: Mar 2006
Posts: 1
Been looking for a fix for this error for a long time, and wish I had the patience to learn to tweak out the bugs on my own, but I had to disable KC_items and KC_EnhancedTrades, and I am patiently waiting for the next version or a fix. Frustrating, because this is positively my favorite mod, and the auction house and broker features are awesome.
  Reply With Quote
03-23-06, 08:02 AM   #3
Kaelten
Jack's raging bile duct
 
Kaelten's Avatar
Featured
Join Date: May 2005
Posts: 782
sorry guys, I havn't had a chance to finish my next release yet. Had an issue with the WowAce site that I had to take care of. I'll be getting back to my addons soon.
__________________
WowAce.com & CurseForge.com Adminstrator
Developer of Ace3, OneBag3, and many other addons and libraries
Project lead and Mac developer for the Curse Client

Anyone that needs what they want
And doesn't want what they need
I want nothing to do with
  Reply With Quote
03-26-06, 01:15 PM   #4
Rags
A Cyclonian
 
Rags's Avatar
Join Date: Sep 2005
Posts: 44
From Kaelton's bug reporting forum:

quick fix: change line 24 in stats.lua to:

self.app.db:set("stats", format("%d,%d,%d,%d,%.2f,%.2f", (sItemCount or 0) + (itemCount or 0), (sSubCount or 0) + (subCount or 0), (sSellCount or 0)+ (sellCount or 0), (sBuyCount or 0)+ (buyCount or 0), ((sSellCount or 0)+ (sellCount or 0))/((sItemCount or 0)+ (itemCount or 0)) * 100, ((sBuyCount or 0)+ (buyCount or 0))/((sItemCount or 0) + (itemCount or 0)) * 100))
__________________
Rags
Warrior|Druid [Blackhand]
Warrior|Mage [Deathwing]


"I had a stick of Carefree gum, but it didn't work. I felt pretty good while I was blowing that bubble, but as soon as the gum lost its flavor, I was back to pondering my mortality." - Mitch Hedberg
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » KC_Items Common Stats.lua error


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