LibStatLogic-1.2

25 - LUA nil Error

What steps will reproduce the problem?
1.program loads
2.
3.

What is the expected output? What do you see instead?
no error, get error message

What version of the product are you using?
Current as of today

Do you have an error log of what happened?
1x libs\LibStatLogic-1.2\LibStatLogic-1.2-102.lua:380 attempt to index local "L" (a nil value)
libs\LibStatLogic-1.2\LibStatLogic-1.2-102.lua:380 in main chunk

Please provide any additional information below.

User When Change
LarryGatlin Aug 31, 2012 at 13:33 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of JackTripper JackTripper Aug 31, 2012 at 21:39 UTC - 0 likes

    <<reply 920423="">>

    Does RatingsBuster not include LibStatLogic as a sub-folder (i.e. a library)?

    It would be odd for RatingsBuster to place LibStatLogic as a separate addon in the addons folder; when it's actually a library.

    i know LibStatLogic has its own TOC file, but i cannot imagine why it's there.

  • Avatar of LarryGatlin LarryGatlin Aug 31, 2012 at 21:20 UTC - 0 likes

    I was just using what the RatingBuster addon puts into the Addon Directory. I had the main addon working than all of a sudden started getting the errors in the labstatlogic. The error generated just as I load wow now is

    7x RatingBuster\RatingBuster-1.6.7.lua:1893: attempt to index field "?" (a nil value) RatingBuster\RatingBuster-1.6.7.lua:1893: in main chunk

    Locals:

    2x libs\LibStatLogic-1.2\LibStatLogic-1.2-107.lua:270: attempt to index global "PatternLocale" (a nil value) libs\LibStatLogic-1.2\LibStatLogic-1.2-107.lua:270: in main chunk

    Thank you for Fixing RatingBuster, works like a champ Locals:

    It worked find before Tuesday, so scratching head!!

    Thanks for the information though

    Edit: Gonna have to dig deeper and more learning to figure which errors are happening first, maybe in the ratingbuster itself. Not so cut and dried as my VB.net!

    Where best resources to read up on all this?

    Jack, thank you for fixing Ratingbuster, works like a champ again

    Last edited Sep 01, 2012 by LarryGatlin
  • Avatar of JackTripper JackTripper Aug 31, 2012 at 17:32 UTC - 0 likes

    It's almost like you're missing the enUS.lua file:

    lib.xml
    LibStatLogic-1.2.lua
    Locales\ 
          Locales.xml
          enUS.lua
    

    lib.xml is directs wow to load \Locales\Locales.xml and then load the main *LibStatLogic.lua` code file:

    • `<Include file="Locales\\Locales.xml"/>
    • <Script file="LibStatLogic-1.2.lua"/>

    And Locales.xml instructs WoW to load enUS.lua localization file (and then all the other locale files):

    • <Script file="enUS.lua"/>
    • <Script file="deDE.lua"/>
    • <Script file="enGB.lua"/>
    • <Script file="esES.lua"/>
    • <Script file="esMX.lua"/>
    • <Script file="frFR.lua"/>
    • <Script file="koKR.lua"/>
    • <Script file="ruRU.lua"/>
    • <Script file="zhCN.lua"/>
    • <Script file="zhTW.lua"/>

    So the file load order should be:

    • lib.xml
    • Locales.xml
    • enUS.lua
    • LibStatLogic-1.2.lua

    And LibStatLogic-1.2.lua depends on two variables that are in enUS.lua:

    PatternLocale = {};
    DisplayLocale = {};
    

    Are you including LSL as a TOC?


    so doing a ton of learning how the LUA stuff works.

    Hey, you and me both. Lua, and WoW's frame API, makes me want to gouge out my eyeballs with a keyboard.

    Last edited Aug 31, 2012 by JackTripper
  • Avatar of LarryGatlin LarryGatlin Aug 31, 2012 at 17:16 UTC - 0 likes

    enUS, and now the error is 1x libs\LibStatLogic-1.2\LibStatLogic-1.2-107.lua:270: attempt to index global "PatternLocale" (a nil value) libs\LibStatLogic-1.2\LibStatLogic-1.2-107.lua:270: in main chunk

    Locals:

    I am trying to get Ratingbuster working, my programming expertise is In Visual Basic.net, so doing a ton of learning how the LUA stuff works.

  • Avatar of JackTripper JackTripper Aug 31, 2012 at 16:47 UTC - 0 likes

    What locale are you running? e.g.:

    /dump GetLocale()
    

    might return

    enUS


    And just for the hell of it, try again with the current version of LibStatLogic:

    LibStatLogic-1.2-102

    There's been 5 updates since then; but i still think you're in a Locale that i've never heard of.

    Last edited Aug 31, 2012 by JackTripper
  • 5 comments

Facts

Last updated
Sep 09, 2012
Reported
Aug 31, 2012
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees