Reply
Thread Tools Display Modes
Unread 01-23-14, 08:42 PM   #1
Mirrikh
A Theradrim Guardian
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations
Join Date: Sep 2011
Posts: 62
Addons for dummies

This was probably asked many times before, and i most likely know the answer, but would anyone have kind of newbie guide to lua/addon creating. I know theres sites on learning lua and creating addons, but i feel its easier to learn it from someone firsthand instead of a "textbook" per-say. I guess for starters, i would focus on learning to create unitframes. Any and all advise/knowledge is welcomed.
Mirrikh is offline   Reply With Quote
Unread 01-23-14, 08:49 PM   #2
Kkthnx
A Flamescale Wyrmkin
 
Kkthnx's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2011
Posts: 149
Originally Posted by Mirrikh View Post
This was probably asked many times before, and i most likely know the answer, but would anyone have kind of newbie guide to lua/addon creating. I know theres sites on learning lua and creating addons, but i feel its easier to learn it from someone firsthand instead of a "textbook" per-say. I guess for starters, i would focus on learning to create unitframes. Any and all advise/knowledge is welcomed.
I know you do not want a (Textbook) and so on. But a good place to start would to learn from a site / book in my honest thought. You can also look at other peoples code and learn a lot from them and write it your own way. Run with it and make into whatever you really want. Im sure Phanx will comment on this too. But I will leave this here too for you just to see as it might help. if you are unsure of things just post your code and get some advice about how to approach it. (Nothing is impossible) Also there is nothing wrong with asking questions.

http://www.friendlydruid.com/2014/01...roduction.html
__________________
The further you get into technology, the further you go into gaming. That's the general rule.

Last edited by Kkthnx : 01-23-14 at 08:55 PM.
Kkthnx is offline   Reply With Quote
Unread 01-23-14, 09:07 PM   #3
Mirrikh
A Theradrim Guardian
 
Mirrikh's Avatar
AddOn Compiler - Click to view compilations
Join Date: Sep 2011
Posts: 62
thnx, hopefully i get a hang of it
Mirrikh is offline   Reply With Quote
Unread 01-23-14, 09:29 PM   #4
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,409
Originally Posted by Kkthnx View Post
But a good place to start would to learn from a site / book in my honest thought. You can also look at other peoples code and learn a lot from them and write it your own way.
Personally, I've never found books or specific tutorials useful for learning a programming language. The tutorials are always completely pointless and mind-numbingly boring, and it's a huge turn-off. I'd much rather just take someone else's existing code that does something similar to what I want to do, learn the basics from reading that, and then use the relevant API documentation to figure out how to do specific things. Other than my own code (obviously ) I would recommend looking at any of Tekkub's or Industrial's addons. While there are several other authors who spring to mind as having "nice" code, their addons are big and complex, so I can't really recommend them as examples for beginners.

If you're more of a book learner, though, or like working through tutorials, I know other people have found the World of Warcraft Programming book helpful.

Stay far, far away from the "examples" you will find on sites like ArenaJunkies. Most of the people who post code on those sites have absolutely no idea what they are doing, and write some of the worst code I have ever seen in any language. The examples on Wowpedia are not much better, but at least Wowpedia has accurate and useful API information.

You can find some more links to sites with API documentation etc here:
http://phanx.net/addons/resources
(Yes, I know there's a forum thread with the same links, but I don't know that URL offhand, and I don't have any advertising or other crap on my site, so I don't feel bad about linking to it. )
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addon Turn any code into an addon More addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please dont PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 01-23-14, 11:49 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,630
For learning Lua basics, I found the tutorials at http://lua-users.org/wiki/TutorialDirectory helpful.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is online now   Reply With Quote
Unread 01-24-14, 12:05 AM   #6
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 6,928
Also feel free to come hang out in the IRC channel as well if you wish.

IRC: irc://irc.freenode.net/WoWUIDev
Cairenn is online now   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » General Authoring Discussion » Addons for dummies

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