Thread Tools Display Modes
08-23-14, 10:18 AM   #1
morpheusxeno
A Flamescale Wyrmkin
 
morpheusxeno's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 126
Best place to learn lua?

There is no cut and dry method, no good books , all the websites I have been to expect some sort of knowledge of programming already. I have tried the books from :

http://wowprogramming.com/
Beginning Lua World Warcraft Add-ons from Amazon
Lua for beginners
http://www.lua.org/

Does anyone have any other suggestions. I about to try the lua for dummies books but I am not finding enough examples.

Nothing that breaks the code down to itty bitty steps. I understand what the code does by looking at it , but I dont understand how to make my own code. Kindal like learning spanish I guess. I know what the word means when I hear it, but I dont know how to construct my own thoughts
__________________
My mother-in-law fell down a wishing well. I was amazed; I never knew they worked...
  Reply With Quote
08-23-14, 11:37 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
I'd suggest WoWPedia: Getting started with writing addons and other pages in WoWPedia: Interface Customization Portal.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-23-14, 11:47 AM   #3
morpheusxeno
A Flamescale Wyrmkin
 
morpheusxeno's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 126
Ill check that website tonight, I have to get another keyboard, I was unlucky with this last throw, the keyboard landed on concrete instead of the grass.

Keyboard certainly did not take the 35 G impact like the name indicates. Damn you Logitech
__________________
My mother-in-law fell down a wishing well. I was amazed; I never knew they worked...

Last edited by morpheusxeno : 08-23-14 at 11:53 AM.
  Reply With Quote
08-23-14, 01:56 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by morpheusxeno View Post
I have to get another keyboard, I was unlucky with this last throw, the keyboard landed on concrete instead of the grass.
Reminds me of the time in middle school when my mom threw my Sega Genesis out the back door. It landed on the grass though.

Anyway, you'll probably find that many "how to write addons" resources for beginners talk about XML -- the only thing you will ever need to use XML for is to create inheritable templates for user with secure headers, which is a very advanced topic that has very little application in addons, so you'll almost certainly never need to worry about it. I'd suggest skipping over any XML tutorials, as it's simpler to just create your frames in Lua.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
08-23-14, 02:12 PM   #5
Lag123
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 4
Good Lua book ( for Lua version 5.1 )
"Programming in Lua" from "Roberto Ierusalimschy"

Online sources ( Lua )
http://www.lua.org/manual/5.1/
http://lua.gts-stolberg.de/en
https://www.google.com

Online sources ( WoW )
http://wowpedia.org/
http://wowprogramming.com/
http://forums.wowace.com/index.php

Existing Add Ons to learn from the code ( be careful with this because there are enough AddOns out there that use bad code :P )
http://www.wowinterface.com/
http://www.curse.com/addons/wow

Other things
Start with a small testproject and play with things.
Dont throw keyboards they are Hardware no Throwware.
  Reply With Quote
08-23-14, 04:23 PM   #6
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Originally Posted by Phanx View Post
Anyway, you'll probably find that many "how to write addons" resources for beginners talk about XML -- the only thing you will ever need to use XML for is to create inheritable templates for user with secure headers, which is a very advanced topic that has very little application in addons, so you'll almost certainly never need to worry about it. I'd suggest skipping over any XML tutorials, as it's simpler to just create your frames in Lua.
Ya, XML used to be a thing back in the day before they had CreateFrame() and made Lua files loadable in the TOC. Back then, UI elements had to be defined in XML and Lua files had to be loaded using the <Script> tag.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-23-14, 06:45 PM   #7
morpheusxeno
A Flamescale Wyrmkin
 
morpheusxeno's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 126
Originally Posted by Lag123 View Post
Good Lua book ( for Lua version 5.1 )
"Programming in Lua" from "Roberto Ierusalimschy"

Online sources ( Lua )
http://www.lua.org/manual/5.1/
http://lua.gts-stolberg.de/en
https://www.google.com

Online sources ( WoW )
http://wowpedia.org/
http://wowprogramming.com/
http://forums.wowace.com/index.php

Existing Add Ons to learn from the code ( be careful with this because there are enough AddOns out there that use bad code :P )
http://www.wowinterface.com/
http://www.curse.com/addons/wow

Other things
Start with a small testproject and play with things.
Dont throw keyboards they are Hardware no Throwware.
I cant take what you say seriously, You listed Google as a source. ... Almost like a jack ass.
__________________
My mother-in-law fell down a wishing well. I was amazed; I never knew they worked...
  Reply With Quote
08-23-14, 07:14 PM   #8
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
Google is a very good place to find information though. There are countless StackOverflow questions/answers for example, which can often help when you are experiencing problems, and the best way to find those SO posts is through Google...
  Reply With Quote
08-23-14, 08:33 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I Google questions I have or problems/tricky spots I run into.
__________________
"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

  Reply With Quote
08-24-14, 01:52 AM   #10
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by morpheusxeno View Post
I cant take what you say seriously, You listed Google as a source. ... Almost like a jack ass.
Google probably tops WoWProgramming for me when looking for assistance on coding.

I started off just modifying other people's codes until I felt I was ready to make an oUF layout... it went okay.

#wowuidev on IRC is good too, this community is really friendly in general.
__________________
All I see is strobe lights blinding me in my hindsight.
  Reply With Quote
08-24-14, 07:03 AM   #11
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by morpheusxeno View Post
I cant take what you say seriously, You listed Google as a source. ... Almost like a jack ass.
http://bit.ly/1t45fz4

Google is a very good place to find information though. There are countless StackOverflow questions/answers for example, which can often help when you are experiencing problems, and the best way to find those SO posts is through Google...
This!
  Reply With Quote
08-24-14, 09:27 AM   #12
morpheusxeno
A Flamescale Wyrmkin
 
morpheusxeno's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 126
No shit... Who doesnt use google for answers to their questions now?

Originally Posted by ravagernl View Post
Hilarious!

I know I can use google to find the answers. I am looking for personal options on best sources. And some sources I have seen linked I havent used yet so I will give them a try.
__________________
My mother-in-law fell down a wishing well. I was amazed; I never knew they worked...

Last edited by morpheusxeno : 08-24-14 at 09:33 AM.
  Reply With Quote
08-24-14, 09:37 AM   #13
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Originally Posted by ravagernl View Post
ROFL!.....
  Reply With Quote
08-24-14, 11:40 AM   #14
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by morpheusxeno View Post
No shit... Who doesnt use google for answers to their questions now?
You'd be surprised, which is likely why it was listed - as an actual helpful statement, not as a jackass methodology. I've seen plenty of people who know better simply not use Google when trying to figure something out.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
08-24-14, 04:14 PM   #15
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
If he wanted to be a jackass, you would have gotten this:
http://lmgtfy.com/?q=lua+wow+tutorials
__________________
"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

  Reply With Quote
08-26-14, 09:55 PM   #16
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Originally Posted by Seerah View Post
If he wanted to be a jackass, you would have gotten this:
http://lmgtfy.com/?q=lua+wow+tutorials
He did by someone else.
Originally Posted by ravagernl View Post
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-27-14, 07:18 PM   #17
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I guess I forgot to click that one!
__________________
"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

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Best place to learn lua?

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