Welcome to the wonderful world of the** Entirely Generic Administration Derma!** (and because E is superfluous, it’s mostly just called the GAD)
Have you ever been using admin mods such as ULX or ASSMod and simply were not satisfied by the derma? Ever though there was more to life than an endless labyrinth of scrolldown menus or seas of buttons?
Well now there is! The GAD incorporates a familiar ULX-ish design with new innovations (sorry ASSMod, I hate your menu) to create the best administrating experience you could ask for, while allowing the old schoolers to keep with the times. ** The GAD isn’t a whole new admin mod, just a derma preferable to the existing administration menus.**
**** Compact design**: GAD is a relatively lightweight derma and takes up little space considering its content.
**** Customization:** The GAD is made to be easily customizable to even those who have hardly spared a glance for a LUA file before. Along with prebuilt customization for both ULX and ASSmod, it’s only a step away from configuration to any other mod you can think of.
**** Model Panel:** Sneakily hidden in the client panel, the GAD features an animated panel that allows you to view and set both the model and color of a player.
**** Map Viewing:** The GAD comes with not one, but two ways of changing your maps. Along with the traditional rows of buttons, the new “List View” menu uses advanced imaging technology to create a picture to go along with all of your maps (a.k.a. DImage + spawnicons). Both map menus now include an easy to use map timer.
**** Web Browsing:** Bring your internet into the internet! The GAD now allows for web browsing across the entire internet into places such as Google, Youtube, or even Facepunch. You can even bookmark your favorite sites for later.
**** File Browsing:** Utilize several different types of files, from mp3s to models to text files. All current supported files are: .mp3, .wav, .mdl, .vtf, and .txt.
**** Security:**In order to keep your server safe, the GAD smoothly supplements the existing admin mod without intruding upon the server core. All administration functions are safeguarded against non-admins, and convar access is limited to super admins.
Here’s some nice pictures to look at:
WHAT’S TO COME:
**** New looks:** I need to change the look of the client panel (too many buttons). Have any suggestions? Tell me please!
There you have it folks, the Entirely Generic Admin Derma. Download it here:
Or get it on the SVN: http://egad.googlecode.com/svn/trunk/ egad
HOW TO CUSTOMIZE THE GAD:
In the /lua/autorun of the .zip, there’s a file called “gadcfg.lua”. This is for all of the configuration used for the GAD.
DO NOT EDIT THE “gadmenu.lua” FILE UNLESS YOU KNOW WHAT YOU’RE DOING!
Once you’re in the cfg file, it’s pretty self explanatory. Refer to the Table of Contents as to the location of things. As explained in the first few lines, there are already prewritten configurations for both ASSMod and ULX. To activate these configurations, you change the variable at the very top called “mod.Name” to equal “ULX” or “ASSmod”.
If you want to use another admin mod (NewAdmin [which I’ll make a config for eventually], Moocow, or even your own custom mod), follow the steps outlined in the explanations above each table.
SOME LAST THOUGHTS:
**** The Admin Menu vars:** One thing I noticed upon programming this is that by default, a good bit of the sbox_maxwhatevers were “” usually. (i.e. sbox_maxballoons, sbox_maxbuttons, etc.)
So to fix this, I gave each variable a default value to set upon opening the menu if there were no default values. However, you can turn this off if you don’t want limits by setting the mod.AutoLimitConVars to zero.
**** The Web Menu:** The address bar is made to work so you shouldn’t have to input the “http://” along with your address code, but you might want to do it if you needs to use a https connection. Also, I don’t think a “Back” or “Forward” button is feasible considering there’s no way to store the URL upon changing it by clicking a button in the page.
**** The Title:** It says “ASSMod Main Menu” because it takes on the title of whatever is the name of the admin mod you’re harnessing.
**** Where it’s supposed to be:** Most of the clientside functions and the map function work from the client, but ALL ADMIN FUNCTIONS + MODEL PANEL FUNCTIONS REQUIRE THIS TO BE ON A SERVER, NOT A CLIENT!
*************** HOW TO USE **************** Copypaste everything in the download into your garrysmod directory! Type “gadmenu” in console!
1. When I type “gadmenu” in console it isn’t working?
- Are you sure you’re typing exactly “gadmenu” in console?
- Are you sure that the gadmenu.lua and the gadcfg.lua are in your or the server’s /lua/autorun/client directories?
2. Some of the buttons don’t work! (“Unknown console command: gad_rcon”)
- This is because your GAD is not functioning off of a server! The only way to set convars is via the game console, and I didn’t want to have to use regular rcon and get everyone banned from the servers.
3. I changed the mod name, but it’s still showing/doing the same thing!
- The script doesn’t automatically update itself, so you have to either restart your Garry’s Mod or type this in console:
“lua_openscript_cl autorun/client/gadmenu.lua” if you’re running it off your client
“rcon lua_openscript autorun/client/gadmenu.lua” if you’re running it off the server
**4. Some of the icons won’t show up! **
- This is because you either didn’t put the custom GAD icons in the /material/gui directory, or you’re missing the default silkicons.