• Where can i learn lua?
    24 replies, posted
I have been watching video's on youtube and other beginner video's/tutorials. I am looking to make a very tweaked gamemode that would require a lot of lua, such as a xp bar and NPC. Where should i learn lua efficiently and how to really have it stick. Any tutorials or videos that you guys have buried up or even good books would be a tremendous help. Thank you! I am hoping this is in the correct spot because it say's help and discussion on development for gmod.
Make smaller stuff first, you learn the functions as you use them more and more. I also advise checking the wiki as there is a wide number of tutorials you should also follow there. Modifying DarkRP is easy and gives you a sense of Lua's syntax. Good luck
I started to look at gamemodes and then copy and paste bits according to what I though they did. Also asking how to fix or do something with LUA on this section of the forums is also what I did and still do. As I do this I learn more code and I can start to sample it in different ways. I'm still not that good at LUA but I can now code basics. I'm now moving on to converting gamemodes and following the "Why your scripts are broken" guide!
Here's a video I made that goes over L.U.A. in much detail: [url]https://www.youtube.com/watch?v=ZpDcir0TOco[/url] Hope this helps!
[QUOTE=GustavJens;41166279]Here's a video I made that goes over L.U.A. in much detail: mnxmzxnz Hope this helps![/QUOTE] I'm not trying to offend you, but there are so many things wrong with that video. I do not recommend watching it. [editline]24th June 2013[/editline] I only watched 51 seconds and I picked up on 5 mistakes. [editline]24th June 2013[/editline] ughh, at 1m 20s you say about the pronunciation of Lua... you got that completely wrong. [editline]24th June 2013[/editline] This has to be a troll video.
[QUOTE=MakeR;41166359]I'm not trying to offend you, but there are so many things wrong with that video. I do not recommend watching it. [editline]24th June 2013[/editline] I only watched 51 seconds and I picked up on 5 mistakes. [editline]24th June 2013[/editline] ughh, at 1m 20s you say about the pronunciation of Lua... you got that completely wrong. [editline]24th June 2013[/editline] This has to be a troll video.[/QUOTE] Is not troll. I worked as custodian at microsoft for 16 years and picked a lot of stuff up. You should watch my other videos, they are also very good. I have a friend in Brussels that said the video was great. [highlight](User was permabanned for this post ("gimmick" - postal))[/highlight]
[QUOTE=GustavJens;41166441]I worked as custodian at microsoft[/QUOTE] Sorry to say this but you're hardly Will Hunting.
[QUOTE=Falcqn;41166456]Sorry to say this but you're hardly Will Hunting.[/QUOTE] I took an IQ test I have a 98. Same number as my Windows version so I'd say it's pretty lucky!
[QUOTE=GustavJens;41166675]I took an IQ test I have a 98. Same number as my Windows version so I'd say it's pretty lucky![/QUOTE] I recommend you fast to change your version... Also, it's not said "L.U.A" but "Loo-Ah".
He is trolling or he is just that dumb either way. Back on topic. I recommend you check the wiki, youtube and use other peoples codes to look over how to do things.
Ummm, GustavJens? You do know Microsoft came out with a couple new versions of Windows right?
[QUOTE=infinitynull;41167792]Ummm, GustavJens? You do know Microsoft came out with a couple new versions of Windows right?[/QUOTE] Yes, I know. But if you watch the first video in my series (Basics), you'll see that I talk about why I use Windows 98 over the others. It is best version as it is older and more mature, also it is quite inexpensive to purchase.
LOL... I don't know if that was intended
[QUOTE=GustavJens;41170347]Yes, I know. But if you watch the first video in my series (Basics), you'll see that I talk about why I use Windows 98 over the others. It is best version as it is older and more mature, also it is quite inexpensive to purchase.[/QUOTE] So, when did you make the move to Linux? :v:
[QUOTE=Bo98;41171306]So, when did you make the move to Linux? :v:[/QUOTE] Actually, I didn't. I am using IE UserAgent Masker v3.42. It disguises my identity to ward off hackers.
[QUOTE=GustavJens;41166279]Here's a video I made that goes over L.U.A. in much detail: asgasahd Hope this helps![/QUOTE] Who the fuck is using NOTEPAD and also get a fucking new Microphone.
Thank you for the on task answers. If anyone has any help related to this thread please keeping posting it.
[QUOTE=BoowmanTech;41172006]Who the fuck is using NOTEPAD and also get a fucking new Microphone.[/QUOTE] Notepad is still used among a lot of coders. Some people just prefer to stick to the way they learned. I used notepad from time to time when developing website, though I've found myself using notepad++ more often. Back on topic... I've been learning lua slowly by studying other peoples code and learning off of that. The same concept applies to web development. Eventually you'll come to understand how the language functions and come up with your own unique style of coding.
Rip apart other people's code. Read it like you would a book. Look up functions you dont understand on the wiki. That's how i learned.
[QUOTE=Mikeman9825;41165630]I am looking to make a very tweaked gamemode that would require a lot of lua, such as a xp bar and NPC. Where should i learn lua efficiently and how to really have it stick.[/QUOTE] Take a gamemode that isn't darkrp, ttt or anything else horribly written. Edit it. Learn from experience, not books or tutorials. If you have no programming experience at all then you might be in the dark for a while but just keep at it.
I find the best way to learn a new programming language is to first read the book. [url]http://underpop.free.fr/l/lua/docs/programming-in-lua-first-edition.pdf[/url] I suggest you take your time while reading this and maybe even re-read it before going onto actual gmod programming. Many of the techniques can be hard to get to grips with especially if you're completely new to programming but Lua can be very different in some ways to other programming languages so still take time to understand the content fully even if you have a decent programming understanding. After you've made a good amount of notes and feel you are comfortable with the basic Lua language you can move on to gmod coding. There are various articles already available to give you a starting tutorial into gmod programming. Swep creation: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8e50.html[/url] Gamemode creation: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index6201.html[/url] When you begin programming for the first time it's a good idea to get a text editor with syntax highlighting and a linter (syntax error highlighting). Notepad ++ is free and comes with both however i use sublime text 2 (which costs) as a matter of ease and style. As a final note, if your not much of a book person or you like to learn on the job it's best to try something that you've never done before, or at least something difficult. Stepping out of your comfort zone will give you a lot more experience than dealing with the same old code your use to. But most importantly you will feel a lot of motivation when you actually find that you got something very complicated to work :). Hope that helps, skillz
What I do, (and I'm still a learning developer) is go on: [url]http://wiki.garrysmod.com/page/Main_Page[/url] (New Wiki) or [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/url] (Old Wiki) and browse different things that are expressed in Garrysmod and try to make something that is devoted to that. The most simplest example is a weapon. I try to search different function and things I can do with weapons so I am perfected in that. Although, word of advice. Do not expect Garrysmod Lua to be the same as normal Lua. The essence is the same, but different things are added and expressed.
[QUOTE=GustavJens;41166675]I took an IQ test I have a 98. Same number as my Windows version so I'd say it's pretty lucky![/QUOTE] >Is using Linux. Anyway, The best way to have anything stick is to do it for yourself. Apply what you learn hands-on and as a rule when I am trying to learn a new concept I NEVER copy and paste. I take time to type out each letter so I don't forget what I did or how I did it. That's how I learned my first code.
Thank you guys for the help! If anyone has any other things to help please post more, but the stuff i read so far is great. Thanks again!
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index4875.html[/url] I Good GMod wiki.( Searching is working )
Sorry, you need to Log In to post a reply to this thread.