Alright, So I've seen basic Tutorials, done all the boring crap about learning all of the basics for gmod lua.
But now what!!!
I know basics, thats it! I dont really know how to edit code of some modes (other than darkrp which is noob friendly). Any of you supercoder b0ssmen, tell me, What should I do now to get better/master Lua? I dont mind going to watch more TuTs but I want to be able to do something with them rather than have useless info.
So far, I've gone through:
most of [URL]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7a06.html[/URL]
and some of [URL]https://www.youtube.com/playlist?list=PLoc3UuPmH6DknS66yYDcGh5S09IAEyLtx[/URL]
But anyone, who is good at lua, just give me an idea of what to do. I currently am running a few servers, 1 DarkRP, 1 Attack On Titan, and a unused/testing server. It's just I cant really develop upon anything I have because I dont know exactly how to do it.
Thanks for any advice/help!
Note: Im not a horrible noob at coding in general, I know HTML pretty damn well, and I've been attempting C++ for years.
The same as you get good at any other language/skill.
Dive into the language and pick it apart.
Make plenty of mistakes and learn from them.
Try creating things you've never made before.
Learning using just tutorials won't get you anywhere.
[URL="http://facepunch.com/showthread.php?t=1337945"]This could help some.[/URL]
Try some easy CoderHire jobs? Update addons or try to re-create addons?
Thanks, will look into some of these. And I kinda feel like I cant dive into this as easily, idk why. Just with html, you just make basic ass forums and stuff, and with c++ you can make shitty android apps other things. Ill just keep making random scripts I suppose.
When reading the tutorial, ask yourself whether you understand what you are reading. If you're not sure at any point, track down what that thing means or try it out on the Lua command line.
Once you think you have a good idea of how Lua is used, study the source code of a gamemode and try to reason about how it works using the knowledge of Lua that you have gained.
Start by making changes to the code and seeing what happens, but don't be random - try to confirm to youself if the thing you changed had the effect that you wanted.
Once you've changed a few things and studied the code (do not skim read!) then you will feel more confident at scripting in general. Be sure to have wiki.garrysmod.com open for reference, and when that lacks info, google the function because the older wiki probably has more details.
Main thing is, have a goal for what you want to achieve and keep drilling down into more detail and searching in existing open source code for ideas in figuring out how to get the same effect.
Never copy and paste code assuming it does X because it probably does X + Y and Y will come back to haunt you later.
Sorry, you need to Log In to post a reply to this thread.