A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Where to learn Lua?

895 views · started by 323 ·
#1
Where to learn Lua?
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.
#2
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.


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.
#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. :P
#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.)