Subscribe
 Post #1
 3rd September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
ASSmod 2.20
A Simple Server modification.

This is basically a server admin modification for Garry's Mod. It has a fairly nice GUI and makes administrating a bit easier then some of the other admin mods available.

Download
Extra Plugins
Installation
Just extract the zip file to the Garry's Mod addon folder:
Example:
Code:
C:\Games\Steam\steamapps\STEAM USERNAME\garrysmod\garrysmod\addons
Screenshots




Access Levels
(in order of priority)
1. Owner
2. Super Admin
3. Admin
4. Temp Admin
5. Respected
6. Guest
7. Banned

Usage
Simple bind a key to "+ASS_Menu". I generally use X since it's easy access and isn't really used for anything else.

Example:
Code:
bind "x" "+ASS_Menu"
Console Commands
The only time you should ever need to use an ASSmod console command is to assign ownership of the server to a player (or players) - This is only really needed on a dedicated server, or a server where more then one 'owner' is necessary. This command is ASS_GiveOwnership <userid>.

Example:
Code:
] status
hostname:  The Hole
version : 1.0.0.0/7 3203 secure 
udp/ip  :  192.168.1.6:27015
map     :  gm_construct at: 882 x, -49 y, -79 z
players :  1 (8 max)

# userid name uniqueid connected ping loss state adr
#  9 "AndyVincent" STEAM_0:1:5014589 06:51 91 0 active 127.0.0.1:27005
] ASS_GiveOwnership 9
Ownership Given!
The <userid> option is taken from the first column of the status report.

Data Files
ASSmod keeps 3 files of data, and a few that are used for logging. The log files are kept at around 20k so they shouldn't grow too big. The 3 data files are kept in:
Code:
garrysmod\data\ass_rankings.txt
garrysmod\data\ass_config_client.txt
garrysmod\data\ass_config_server.txt
The log files are all kept in:
Code:
garrysmod\data\asslog\ass_acl_ban_kick.txt
garrysmod\data\asslog\ass_acl_god.txt
garrysmod\data\asslog\ass_acl_health.txt
garrysmod\data\asslog\ass_acl_join_quit.txt
garrysmod\data\asslog\ass_acl_kill.txt
garrysmod\data\asslog\ass_acl_map.txt
garrysmod\data\asslog\ass_acl_notice.txt
garrysmod\data\asslog\ass_acl_promote.txt
garrysmod\data\asslog\ass_acl_rcon.txt
garrysmod\data\asslog\ass_acl_slap.txt
garrysmod\data\asslog\ass_acl_speech.txt
garrysmod\data\asslog\ass_acl_team.txt
This is all assuming that you're using the "Default Writer" plugin (the chances are that you are, it's the default setup).

Plugins
It's possible to make plugins for this modifiation. Explore the "plugins" directory. If you don't know Lua the chances are you won't be able to make any. Contact me if you need any information that you can't workout.

Thanks
Thanks to:
  • Garry for Garry's Mod and Derma (without Derma this mod would've never been made)
  • Anmizu for the name
  • GiGabyte for helping test
  • Ortzinator for helping test
  • Mark James for the Silk icon set
  • Anyone who commented on the WIP thread
  • Anyone who joined my server and let me experiment on them ;)
  • Anyone who said "cool" when I showed them a screenshot
  • Thanks to Dark_Moo for helping to test the lag problems in 2.0-2.01
  • Admins & Users of The Hole for enduring my contant restarts when testing.

