.:`=-~rANdOm~`-=:. Game Servers

Support (Read Only) => Help => Topic started by: Cariad† on August 16, 2012, 08:42:50 PM

Title: Where can I learn LUA for starts?
Post by: Cariad† on August 16, 2012, 08:42:50 PM
Ok I know this is probably a stupid question but I just started learning about LUA. I know how to make a basic SWEP but I want to learn how to make more advanced things(NPC to Functions to Gamemodes).
I know that making a Gamemode would require a lot of learning. I am taking it slow until I figure remember how to make scripts of my own easily(Without going to the WIKI every line).

I know the WIKI is a good place to learn but I was wandering if there was any other ways of learning it? Yes I am patient I am not trying to rush it I was just wandering if there
was a specific site, book, or something that is ALL about learning it. Yes I am having trouble explaining what I am trying to say.

What I am basically trying to say is: Where is the best place on this internet to study it?



Title: Re: Where can I learn LUA for starts?
Post by: coolzeldad on August 17, 2012, 11:49:45 AM
Depends how you learn I guess, whether by example, book, experimenting, etc.

To be clear, LUA is a scripting language that Garry adopted for Garry's Mod.

Garry's Mod is a horrible resource to learn proper coding methods in my opinion as most of the code is not properly documented and it doesn't always perform as expected... Garry's Mod is unreliable and frustrating to debug sometimes. Also, Garry implemented C-style syntax that appear in some of the documentation that is not compatible with official lua.

However, it does have an advantage being that you have interest in manipulating the game play and that it might propel you to learn.

I would suggest checking this out ( http://lua-users.org/wiki/LearningLua (http://lua-users.org/wiki/LearningLua) ), building a foundation, and then going back to Garry's Mod.

Spoiler (click to show/hide)

I think this will give you a better understanding on how to approach the code.

Personally I think that understanding the syntax or structure is most important because you can take it and apply to other languages in the future noting the commonalities... I think it becomes much easier with more experience.
Title: Re: Where can I learn LUA for starts?
Post by: Cariad† on August 17, 2012, 01:22:51 PM
never have I gotten such an awnser... Thank you so much.