Search code examples
luagarrys-mod

How do I start programming for GMOD (A sandbox game that uses Lua scripting)


I'm very new to the site and I understand that this is a really stupid question. I want to be as nice as possible and everything, but, how do I, someone who never coded in my life start making mods? How do I approach scripting in lua when there aren't that many sources for learning, and looking at already made code just makes my head blow up. How do I approach things, how do I learn them, just in general, how to anything related to programming. I'm very sorry if this is very newbie-like and basic and has been seen thousands of times. I really have a passion to get into modding, to get into animating,modelling, all that game design stuff. I have nearly all the tools I need, I just need to get into it. My hope is to make many mods and get people to enjoy games a little diffrently, I get that this will be a long trip, but I'm fully commiting into it.


Solution

  • Welcome! Glad to hear you've decided to learn coding! Generally speaking things can get very complicated very quickly. I would start by looking at some very basic programming tutorials on youtube. Your first goal should be to show the text "Hello World" in your language of choice This is the documentation on getting started with Lua scripting, including a small tutorial about "Hello world". https://www.lua.org/pil/1.html

    Lua might not be the best language to start with, I would recommend picking up an easier language just to learn the basics of programming like python. It will definitely help with your head hurting from looking at code!

    Coding in general is a huge and complex subject with tons of information. Never be afraid to google search for something you don't know the answer to.

    Best of luck! I would recommend codewars.com as a good beginner place to learn basic coding syntax. Don't be afraid to google the answers, everyone has to start somewhere.