Changes
  • 2.20 - 28 Feb 2008
    • Fixed possible problems if a client has ASSmod but the server does not.
    • Added "admin_speak_prefix" config option
    • Guests are now not written to the ASS_Rankings file.
    • Spam protection only affects Guests.
    • Weapon plugin now checks if the user is allowed to spawn the weapon.
  • 2.11 - 8 Feb 2008
    • Fixed "attempt to call method 'Nick' (a nil value)" error when spawning a SWEP through the spawn menu (thanks LordPie).
  • 2.10 - 7 Feb 2008
    • No-clip privailages default settings customizable per-level
    • Swep/Sent restrictions (like the Tool restrictions)
    • Prop protection "Disallow admins mode"
    • Progress information when recieving lots of data
    • ASS_SetWriterPlugin command (to change the plugin used to write the ranking/log files)
  • 2.05 - 3 Feb 2008
    • Fixed "attempt to index global 'INFO' (a nil value)" error when promoting players.
  • 2.04 - 3 Feb 2008
    • Fixed potential bug "attempt to call method 'AddOption' (a nil value)" on some menus.
    • Added tool restrict plugin
    • Menus can now stay open after you click an item.
  • 2.03 - 31 Jan 2008
    • Removed SetOwner STOOL from minimal and compact distributions.
    • Very minor changes to prop protection
    • Fixed "Tried to use a NULL entity!" error when looking at some props
    • Removed sbox_allownpcs option (since it doesn't exist anymore).
    • Added anti-spam plugin (configurable delay between allowed item spawning)
    • Removing notices and bans doesn't close the dialog automatically.
    • Strip/Kill/Unfreeze/Freeze/Slap/Noclip/God/Team/Give/Strip items all have options to perform the action on all players, all non-admins, or all-admins.
    • Map favourites list (10 most recently selected maps)
  • 2.02 - 28 Jan 2008
    • Rewrote all plugins to use a slightly more efficient system.
    • Added in the bitmaps!
  • 2.01 - 28 Jan 2008
    • Hopefully hacked around the lag problem
  • 2.0 - 27 Jan 2008
    • Updated to use the new Derma menus
    • Now using standard Derma dialogs (and custom ones have the blurred background)
    • Removed the black and white background
    • All plugins will need to be re-written
    • Fixed a few bugs (1 day ban bug, kicking random players...)
    • Removed speed plugin
  • 1.52 - 17 Jan 2008
    • Removed: gmsv_asscmd.dll - It's causing crashes and is impossible to fix until VALVe release the ability to make mods based upon orangebox games. This means that commands such as sv_cheats WILL fail using ASSmod's RCON. You'll need to do this manually if you've already got assmod installed.
  • 1.51 - 14 Jan 2008
    • Bug fix: Fixed a bug causing the menus to break in the beta
    • Bug fix: "Unknown Player" result from using ASS_GiveOwnership
    • Bug fix: Minor change to the way noclip is handled
    • Issue: gmsv_asscmd.dll causes crashes when used with the beta and a dedicated server. Remove the DLL to fix the problem.
    • Issue: The menu looks REALLY shitty in the beta. Re-write will be needed to make it use the sexy Derma menus...
  • 1.5 - 8 Jan 2008
    • Change: Beta compatability
    • Change: Console commands can now accept UniqueID, UserID, Steam ID or player name
    • Bug fixes: Long rcon commands wouldn't work
    • Addition: Added Clear Decals plugin by "Camper"
    • Addition: Added Sandbox Cleanup plugin
    • Addition: "Super" on Slap plugin (fast but little damage)
    • Addition: "No Limits" mode for Sandbox (admin only)
    • Change: Prop protection "use" is only under Strict
    • Addition: Prop protection plugin draws the prop owners name in the bottom-right of the screen.
  • 1.4 - 22 Oct 2007
    • Bug fixes: Prop protection wouldn't work in some cases
    • Change: Non-admins can use the +ASS_Menu command and will get a different menu.
    • Change: Black and white post-processing when the menu is active (has an option to disable it).
    • Addition: Buddy list for prop protection
    • Addition: Added "Custom..." to the map change option.
    • Addition: Added a "Set Owner" STOOL for the prop protection.
    • Addition: Strip weapons / ammo (requested by foxdie)
    • Addition: Option to hide the actions of admins (requested by jobbe)
    • Addition: Spawn / Give Weapons & items
    • Addition: Sandbox options (PvP damage, etc)
  • 1.3 - 18 Sept 2007
    • Addition: Prop protection plugin now stops players from using your props/entities.
    • Addition: Notices can be removed easily.
    • Addition: Gamemodes can hide the notice bar (include GM.ASS_HideNoticeBar = true in your gamemode code).
    • Change: Moved notice stuff to a sub-menu.
    • Bug: Fixed a minor problem with custom gamemode icons (it'd always use the default icon instead of one specified by the gamemode). The icon can be overridden by including GM.ASS_MenuIcon in your gamemode code.
    • Bug: Empty tables not loaded correctly by util.KeyValuesToTable (or saved by util.TableToKeyValues).
  • 1.21 - 16 Sept 2007
    • Bug: Fixed a typo in the sandbox limit plugin, which would cause Lua errors.
  • 1.2 - 16 Sept 2007
    • Addition: Added a gamemode menu item (this menu items takes the gamemodes name). Plugins can add to this item by hooking the AddGamemodeMenu function. (see the sandbox plugins for examples). The icon can be overridden by including GM.ASS_MenuIcon in your gamemode code.
    • Addition: Menu items now can have icons (the AddOption function returns a MENUITEM on which you can call SetImage(filename)). Icons are 16x16 in size. Thanks to Mark James for the Silk iconset.
    • Addition: Sandbox plugins for changing limits, and prop protection.
    • Change: Split in to 3 seperate packages: Full (includes all plugins), Compact (includes a few plugins), and Minimal (contains no plugins).
  • 1.1 - 08 Sept 2007
    • Bug: Default config includes an escape character (which causes the string to be cut off - actually a bug in Gmod util.KeyValueToTable)
    • Bug: Map change to current doesn't work sometimes
    • Addition: Notice bar (top bar) is hideable using the console command "ASS_ToggleNoticeBar". Servers can do this by removing any notices from the config files.
    • Addition: Plugin callback "FormatText" this is used to plugins can add custom keys for notices (see plugins/ass_exformat.lua)
    • Addition: Debug module.
    • Documentation: Documented the Kill plugin (it's fairly simple to understand what's happening).
  • 1.0 - 03 Sept 2007
    • Initial Release
 Post #2
 3rd September 2007
Tensuni's Avatar
December 2006
1,295 Posts
I love the name ASSmod ;)
Good work mate, a definite download for me.
 Post #3
 3rd September 2007
Dennab
December 2006
1,591 Posts
Nice ;)
 Post #4
 3rd September 2007
Barri167's Avatar
August 2006
553 Posts
Finally, a great admin mod. Thank you andyvincent! :D
 Post #5
 3rd September 2007
Dennab
January 2006
2,919 Posts
Awesome. Good job.
 Post #6
 3rd September 2007
GMOD Moderator
UberMensch's Avatar
May 2006
4,749 Posts
Seems to be working fine! Very nice work :)
 Post #7
 3rd September 2007
BIGBITCH!'s Avatar
September 2006
1,042 Posts
Nice ASS

:D
 Post #8
 3rd September 2007
Raven-Rave's Avatar
November 2005
395 Posts
Woot! Its released, Thanks alot man!
 Post #9
 3rd September 2007
Gold Member
Catdaemon's Avatar
February 2005
11,542 Posts
This is by far the best admin mod released - I've been waiting for something like this for ages.
 Post #10
 3rd September 2007
1LtGallaher's Avatar
August 2007
262 Posts
Haha! Love the name and what it does... Now to convince my clan leader to get it.. heheh.
 Post #11
 3rd September 2007
Gold Member
LPine's Avatar
April 2007
2,469 Posts
Kick-ASS!
 Post #12
 3rd September 2007
Dennab
January 2006
2,919 Posts
Enough pun already!
 Post #13
 3rd September 2007
Gold Member
LPine's Avatar
April 2007
2,469 Posts
Houston posted:
Enough pun already!
Shut up or I'll kick YOUR ass. :P
 Post #14
 3rd September 2007
Dennab
September 2006
7,511 Posts
Ass

 Post #15
 3rd September 2007
Gold Member
bord2tears's Avatar
May 2005
2,747 Posts
This is fantasstic!

[spoiler]Sorry for my lack of a good ASS pun (I know it is spelled fantastic). Great work, and great name :D[/spoiler]
 Post #16
 3rd September 2007
Omnimmotus's Avatar
August 2006
1,985 Posts
Wow Andy! Thanks for offering us your ASS! I plan to use your ASS every day! I wish more people would release things as great as your ASS! Maybe everyone could release their own ASS for me to play with! Don't worry, I'll treat your ASS quite nicely.

Sorry, I had to do it. Still, nice!
 Post #17
 3rd September 2007
HTF's Avatar
January 2007
655 Posts
This is great! Nice work. Fast, stable, pretty and it does everything an admin mod should and no more. What else could you ask for?
 Post #18
 3rd September 2007
berryman13's Avatar
January 2007
1,165 Posts
I'm a NOOB, where do i put gmsv_asscmd.vdf? Sorry I'm a NOOB!
 Post #19
 3rd September 2007
Gold Member
Termy58's Avatar
September 2006
7,398 Posts
I got me some ass.

Edit:

berryman13 posted:
I'm a NOOB, where do i put gmsv_asscmd.vdf? Sorry I'm a NOOB!
Inside of garrysmod/garrysmod/addons/

Also should I rename my Pirate Ship Wars test server to "Ass Pirates Server [OFFICAL]"?
 Post #20
 3rd September 2007
Raven-Rave's Avatar
November 2005
395 Posts
I am kinda of a noob with LUA so I need some help why this isn't working
local PLUGIN = {}

PLUGIN.Name = "Invis"
PLUGIN.Author = "Mark Birge"
PLUGIN.Date = "02nd September 2007"
PLUGIN.Filename = PLUGIN_FILENAME
PLUGIN.ClientSide = true
PLUGIN.ServerSide = true
PLUGIN.Gamemodes = {}

