WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Lunar Sphere (https://www.wowinterface.com/forums/showthread.php?t=50114)

Schaufel 10-16-14 11:07 AM

Lunar Sphere
 
I know Lunar Sphere was abandoned several years ago, but it still works just fine. I have no idea how to read the addon code language, so I was wondering if someone could tell me exactly what to edit in the LUA with the live patch in order to make this error message go away. Again, the functions of Lunar Sphere still work just fine; this error popping up upon login is just annoying.

Thanks!

Message: Interface\AddOns\LunarSphere\lib\moduleItems.lua:637: bad argument #1 to 'len' (string expected, got nil)
Time: 10/16/14 11:39:28
Count: 1
Stack: [C]: in function `len'
Interface\AddOns\LunarSphere\lib\moduleItems.lua:637: in function `GetItemSpell'
Interface\AddOns\LunarSphere\lib\moduleItems.lua:558: in function `BuildLookupStrings'
Interface\AddOns\LunarSphere\lib\moduleItems.lua:348: in function `OnUpdate'
Interface\AddOns\LunarSphere\lib\moduleItems.lua:258: in function <Interface\AddOns\LunarSphere\lib\moduleItems.lua:258>

Locals: (*temporary) = nil
(*temporary) = "string expected, got nil"

Phanx 10-16-14 09:15 PM

Most likely it's trying to do something with a spell that no longer exists. Can you post the file where that error is occuring? It should be an easy "band aid" fix. Based on the error message, you probably just need to find a list of spells, which is probably at/near the top of the file, and remove the ones that were removed from the game.

Schaufel 10-16-14 09:34 PM

1 Attachment(s)
Attached the file listed in the error message - thank you for helping me figure this out!

Phanx 10-16-14 10:39 PM

Try adding the line marked in green:

Code:

function Lunar.Items:GetItemSpell(itemCatagory)
        if not itemSpellID[itemCatagory] then return end
        local index, itemSpell;


Schaufel 10-16-14 11:01 PM

That worked perfectly - no error message! Thank you so much!


All times are GMT -6. The time now is 12:31 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI