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, 06:45 PM   #6
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, 04:23 PM   #7
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

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