• Share your First Few Projects for Lua?
    6 replies, posted
Finished reading/watching Lua guides, so the next step would be making some increasingly advanced scripts. I've made a basic hud, but what kind of things should I do next, and work towards? What did you start by making? Thanks! Edit: Thanks for the brilliant ideas everyone! I'll definitely start trying to code some of them today ;D. For anyone looking for themselves too, I also found this: [url]https://facepunch.com/showthread.php?t=1487912[/url] for some extra projects.
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=172254388[/url] That's the first real project I worked on. I had a friend help me with a few things since I was still learning, but it was just a random idea I had to make the game a [i]tiny[/i] bit RGB based.
[url]https://www.youtube.com/watch?v=2WpJGrjeoFk[/url] Basic entity overlay that gave you info what you should do with the entity after you hovered over it, very basic. [url]https://www.youtube.com/watch?v=mWba9n4dabw[/url] Medkit system - People having blood, bleeding after being shot, using bandages, and medkits on them with custom blurred derma menu - Roleplay option of "examining" the patient - above their heads it would say "He looks healthy" or "Injured" or "Close to death" After that I made "HungerMod v2" which included some lerping and stuff, very stressing stuff - I was trying to rocket through the coding - I thought to myself "how well and how much can I have get everything done in 12h" - Stress-coding - Gave myself like 12h or 8h I don't remembre (whole night anyways) to code it, I finished it, but it ended up having loads of bugs. All of the above, I done just for the lulz, didn't look seriously into making anything really, it was more of "eh I wonder if I can do it". I took then few months break from touching Lua or gmod altogether Then, rewatched all tutorials, scavenged code, learned to avoid some bad practices some people pointed out and did something serious. Then I took a lesson on making entities, particles, timers in think hook, networking and shit like that, which enabled me to do my first bigger project - meth cooking addon... Had loads of fun coding it, loads of stress waiting it to be accepted to SF. But eventually it did. So happy that people that are much more advanced than me, thought my script was good enough to be presented to ScriptFodder community. [url]https://scriptfodder.com/scripts/view/3466[/url] After I did some jobs, very simple, helped small community server with their custom content, they were happy I think, I even landed up on a "thank you" page. Flattering. Currently I am coding a smuggle-in system, where train drives through the map and there are shipments of stuff on it, people can hop on and get their shipments off it, unpack it and all. I have seen some people wanting it, as this has been on some old custom server that wasn't available anywhere, thought of releasing it somewhere public and free. I am nowhere experienced or veteran of scripting for Garry's Mod, but I like to think that I have much more to discover and have fun learning it, so I just keep having different ideas and researching about them :)
Learn the net library, there is a very comprehensive and understandable turorial on the wiki. It's very useful and essential for more advanced glua projects. I am currently working a cp test project, basically a test for users to take before they can have access to cp jobs. It's a pretty good learning experience, there is networking, file reading and writing, I'm gonna be saving passed steamids to a SQLite database so I'll get some practice with databasing. This is going to be my 2nd glua project, I took a break for awhile while i was in a python programming class and this project is a good refresher to get me back into glua.
Depends how you would define a project. I changed the fire rate of the TTT M16, so you could say that's the first thing I did :v: I also made some ulx commands, and a basic chat command. I think the first [I]real[/I] project I made (which is also the only one I ever made) is [URL="https://scriptfodder.com/scripts/view/3064"]Special rounds for TTT[/URL] (Plugs allowed?)
The first thing I ever released was my [URL="https://facepunch.com/showthread.php?t=1268936"]fractions module[/URL]. Pretty sure 0 people used it. The first REAL thing I released was [URL="https://facepunch.com/showthread.php?t=1278719"]The Gray Box[/URL], which was a gamemode base. Pretty sure 0 people used it. The first player project I released was [URL="https://facepunch.com/showthread.php?t=1362673"]Luabee[/URL]. Pretty sure 50 people played with it and 0 people actually used it for anything. From there I finally started making some quality things. I actually resent you for making me search my post history. I posted some pretty [U]CRINGY[/U] stuff in the past. VGUI and HUD projects can be pretty good starting places. They require some critical thinking but 2D math is a lot simpler than 3D worldspace math. Lots of scripts are based mostly in VGUI menus. Learning to design them effectively and beautifully is a really useful skill. I recommend reading [URL="https://facepunch.com/showthread.php?t=1450530"]this tutorial[/URL] to learn a thing or two about Trigonometry and its uses too.
[media]http://www.youtube.com/watch?v=A5xQ1f96bwQ[/media] This video is more fun than the video of the [url=https://youtu.be/lQcYrTOLPDc]actual addon[/url].
Sorry, you need to Log In to post a reply to this thread.