Thread Tools Display Modes
05/18/14, 07:56 AM   #1
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 626
Attempt to index a nil value

Warning: Spoiler

Nevermind I'm an idiot. I have to put the files in this order.
Lua Code:
  1. ## Title: Cosechador
  2. ## Author: Sharlikran
  3. ## Version: 0.1.0
  4. ## APIVersion: 100003
  5. ## SavedVariables: Cosechador_SavedVariables
  6.  
  7. Libs/LibAddonMenu-1.0/LibStub/LibStub.lua
  8. Libs/LibAddonMenu-1.0/LibAddonMenu-1.0/LibAddonMenu-1.0.lua
  9.  
  10. Cosechador.lua
  11.  
  12. Localization/CosechadorLoc.lua
  13. Localization/CosechadorNodesLoc.lua
  14. Localization/CosechadorMapNames.lua
  15. Localization/CosechadorData-de.lua
  16. Localization/CosechadorData-en.lua
  17. Localization/CosechadorData-fr.lua
  18.  
  19. CosechadorConstants.lua
  20. Cosechador.xml

Last edited by Sharlikran : 05/18/14 at 08:42 AM.
  Reply With Quote
05/18/14, 08:21 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sharlikran
Main File is Cosechador.lua and in it I have a COS = {}.
If I understand correctly, you create global table COS in "Localization/CosechadorLoc.lua" (first file in manifest) and then you overwrite it in "Cosechador.lua". I think that is the reason why COS.allLocalizations does not exist.
Just remove COS = {} from the "Cosechador.lua" and it should work.

Last edited by Garkin : 05/18/14 at 08:24 AM.
  Reply With Quote
05/18/14, 08:43 AM   #3
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 626
Originally Posted by Garkin View Post
If I understand correctly, you create global table COS in "Localization/CosechadorLoc.lua" (first file in manifest) and then you overwrite it in "Cosechador.lua". I think that is the reason why COS.allLocalizations does not exist.
Just remove COS = {} from the "Cosechador.lua" and it should work.
I changed my post. It was the order in which I had the files listed in the Manefest file. I was wondering what the txt file was called. A Manefest file, got it.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Attempt to 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