• Were to learn lua?
    10 replies, posted
I'm am new to lua and i wanted to know good places to learn lua if it by books/online tut whatever it is can you plz link me because i want to know if it is just reading other people codes and editing them then link me some good one to start with plz and thank you.
[url]http://lmgtfy.com/?q=Where+to+learn+lua[/url]
The best place to start learning on your own is reading this forum, and modifying TerrorTown which all copies of Garry's Mod ships with. Check your Garrysmod/gamemodes/terrortown directory. Edit sweps to start out with, terrortown/entities/weapons/... Modify little things here and there, then move on to bigger and better things. Alternatively there are people who teach, I'm one of them. I used to have a class down here in SC where I taught Google Classes ( such as Android coding, and more ), and I do offer GLua tutoring. The Google classes used to run $300 / hour, I usually charge $60 / hour for developing new work with basic usage rights. As for tutoring one on one, or one on many, we can come up with an affordable rate, add me on steam. I'm busy until about the 6th.
I strongly recommend going over the [url=http://www.lua.org/pil/contents.html]PIL[/url].
I do answer questions from time to time for free; but if you want to sit down for a lecture, that's when we need to come up with a base rate.
Look at the pil site that was linked, although I personally never did which I somewhat regret but managed to pick things up eventually. What you should do is download very simply scripts or look inside what you already have, such as terrortown/TTT files. For example, you could open up weapon_ttt_m16 which is inside gamemodes/terrortown/entities/weapons. It's the M16 in TTT and from there, you could make small chances. So, like, can you edit the damage or make it a traitor weapon? Doing so may also help you understand how gamemodes are set up. Check out the Gmod wiki for some tutorials, too. Last bit of advice, don't give up because you don't master stuff right away or get stuck. Learning Lua takes some time. Not sure if there are any good books though. Most seem to be generic copy-pasted online manuals with a 30 something price tag.
[URL="http://wiki.garrysmod.com"]Garry's Mod Wiki[/URL]
Your first step in learning to program by yourself is learning to google. Seriously, the above dude's joke wasn't entirely useless. If you don't learn to search for answers to your problems, you are going to get nowhere.
Here is a list of sites I use. [URL="http://luatut.com/crash_course.html"]Crash Course Lua[/URL] [URL="http://learnxinyminutes.com/docs/lua/"]Learn Lua in 15 Minutes[/URL] [URL="http://nova-fusion.com/2012/08/27/lua-for-programmers-part-1/"]Lua for Programmers[/URL] [URL="http://www.lua.org/pil/"]Programming in Lua[/URL] [URL="http://lua-users.org/wiki/TutorialDirectory"]Lua-Users[/URL] [URL="http://www.reddit.com/r/lua/"]/r/lua[/URL] GLua Specific: [URL="http://wiki.garrysmod.com/?title=Main_Page"]GMod Wiki[/URL] [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html"]GMod Wiki (old)[/URL] [URL="http://luasearch.netau.net/?list=&search=1"]GLua Search[/URL]
I heard about a new program call Luabee that is going to give people a head start on coding.
In addition, I am going to be releasing a skeleton game-mode soon, hopefully within a week or so after the 6th ( done with transcription by then ) which will include a lot of functions, additions to code, etc etc. A lot of useful things to get started. I will need to go through and comment the heck out of all the code I already did but yeah. It'll come ready with autorefresh compatibility and more.
Sorry, you need to Log In to post a reply to this thread.