View Single Post
01-11-10, 02:45 PM   #45
dragonflyy
An Aku'mai Servant
 
dragonflyy's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 32
Also to help a new programmer out, if you want to test while you are programming, alt-tab to your code ... make a change, save the change then go back into WoW and type /console reloadui (or make a macro to do it for you.) Make sure you have the LUA Errors turned on in the interface options so you can see if any of your code has mistakes. Doing the reloadui command forces wow to re-initialize the interface. It helps for testing.

One more thing, if you think of a function as a small program running inside a larger program it sometimes helps in identifying where variables, calls, and other stuff might belong. Also as a final note, make sure you are saving these files with the extension .lua but as a text file and UTF-8 format, otherwise WoW might not interpret them properly.
  Reply With Quote