Thread Tools Display Modes
03-08-07, 04:14 PM   #1
Qtusks
A Defias Bandit
Join Date: Feb 2007
Posts: 2
First addOn, not including .lua.

I'm trying to make a simple mod with the "WoW UI Designer" program that was posted on a post I read. I did everything the little tutorial, within the app, said but it still isnt working.

I get an error that says the following:
Code:
[string: "TutorialForm:OnEvent"]:1:
attemp to call global 'Tutorial_OnEvent' (a nil value)
It seems to me like my Tutorial.lua is not getting loaded because I put that fonction in there, as well as my slash command which isnt working.

So my question is whats the relation between the .lua and the mod? Where does it says that this .lua is loaded with which addon? At first I thought it was just loading the .lua with the same name but all my files have the same name except for the extention. I've searched a bit but I cant seeem to find any info on how to relate .lua to the mod...

Thanks for the help i'm kinda stuck...

Q.
  Reply With Quote
03-08-07, 07:18 PM   #2
Riraito
An Aku'mai Servant
 
Riraito's Avatar
Join Date: Dec 2006
Posts: 32
you must either put it the file name on the bottom line of the .toc file,
Code:
## Interface: 20000
## Title: MyMod
## SavedVariables: 
MyMod.xml
MyMod.lua
or you can put it in the the xml file
Code:
<Ui...>
  <Script file="MyMod.lua"/>
</Ui>
I find the second one usually works better
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » First addOn, not including .lua.


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