Thread Tools Display Modes
10-16-14, 11:07 AM   #1
Schaufel
A Murloc Raider
Join Date: Feb 2006
Posts: 8
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"
  Reply With Quote
10-16-14, 09:15 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-16-14, 09:34 PM   #3
Schaufel
A Murloc Raider
Join Date: Feb 2006
Posts: 8
Attached the file listed in the error message - thank you for helping me figure this out!
Attached Files
File Type: lua moduleItems.lua (74.1 KB, 116 views)
  Reply With Quote
10-16-14, 10:39 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Try adding the line marked in green:

Code:
function Lunar.Items:GetItemSpell(itemCatagory)
	if not itemSpellID[itemCatagory] then return end
	local index, itemSpell;
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-16-14, 11:01 PM   #5
Schaufel
A Murloc Raider
Join Date: Feb 2006
Posts: 8
That worked perfectly - no error message! Thank you so much!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Lunar Sphere

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