if (SERVER) then

	ASS_NewLogLevel("ASS_ACL_INVIS")
	
	function PLUGIN.Invis( PLAYER, CMD, ARGS )
		if (PLAYER:IsTempAdmin()) then
		
			local TO_SETINVIS = ASS_FindPlayer(ARGS[1])
			local ENABLE = tonumber(ARGS[2]) > 0
			
			if (!TO_SETINVIS) then
			
				ASS_MessagePlayer(PLAYER, "Player not found!\n")
				return

			end
			
			if (PLAYER != TO_SETINVIS) then
				if (TO_SETINVIS:IsBetterOrSame(PLAYER) && !ENABLE) then

					// disallow!
					ASS_MessagePlayer(PLAYER, "Access denied! \"" .. TO_RECIEVE:Nick() .. "\" has same or better access then you.")
					return
	
				end
			end
			
			if (ASS_RunPluginFunction( "AllowPlayerInvis", true, PLAYER, TO_SETINVIS, ENABLE )) then
				
				if (ENABLE) then
					TO_SETINVIS:SetColor(255, 255, 255, 1)
					ASS_LogAction( PLAYER, ASS_ACL_INVIS, "enabled full invis mode for " .. ASS_FullNick(TO_RECIEVE) )
				else
					TO_SETINVIS:SetColor(255, 255, 255, 255)
					ASS_LogAction( PLAYER, ASS_ACL_INVIS, "disabled full invis mode for " .. ASS_FullNick(TO_RECIEVE) )
				end
			end
		end
	end
	concommand.Add("ASS_Invis", PLUGIN.Invis)
end

if (CLIENT) then

	function PLUGIN.Invis(MENUITEM, PLAYER, ALLOW)

		LocalPlayer():ConCommand("ASS_Invis " .. PLAYER:UniqueID() .. " " .. ALLOW .. "\n")

		return true

	end
	
	function PLUGIN.InvisEnableDisable(MENUITEM, PLAYER)

		local MENU = ExDermaMenu( MENUITEM:GetParent() )
		MENU:AddOption( "Enable",	PLUGIN.Invis, PLAYER,  1 )
		MENU:AddOption( "Disable",	PLUGIN.Invis, PLAYER,  0 )
		MENUITEM:OpenSubMenu(MENU)
		
		return false

	end

	function PLUGIN.AddMenu(DMENU)			
	
		DMENU:AddOption( "Invis >", ASS_PlayerMenu, {"HasSubMenu","IncludeLocalPlayer"}, PLUGIN.InvisEnableDisable  )

	end

end

ASS_RegisterPlugin(PLUGIN)

The set invis part does not work.
 Post #21
 3rd September 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
I couldn't sleep last night..This is what i've been waiting for in weeks,Thank you very much.
 Post #22
 3rd September 2007
Omnimmotus's Avatar
August 2006
1,985 Posts
MonkeyMan44 posted:
I couldn't sleep last night..This is what i've been waiting for in weeks,Thank you very much.
Man, this guy must really like ASS.
 Post #23
 3rd September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Raven-Rave posted:
I am kinda of a noob with LUA so I need some help why this isn't working
...
The set invis part does not work.
I think it could be the
TO_SETINVIS:SetColor(255, 255, 255, 1)
lines that aren't working. The rest of the code looks ok.
I'd recommend doing this
TO_SETINVIS:SetRenderMode(1)
before the SetColor line.
If that doesn't work, then add some debug (using Msg) to find out what's actually happening.

Edit:

everyone posted:
(kind words, jokes about ASS etc).
Thanks all!
 Post #24
 3rd September 2007
jaybuz's Avatar
May 2006
1,310 Posts
Looks pretty cool. Winner for you!
 Post #25
 3rd September 2007
Gold Member
Vampired's Avatar
February 2005
2,269 Posts
It's so simple. I like it!
 Post #26
 3rd September 2007
Gold Member
foszor's Avatar
April 2005
2,029 Posts
Brilliant!
 Post #27
 3rd September 2007
Dennab
February 2006
2,409 Posts
Mmmm, I can see myself making an extended death-punishment menu for this... you know, a variety of 'methods' that ultimately amount to the same ending.

But yeah, very nice: this is now the mod I'd use if I get a dedicated server - the ability to set temporary admins, combined with the fact this is simple enough to explain to any new user quickly, means it's optimum for situations where you trust a player to hold the fort for a few minutes, but don't want to dedicate to providing permanent power.

What rank do you need to be to set someone a Temp Admin (guessing Super Admin)? What's the situation on using admin powers on those of same or higher rank to you?
 Post #28
 3rd September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Admin above is needed to set Temp Admin, since the Temp Admin is time limited.

Super Admin or above can use Rcon.

Most commands that are bad (slap, kill etc) can only be used on someone who's below you in rank (ie an Admin can slap a Temp Admin, but not the other way round).

