Quantcast Cant find source of "index a nil value" - ESOUI
Thread Tools Display Modes
Prev Previous Post   Next Post Next
06/01/18, 11:41 AM   #1
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 9
Cant find source of "index a nil value"

I'm trying to fix an addon that broke with Summerset with "index a nil value" errors. The problem I have is I cant figure out where the actual error is in the code.

I get two of them, one is reported on line 221 of GamePadBuddy.lua in function "Main Chunk" and the other is on line 4 of AddonMenu.lua in function " Main Chunk".

In the GamePadBuddy file line 221 has a } bracket which is at the end of a table.

GamePadBuddy.defaultAcctSettings = {
	accountWideSetting = true,
	invtooltip = true,
	traitmarkers = true,
	ornateintricate = true,
	hideresearchables = true,
	fastteleport = true,
	qhtcc = true,
	mm = true,
	ttc = true,
  att = true,
	setinfo = true,
	recipes = true, 
In AddonMenu.lua the error points to this line:

GamePadBuddy.AddonMenu = {}
The problem is, its not telling me which function is 'indexing a nil value'. Any ideas how I can figure out what is going wrong? I'm guessing it thinks "GamePadBuddy" is nil or something. Not really sure.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Cant find source of "index a nil value"

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