StatLogicLib

From WowAce Wiki
Jump to: navigation, search
Summary
Lib: StatLogic-1.0
A Library for stat conversion, calculation and summarization.
TOC 2.4 (20400)
Category Libraries
Author Whitetooth
Details
Version ision
Embeds Ace2, UTF8
Links
Betas Ace SVN Zip
Changelog FishEye
Ability Vanish.png This addon page is not claimed.
Please see Unclaimed Addon Pages for more details.

ERROR NOTE:

When loading World of Warcraft, users may encounter a 'table nil' error upon entering the world. This is caused by a change made in StatLogicLib r55568 by xinhuan.

The latest version that works WITHOUT this error is StatLogicLib r55532 by xinhuan. Users are advised to downgrade to this version to avoid the 'table nil' error if they encounter it, in order to assure that other addons work as intended. Alternatively, I've posted below on how to fix the affected .lua file

A notable addon that depends on StatLogicLib is "RatingBuster".

The following is a copy and paste from the changelog:


r55568 | xinhuan | 2007-11-20 19:15:13 -0500 (Tue, 20 Nov 2007) | 1 line Changed paths:

  M /trunk/StatLogicLib/StatLogic-1.0/StatLogic-1.0.lua

StatLogicLib: Remove taint on variable CR_EXPERTISE.


r55532 | xinhuan | 2007-11-20 08:36:37 -0500 (Tue, 20 Nov 2007) | 1 line Changed paths:

  M /trunk/StatLogicLib/StatLogic-1.0/StatLogic-1.0.lua

StatLogicLib: Fix flawed GetItemInfo cache design. It previously cached nil return values, so if the client cache got the info later in the game session, the cache wasn't updated.



The following is what I did to "fix" the error:

Before-

CR_WEAPON_SKILL_RANGED = 23;

CR_EXPERTISE = 24; --]]

local RatingNameToID = {

After-

CR_WEAPON_SKILL_RANGED = 23;

CR_EXPERTISE = 24; --]] CR_EXPERTISE = 24

local RatingNameToID = {

I used NotePad to open the older version, and just did a copy and paste. Be very careful to preserve formatting and if it tells you formatting will be lost then it will NOT work in WoW.