Where did you learn Lua? I'm trying to learn it for Garrys Mod, and can't seem to find a good up-to-date guide.
Results 1 to 5 of 5
Thread: Where to learn Lua?
- 26 Jul. 2013 12:16am #1
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 1.31
Where to learn Lua?
- 26 Jul. 2013 12:30am #2
I actually kind of forget. I don't know the entirety of the language though, but I know beyond the basics of it. While in the process of trying to master it (because there isn't a whole lot to the language once you understand the nuts & bolts of everything) my laptop died along with the resources I was using to better understand Lua.
To learn it though is mostly just coding. Just getting your hands dirty with it, using it in general. Application is the best way to learn almost anything. I believe I read a couple books on it. One of which was the PiL book. A good general reference though is the help file that comes with Lua and the wiki which is a hub of pretty much all Lua stuff.
lua-users wiki: Home Page
Aside from being (sort of) an eccentric language, Lua is pretty easy to get the hang of once you delve into it.
I also read this book on Lua because it's short and comprehensive. It taught me a lot about interpreted/scripting languages in general.
Game Programming with Python, Lua, and Ruby (Game Development): Tom Gutschmidt: 9781592000777: Amazon.com: Books
If you need anything else just ask. Good luck.Last edited by The Unintelligible; 26 Jul. 2013 at 05:02am.
I'm lightning on my feet
- 26 Jul. 2013 02:07pm #3
I've found at least the basics / slightly after the basics of lua to be extremely easy to learn.
So you should have any problems with it.
I'm surprised to see lua being used in something else other than Computer Craft for Minecraft, which Is where I first saw it.
Good luck on learning it. I can't really give you any resources that are decent that Unintelligible hasn't already given you.
- 26 Jul. 2013 07:10pm #4
Yeah, there are probably only a few legitimately difficult Lua concepts.
The only real things you could have issues with is the C API, coroutines, the functional programming aspects of the language, and maybe completely grasping the concept of tables. (Actually, those things I stated are already pretty much half the entire language. Lua isn't a huge language, but because of the things I mentioned it makes it extremely powerful and capable.)I'm lightning on my feet
- 28 Jul. 2013 02:47am #5
Almost forgot. Here's the Lua for Windows package if you don't want to install it from scratch and aren't on Linux or another OS.
luaforwindows - Installation of Lua for the Windows operating systems including many lua libraries. - Google Project Hosting
Batteries included. Which means it's bundled with a lot of useful Lua libraries/utilities. Saves you a lot of time.I'm lightning on my feet