Temp Admins cannot perma-ban people (maximum ban time is specified in the server config file).
 Post #29
 3rd September 2007
GMOD Moderator
UberMensch's Avatar
May 2006
4,749 Posts
Where can the accesses and permissions be found? Or are they buried in a load of code?
 Post #30
 3rd September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Buried. If you want to change something, look for Is(Admin|TempAdmin|SuperAdmin) or HasLevel( ASS_ACL_* ).
 Post #31
 3rd September 2007
Gold Member
Pekey_1's Avatar
December 2005
4,980 Posts
I expected this mod to bring more attractive womanly asses to Garry's mod :(
 Post #32
 3rd September 2007
Gold Member
Termy58's Avatar
September 2006
7,398 Posts
Bug

Config -
Code:
"text"		"%assmod% - If you're an admin, bind a key to \"+ASS_Menu\""
What it says

If you're an admin, bind a key to \
 Post #33
 3rd September 2007
Dennab
January 2007
1,985 Posts
Hot ASS
 Post #34
 3rd September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Termy58 posted:
Bug

Config -
Code:
"text"		"%assmod% - If you're an admin, bind a key to \"+ASS_Menu\""
What it says
Yeah. I that actually seems to be a bug in Gmod's util.KeyValuesToTable(...)
 Post #35
 3rd September 2007
Morphology53's Avatar
December 2006
1,746 Posts
andyvincent posted:
Yeah. I that actually seems to be a bug in Gmod's util.KeyValuesToTable(...)
I have to agree, it looks like it can't handles escape sequences properly. I noticed this because the contents of Termy58's code tag doesn't match the quoted version in your post.
 Post #36
 4th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
There's something wrong with this - when I added this to my server nothing happened. I restarted it like 3 times but it's bullshit, nothing happens. The menu won't open, even though it's freaking clientside. And it seems this has some kind of weird way of admins instead of the default system - can I change that? I really don't want to have to fuck around with that.
 Post #37
 4th September 2007
DeltaOps101's Avatar
February 2006
1,165 Posts
I got my ASS slapped around quite a bit during testing. Literally.



Glad you finally released it!
 Post #38
 4th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
What the hell times two. The menu opens in single player, but not on my online server. Isn't it clientside...?
 Post #39
 4th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Elspin posted:
What the hell times two. The menu opens in single player, but not on my online server. Isn't it clientside...?
Of course it's clientside (the menu part anyway). It sounds like something wrong with your Garry's Mod installation. The admin stuff is done the normal way (overriding IsAdmin and IsSuperAdmin).

Is your Garry's Mod up-to-date (latest build is 32 I believe)?
Got any addons installed? If you do, list them.
Any custom Lua files that aren't part of the addon system?
Any console error messages? If so, list them.
How about a console dump as well to see if that turns up anything.
 Post #40
 4th September 2007
Teh-Jamesy's Avatar
May 2007
1,003 Posts
I love it, Someone on my server has already said it seems an effective and easy to use system, and it's the only thing that has worked on my dedicated server :D


Great work!
 Post #41
 4th September 2007
Gold Member
conman420's Avatar
January 2007
4,645 Posts
would be cool if you have some sort of mouse gestures module. So you could hold a button and you could look at a player and shake left and right would mean kick/ban or something like that.
 Post #42
 4th September 2007
HTF's Avatar
January 2007
655 Posts
conman420 posted:
would be cool if you have some sort of mouse gestures module. So you could hold a button and you could look at a player and shake left and right would mean kick/ban or something like that.
That is one of the best ideas I have heard in months.
 Post #43
 4th September 2007
J!NX's Avatar
February 2006
927 Posts
this my friend is one fine ASS... mod
 Post #44
 4th September 2007
Wii_Play's Avatar
December 2006
342 Posts
The Access Levels doesn't work, like when I click it doesn't show
1. Owner
2. Super Admin
3. Admin

or anything like that.
 Post #45
 4th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
andyvincent posted:
Of course it's clientside. It sounds like something wrong with your Garry's Mod installation. The admin stuff is done the normal way (overriding IsAdmin and IsSuperAdmin).

Is your Garry's Mod up-to-date (latest build is 32 I believe)?
Got any addons installed? If you do, list them.
Any custom Lua files that aren't part of the addon system?
Any console error messages? If so, list them.
How about a console dump as well to see if that turns up anything.
1:Yes
2:Just wiremod (but server has 0 addons)
3:No
4:Absolutely no errors in the entire console (I'm a scripter myself, I'd notice them)

Also, like I said, it opens in single player but not on the server... I have no clue how that's even possible.
 Post #46
 4th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Wii_Play posted:
The Access Levels doesn't work, like when I click it doesn't show
1. Owner
2. Super Admin
3. Admin

or anything like that.
When you click what?
What are you expecting to happen?
Any Console Errors?
Be more descriptive?

The Access Level menu is for promoting/demoting player to/from Admin.

Edit:

Elspin posted:
1:Yes
2:Just wiremod (but server has 0 addons)
3:No
4:Absolutely no errors in the entire console (I'm a scripter myself, I'd notice them)
The server has this addon I take it?
 Post #47
 4th September 2007
spbogie's Avatar
June 2006
186 Posts
andyvincent,
When he asked if it was clientside, I think he meant the entire addon, not just the menu part.

Elspin,
Yes, the menu is drawn clientside, but all the admin functionality is serverside. You need to install this on your server for it to work, otherwise there would have to be some major security problems.
 Post #48
 4th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
spbogie posted:
andyvincent,
When he asked if it was clientside, I think he meant the entire addon, not just the menu part.
If that's true, although I would've thought that's obvious from the name ASSmod 1.0 - A Simple Server modification
 Post #49
 5th September 2007 Last edited by Flynch; 2nd May 2009 at 06:44PM..
Flynch's Avatar
June 2007
174 Posts
HTF posted:
That is one of the best ideas I have heard in months.
This is badass.
 Post #50
 5th September 2007
Alex_grist's Avatar
January 2007
564 Posts
I'm glad I tested this, straight to my server it goes.
 Post #51
 5th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
spbogie posted:
andyvincent,
When he asked if it was clientside, I think he meant the entire addon, not just the menu part.

Elspin,
Yes, the menu is drawn clientside, but all the admin functionality is serverside. You need to install this on your server for it to work, otherwise there would have to be some major security problems.
No shit. Both me, and the server have the addon

Edit:

Wait, I just read the first sentence.

I'm a scripter here, you think I wouldn't know that? :loleyes:
 Post #52
 5th September 2007
spbogie's Avatar
June 2006
186 Posts
Hey, you're the one who claimed 0 addons on the server. :P

Anyways, you're a scripter, do some debuging on your own, and come back with the solution, or at least some more information to work off of.
 Post #53
 5th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
It has 0 addons now because I removed ASSmod after an hour of trying to debug it, and as for debugging it on my own: I just decided to make my own.

Edit:

andyvincent posted:
Yeah. I that actually seems to be a bug in Gmod's util.KeyValuesToTable(...)
Just do

"text"		'%assmod% - If you're an admin, bind a key to "+ASS_Menu"'

Because you defined it with ', you can use " freely in the sring. Website does not have formatting for this - but lua does. (Though I'm not sure if it's possible to load ' strings with KeyValuesToTable, or save with them for that matter)

EDIT: Don't even ask me why (I have no clue) but it started working for some reason.
 Post #54
 5th September 2007
OIFY_USER's Avatar
January 2007
192 Posts
Awesome. But can you take that silly bar off the top of the screen? Or at least show me how to do it? Because I hate mods that do that.

Other than that it looks like a simple and clean layout! I'll give it a shot
 Post #55
 5th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
I agree with the top bar thing - you can't even see your health/food in stranded and it ruins gameplay, people constantly die because they can't see it. Also, the bar cuts off at like 1/3 of the way through but it takes up the whole screen...
 Post #56
 5th September 2007
Gold Member
JetBoom's Avatar
February 2005
2,732 Posts
It's really not that simple is it. I'd probably strip some stuff off before using it on my servers. So basically everything is a plugin right?
 Post #57
 5th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
For me the emphasis on simple is supposed to be the interface :) but w/e.
Everything under the "Plugins" heading is a plugin.
The only plugin that's on the main-menu is the map change.

To remove the top-bar, remove any notices from the config file :)

Edit:

I'll try and add some config options for the positioning of the notice bar and timer list (timer list appears on the top-right). Maybe a handle so you can change the position of the menu if required.

Edit:

Flynch posted:
RAVE about this. It kicks ASS. I love this it's so simple yet so... amazing :D.

Anyway yeah bumping the idea about mouse gestures. If that could be included you would officially become my idle.

Edit: When I extract it. I get the ass folder. and a gmsv_asscmd.vdf which is also in my addons folder. So:

addons/ass
addons.gmsv_asscmd.vdf

The location inside the gmsv file points to a file with the same name. Is my current setup wrong or what?
I'm not too keen on the idea of mouse gestures, but will play around with something and see what happens ;)

When you extract, you should get this setup:
Code:
addons/assmod
addons/assmod/info.txt
addons/assmod/.... etc
addons/gmsv_asscmd.vdf
The VDF file is needed so that the rcon works properly, since Gmod blocks sv_cheats, exec, alias, etc being used through Lua. The DLL that's pointed to by the VDF adds a binding so that commands can be executed on the server without any problem.
If this is a security issue for you (the source code is included) you can remove the DLL and ASSmod will fall back to the default Gmod interface (meaning that you won't be able to use the rcon fully).

Edit:

Elspin posted:
Because you defined it with ', you can use " freely in the sring. Website does not have formatting for this - but lua does. (Though I'm not sure if it's possible to load ' strings with KeyValuesToTable, or save with them for that matter)

EDIT: Don't even ask me why (I have no clue) but it started working for some reason.
Unfortunatly, I don't think that KeyValuesToTable allows ' to start a string, only " or nothing (if nothing it assumes that spaces seperate the keys and values). I know it doesn't save them with '. Strange that it started working, oh well that's the mystery of Gmod
 Post #58
 5th September 2007
Morphology53's Avatar
December 2006
1,746 Posts
Elspin posted:
It has 0 addons now because I removed ASSmod after an hour of trying to debug it, and as for debugging it on my own: I just decided to make my own.

Edit:



Just do

"text"		'%assmod% - If you're an admin, bind a key to "+ASS_Menu"'

Because you defined it with ', you can use " freely in the sring. Website does not have formatting for this - but lua does. (Though I'm not sure if it's possible to load ' strings with KeyValuesToTable, or save with them for that matter)

EDIT: Don't even ask me why (I have no clue) but it started working for some reason.
Actually it makes perfect sense, because lua features a "Dual quoting style" in order to prevent a delimiter collision (I think, I could be wrong) Here is a page I had found while I was doing stuff with javascript:

http://en.wikipedia.org/wiki/String_...iter_collision
 Post #59
 5th September 2007
Wii_Play's Avatar
December 2006
342 Posts
[QUOTE=andyvincent]When you click what?
What are you expecting to happen?
Any Console Errors?
Be more descriptive?

The Access Level menu is for promoting/demoting player to/from Admin.



When I click set Access Levels or whatever you click is says (None)
and when I click Noclip under Plugins it also says (None)
 Post #60
 5th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Wii_Play posted:
When I click set Access Levels or whatever you click is says (None)
and when I click Noclip under Plugins it also says (None)
If there are player other then yourself in the server then they will be listed instead of (None).

You can't change your own access level (there's no point), and you don't generally want to be able to enable or disable noclip mode for yourself either.
 Post #61
 5th September 2007
Wii_Play's Avatar
December 2006
342 Posts
andyvincent posted:
If there are player other then yourself in the server then they will be listed instead of (None).

You can't change your own access level (there's no point), and you don't generally want to be able to enable or disable noclip mode for yourself either.
I want the plugin to turn on Noclip because sometimes its easier then using the console.
 Post #62
 5th September 2007
Morphology53's Avatar
December 2006
1,746 Posts
Wii_Play posted:
I want the plugin to turn on Noclip because sometimes its easier then using the console.
You could just bind it to a key, it is even easier.
 Post #63
 5th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Wii_Play posted:
I want the plugin to turn on Noclip because sometimes its easier then using the console.
It doesn't turn on noclip, it disables or enables it (so you can control noclip usage by players).
By default, Gmod comes has 'v' bound to noclip.
 Post #64
 6th September 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
Morphology53 posted:
Actually it makes perfect sense, because lua features a "Dual quoting style" in order to prevent a delimiter collision (I think, I could be wrong) Here is a page I had found while I was doing stuff with javascript:

http://en.wikipedia.org/wiki/String_...iter_collision
I know it makes perfect sense, that's why I suggested it. But then I read that he was using this from a util.KeyValuesToTable and found out he couldn't...

Edit:

For the love of god, can you please remove the top bar or tell me where the source code is to delete it? Nobody can see their health/food bars in stranded and everyone is really pissed
 Post #65
 6th September 2007
Gold Member
JetBoom's Avatar
February 2005
2,732 Posts
Making plugins for this is pretty easy.

I made ones for burn / ignite, zs redeem+humanize, teleport + bringtome.
 Post #66
 6th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Elspin posted:
I know it makes perfect sense, that's why I suggested it. But then I read that he was using this from a util.KeyValuesToTable and found out he couldn't...

Edit:

For the love of god, can you please remove the top bar or tell me where the source code is to delete it? Nobody can see their health/food bars in stranded and everyone is really pissed
As I said in my previous post, remove notices from the config file (if data/ass_config_server.txt doesn't exist, then remove them from the ass_default_config.lua file).
 Post #67
 6th September 2007
Dennab
May 2006
3,006 Posts
I will put it on my server, ass soon ass it comes online
 Post #68
 6th September 2007 Last edited by Flynch; 2nd May 2009 at 06:44PM..
Flynch's Avatar
June 2007
174 Posts
Nice.
 Post #69
 7th September 2007
MythBuster's Avatar
August 2007
309 Posts
JetBoom posted:
Making plugins for this is pretty easy.

I made ones for burn / ignite, zs redeem+humanize, teleport + bringtome.

Can you please release the plugins, it is the only thing this thing needs imo, i would use ulx but the svn has been giving me and my server bad lag spikes so i switched to this.

I noticed if you kick someone with the reason (none) the command pops up in chat but the person does not get kicked and when you change map to current it does not change and you have to go through the map list.
 Post #70
 7th September 2007
Gold Member
Megiddo's Avatar
January 2005
1,650 Posts
MythBuster posted:
Can you please release the plugins, it is the only thing this thing needs imo, i would use ulx but the svn has been giving me and my server bad lag spikes so i switched to this.
Did we not emphasize enough that you SHOULD NOT USE SVN unless you know what you're doing? We said it twice, in bold print.

Also, if you do choose to use SVN, usually it's assumed that if you find a problem, you'll report it instead of just saying, "This (obviously beta) software is a piece of crap! I'm going elsewhere."

Sorry for the derailment, and I realize there's a lot of people who think the same way you do, but it just irritates me to no end. It is, in fact, the #1 reason we did not offer SVN until recently. We were hoping that users were grown up enough to handle the responsibility now.

This post is in no way meant to offend anyone. Please just understand how developers see it.
 Post #71
 7th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
MythBuster posted:
I noticed if you kick someone with the reason (none) the command pops up in chat but the person does not get kicked and when you change map to current it does not change and you have to go through the map list.
Any console errors? Can you paste the exact messages you get?
 Post #72
 7th September 2007
MythBuster's Avatar
August 2007
309 Posts
Megiddo i did not say once that it was a piece of shit and i did not once say i didn't like it all i said was i get random lag spikes so i stopped using it and if your gonna flame over that then just leave

And andy i'm not getting any errors or console errors and it is not that big of a deal because i'm still able to use the features just not the ways i mentioned and i did notice that if you have the fps meter thing on and the adverts come up they cover it but other than that great mod and keep up the good work.


EDIT: oh and is there a way to make the menu with derma?
 Post #73
 8th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
MythBuster posted:
And andy i'm not getting any errors or console errors and it is not that big of a deal because i'm still able to use the features just not the ways i mentioned and i did notice that if you have the fps meter thing on and the adverts come up they cover it but other than that great mod and keep up the good work.


EDIT: oh and is there a way to make the menu with derma?
Weird, I'll have to take a look at it.

The menu already uses Derma, so if you have a skin you want to use, just use the normal command to change the look of the menu (derma_skin?).
 Post #74
 8th September 2007
MythBuster's Avatar
August 2007
309 Posts
I had my derma skin as the built in lined one but it stays as the one you have in the pics.
 Post #75
 8th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
The code for drawing the menu in the "lined" skin is missing, so it would fall back to the default code (as seen in the pictures).
 Post #76
 8th September 2007
Toy Soldier's Avatar
December 2005
634 Posts
Holy shit... Gmod is getting better and better very quick.

(User was banned for this post (Reason: Alt of Fox_Hound (in post "Re: ASSmod 1.0 - A Simple Server modification" by postal)))
 Post #77
 8th September 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Updated to V1.1, see first post!

andyvincent posted:
  • Bug: Default config includes an escape character (which causes the string to be cut off - actually a bug in Gmod util.KeyValueToTable)
  • Bug: Map change to current doesn't work sometimes
  • Addition: Notice bar (top bar) is hideable using the console command "ASS_ToggleNoticeBar". Servers can do this by removing any notices from the config files.
  • Addition: Plugin callback "FormatText" this is used to plugins can add custom keys for notices (see plugins/ass_exformat.lua)
  • Addition: Debug module.
  • Documentation: Documented the Kill plugin (it's fairly simple to understand what's happening).
 Post #78
 8th September 2007
Officer Pie's Avatar
February 2007
69 Posts
ASS simple as this seems, this is pretty :krad:. Nice job!
 Post #79
 8th September 2007
Xabot's Avatar
July 2007
54 Posts
And it's ass simple ass a bass guitar player!
 Post #80
 9th September 2007
MythBuster's Avatar
August 2007
309 Posts
Xabot grow up and andy i think you should change the name because people around here are very immature for the name.
Reply


All times are GMT. The time now is 05:11PM.

Facepunch Studios 2009 - Server 'Softlayer 2.0'