Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [b]Backstory:[/b]
- [i]You might not care, and if you don't, skip to the next step ("List of features").[/i]
- Back in October 2013 (7 months ago at the time of writing this) I was pretty much new to Lua. Lua was my first programming language [i]ever[/i] (except for minor PHP and some JS, but that's pretty much it). I wanted to create a "simplified version" of this addon, but I just kept scratching my head because I didn't know how to. I [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg32613.html#msg32613]requested help on the forums[/url] asking if someone could guide me. Luckily, [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg32617.html#msg32617]MrPresident was so nice to provide a fully fuctional code[/url]. I later managed to improve that code myself to become more useful, with a tip from [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg32626.html#msg32626]Megiddo about ULib's "NameChanged" hook[/url].
- It worked perfectly.
- More people requested to use it, and then suddenly [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg32655.html#msg32655]Storm suggested to create this into an "official addon"[/url]. It was a great idea, and I wanted to make it happen, but I will still too much of a noob to actually manage to do it. I tried, but failed, and eventually just moved the project folder deep into one of my backup harddrives.
- [i]Fast forward to May 1st 2014.[/i]
- I had a day off because of public holiday here in Norway and decided to dig around in my old files. I'm one of those people that keep a backup of pretty much [u]everything[/u]. And that's when I found the project files. I took a peek at the code, and all I could think was "this is just a giant pile of [url=https://en.wikipedia.org/wiki/Spaghetti_code]spaghetti[/url]". The code was awful, and didn't even work (unless you count errors as "working"). I had completely forgotten about this, but since I had a whole weekend in my disposal, I decided to give it a try again.
- I had learned a lot more when it comes to programming (not just Lua, but the general aspect of it), but I hadn't properly done any Lua in a while so I was a bit rusty. I went back to the [url=http://forums.ulyssesmod.net/index.php/topic,6700.15.html]old thread[/url] to get a kickstart.
- After a few days of scratching my head again, browsing the Garry's Mod developer wiki and a lot of sugar intake I managed to put together a piece of code that works. I even implemented a feature that [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg33467.html#msg33467]Storm had an issue with[/url], but [url=http://forums.ulyssesmod.net/index.php/topic,6700.msg33474.html#msg33474]Megiddo had the solution for[/url].
- And here we are, a few days later with an easier-to-use version of the "[url=http://forums.ulyssesmod.net/index.php/topic,6700.0.html]Name Checker/Kick[/url]".
- Sorry for the wall of text, but I had to get that off my heart.
- Let's move on, shall we?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement