• Nubby Addon by Nub Himself: waut3r.control.panel.
    49 replies, posted
[B]NOTE: THE PICTURES/WRITE-UPS THAT ARE IN THIS POST ARE FROM 12:46 AM, AUGUST 11, 2011. THINGS MAY HAVE CHANGED SO LOOK AT THE LATER POSTS FOR UPDATES ON THE NEWER VERSIONS.[/B] Hey, I'm very new to Lua, and I completed my first addon that aids me in all the stuff I do on Garry's Mod. It started out as a simple panel to turn down screaming kids on Garry's Mod Racer and turned into what it is now, which is basically a quick access to things I constantly enable, disable, and generally fool around with. [img]http://www.wauterboi.com/img/171.gif?1313040323[/img] [quote](great, the damn .gif broke. just click here for a version that doesn't suck and I'll update the images later: [url]http://www.wauterboi.com/img/171.gif?1313040323[/url] ) If you just want a feature list, please scroll down to the "tl;dr!" Here's the update you've all been waiting for. One whole week, eh? Here's the thread for future reference: [url]http://www.facepunch.com/threads/1114193-Nubby-Addon-by-Nub-Himself-waut3r.control.panel[/url] Anyway, what's new in this? For one, you can do partial name matches. (Well, kind of.) With the Partial Match slider, you can auto-respond to players with a custom AFK message much like in the last one except it only requires the first or last amount of letters from your name. People call me wauter a lot, so I'd throw that slider up to 5. What if people commonly call me boi? I slide it down to 3. All in all, if you want it to work only when your entire name is called, use the slider to represent the amount of letters in your name. Another feature is the quick menu for copying SteamID's to your keyboard. Click on someone's name, click the "Copy to Keyboard" option in the menu, and call it a day. Lastly, using the command 'wcpscheme' (or it might be "wcp_scheme" should bring up a derma that allows you to pick the color of your scheme and stick with it. Other than that, here's the list of features. (tl;dr) - Automatically respond based on partial name matches. (Works in servers that don't use custom chats a.k.a. not PERP.) - Quickly set developer, net_graph, voice_loopback, and volumes. (both total and voice-chat volume) - Quickly grab SteamID's by clicking a couple times. - View admins and friends currently on the server pretty quickly. - Stop all sounds. (no more 'stopsounds' in the console.) - It now supports schemes. You can choose from the schemes I already made and is recommended with the command 'wpscheme' (which again might be 'wp_scheme', can't remember. - IF YOU REALLY WANT TO, try doing 'wp_colorpreset <color>' [/quote] [url=http://www.garrysmod.org/downloads/?a=view&id=124223][img]http://www.garrysmod.org/img/?t=dll&id=124223[/img][/url] The older ones: [url=http://www.garrysmod.org/downloads/?a=view&id=124012][img]http://www.garrysmod.org/img/?t=dll&id=124012[/img][/url]
Hehe, I helped with this slightly Nice to see you released it, it looks great! :)
Does it fetch partial names as well?
wauter, you didn't post a download link lol
[QUOTE=Banana Lord.;31553689]wauter, you didn't post a download link lol[/QUOTE] ...I knew that. [quote]Does it fetch partial names as well?[/quote] Nah. I should look into how to do that and implement it though, because there are a good amount of people that say, "wauter," or a bit of mispellings and other random stuff that don't cause a reaction from me when I'm out of game. I'm also thinking about making it work more like a few IRC programs where you can include more terms that cause a response/the sound to play. Also, is it better to constantly rebuild the derma when the key is pressed for optimization reasons or is it better to just build it once and hide it? I'm doing the latter at the moment.
I usually do the latter, I don't know which is better. And catching spelling errors is harder, I was thinking more like if no one else in the server has boi in their name, it gets referred to you.
Yeah, I know, that's what I meant. :P I'll look into it later on when I've got a bit of free time.
Instead of putting a textbox under the list of names/steamids make a rightclick function on the items in the list and have Copy Name, Copy SteamID as options. I reckon it's easier.
Right now I'm looking into partial name matches, and I'm having a bit of trouble. If I get it working it will be up on here for download again.
[img]http://gyazo.com/be3dc7de9111aa105bc70c7406aeb338.png[/img] :D I wanna add something that lets you use different color schemes before I release a new version. However, I'm not gonna be here until next Wednesday. Anyway, partial match works from the front and end of the name. Minimum is three characters. :)
copy to keyboard
[QUOTE=Banana Lord.;31578449]copy to keyboard[/QUOTE] Oh man, that was a fiasco: [img]http://cache.gyazo.com/bff7a9062f64888d9363a2f6f1f75a1c.png[/img]
[QUOTE=wauterboi;31578462]Oh man, that was a fiasco: [img]http://cache.gyazo.com/bff7a9062f64888d9363a2f6f1f75a1c.png[/img][/QUOTE] Or just Copy. That works fine too.
Yeah, but if you go to click on the bottom sometimes you'll ended up adding what ever key you bound "+cp" to to the text and etc. With this, you hold whatever key it's bound to long enough to click on a SteamID, and then it leaves "Copy to the Clipboard" up even without the derma, so you can Copy+Pasta. [b]EDIT:[/b] [img]http://gyazo.com/25d675589a298cb3b276b8ac2b08646a.png[/img] [img]http://gyazo.com/09f1c2b04162e9a286ac84ba308b8de6.png[/img] [img]http://gyazo.com/cf54d14fb853d8a9c9f03ded91b9d00a.png[/img] [img]http://gyazo.com/20197b652e4179d10bfc3009021da8f7.png[/img] I will make more variations when I get back from my three days away from the computer. [img]http://gyazo.com/bc54f269e5006fcc5f3ba9dcce0d2f49.png[/img] If you enter a scheme name that is non-existent it just goes blue atm.
For a first release this is pretty damn nice.
Very well done
:D Thank you guys so much! I'm trying to make it so you can do color schemes yourself with ConVars but it seems like it might not be as easy as I thought... I'll look into it when I get back on Wednesday. I'm also going to make the status list much more useful in that you'd be able to see Steam Friends and admins all with lovely icons. If Banana Lord allows me to use the idea he implemented in his really awesome chatbot, I'll make it so you can blacklist people from abusing your auto-response.
Try making a panel full of colours that are clickable, which will set the derma's colour.
[QUOTE=wauterboi;31594239]If Banana Lord allows me to use the idea he implemented in his really awesome chatbot, I'll make it so you can blacklist people from abusing your auto-response.[/QUOTE] good luck understanding it, I wrote it at 3 AM and I don't even understand half of it
[QUOTE=Quark:;31635407]Try making a panel full of colours that are clickable, which will set the derma's colour.[/QUOTE] The thing is that it's currently clustercuss (and yes I did just reference Fantastic Mr. Fox), so if I were to do your idea, you'd just make it pop up with a console command, click a color, and call it a day. Or maybe I could have a context menu that pops up when you right click somewhere and allows you to set some options. I dunno. [QUOTE=Banana Lord.;31635685]good luck understanding it, I wrote it at 3 AM and I don't even understand half of it[/QUOTE] I would figure that I would just make a table and if those people you dislike are in that table it doesn't allow the auto-response to be said. However, I would then have the problem of figuring out how the hell I'd make it save.
[QUOTE=wauterboi;31636078]Or maybe I could have a context menu that pops up when you right click somewhere and allows you to set some options. I dunno. [/QUOTE] I was thinking that. You could have a button with a colour icon on it that, when clicked, brings up a panel of coloured boxes. Clicking one sets the derma's skin colour.
[QUOTE=wauterboi;31636078]However, I would then have the problem of figuring out how the hell I'd make it save.[/QUOTE] Could turn the tables into keys using [b][url=http://wiki.garrysmod.com/?title=Util.TableToKeyValues]Util.TableToKeyValues [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b], save it to a file, then load it and use [b][url=http://wiki.garrysmod.com/?title=Util.KeyValuesToTable]Util.KeyValuesToTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] to convert it back. Just an idea, though. There's probably better ways of doing this, for example using GLON.
[QUOTE=Knallex;31643882]Could turn the tables into keys using [b][url=http://wiki.garrysmod.com/?title=Util.TableToKeyValues]Util.TableToKeyValues [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b], save it to a file, then load it and use [b][url=http://wiki.garrysmod.com/?title=Util.KeyValuesToTable]Util.KeyValuesToTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] to convert it back. Just an idea, though. There's probably better ways of doing this, for example using GLON.[/QUOTE] Yeah, use glon.encode( file.Write( "wauterboi_data.txt", somettable ) ) and glon.decode( file.Read( "wauterboi_data.txt" ) )
Progress get! [img]http://www.wauterboi.com/img/171.gif?1313040323[/img] Also, notice the Steam Friends and Admins in the list. :P
[url]http://www.garrysmod.org/downloads/?a=view&id=124223[/url] [quote](great, the damn .gif broke. just click here for a version that doesn't suck and I'll update the images later: [url]http://www.wauterboi.com/img/171.gif?1313040323[/url] ) If you just want a feature list, please scroll down to the "tl;dr!" Here's the update you've all been waiting for. One whole week, eh? Here's the thread for future reference: [url]http://www.facepunch.com/threads/1114193-Nubby-Addon-by-Nub-Himself-waut3r.control.panel[/url] Anyway, what's new in this? For one, you can do partial name matches. (Well, kind of.) With the Partial Match slider, you can auto-respond to players with a custom AFK message much like in the last one except it only requires the first or last amount of letters from your name. People call me wauter a lot, so I'd throw that slider up to 5. What if people commonly call me boi? I slide it down to 3. All in all, if you want it to work only when your entire name is called, use the slider to represent the amount of letters in your name. Another feature is the quick menu for copying SteamID's to your keyboard. Click on someone's name, click the "Copy to Keyboard" option in the menu, and call it a day. Lastly, using the command 'wcpscheme' (or it might be "wcp_scheme" should bring up a derma that allows you to pick the color of your scheme and stick with it. Other than that, here's the list of features. (tl;dr) - Automatically respond based on partial name matches. (Works in servers that don't use custom chats a.k.a. not PERP.) - Quickly set developer, net_graph, voice_loopback, and volumes. (both total and voice-chat volume) - Quickly grab SteamID's by clicking a couple times. - View admins and friends currently on the server pretty quickly. - Stop all sounds. (no more 'stopsounds' in the console.) - It now supports schemes. You can choose from the schemes I already made and is recommended with the command 'wpscheme' (which again might be 'wp_scheme', can't remember. - IF YOU REALLY WANT TO, try doing 'wp_colorpreset <color>' [/quote]
Good work, especially for a first release( and even the first time I have personally seen you post anything here in the Lua Section )
Thank you sir. :P I'm thinking that I should do a HUD/Chat next. I'm not entirely sure. I've always thought it'd be cool if someone could mix in some IRC style commands into the chatbox... *shrugs* On topic though, I'm not sure what else to add other than the blacklisting thing, which isn't really necessary unless you are removing the anti-spam timer. I'm thinking that now's the time to move onto another project. :P
You should make another tab and make it work with Winamp or Itunes, theres modules available for this, also you can use your code in menu mode so it somewhat bypasses script enforcer and you can have it in your game.
[QUOTE=Gfoose;31685509]You should make another tab and make it work with Winamp or Itunes, theres modules available for this, also you can use your code in menu mode so it somewhat bypasses script enforcer and you can have it in your game.[/QUOTE] I don't think people would feel safe installing a random module with a random addon
[QUOTE=Banana Lord.;31689391]I don't think people would feel safe installing a random module with a random addon[/QUOTE] Itunes/Winamp interface isn't really "random" much.
Sorry, you need to Log In to post a reply to this thread.