Raised This Month: $12 Target: $400
 3% 

Admin Override Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 05-11-2010 , 17:08   Admin Override Problem
Reply With Quote #1

I am setting up a TF2 server, and I am having trouble getting admin overrides to work. I have copied over the admin_overrides.cfg file from an existing, working server, but I am unable to use any of the commands that are overridden.

For example, I have sm_vote set to use the custom1 flag in my admin_overrides.cfg file:

Code:
 "sm_vote"  "o"
I also have my account setup with the proper flag:

Code:
sm_who
    Name                     Username           Admin access
 1. >f7> msleeper            msleeper           res, custom(1)
Yet when I am in-game on this server and I try to use the sm_vote command, I get a "do not have access message":

Code:
] sm_vote "test"
[SM] You do not have access to this command.
__________________

Last edited by msleeper; 05-13-2010 at 21:51. Reason: Clarifying something.
msleeper is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2010 , 13:02   Re: Admin Override Problem
Reply With Quote #2

Make sure you have inside Overrides{}
Code:
Overrides
{

 /**
 * Instructions
 *
 */

  "sm_vote"   "o"
}

You have "name" to access admin commands ?? (Not Steam_ID or IP)
Have you set ...addons/sourcemod/configs/core.cfg
"PassInfoVar" "_sm1337"

and log in setinfo "_sm1337" "password"

Last edited by Bacardi; 05-12-2010 at 15:18. Reason: dam cold can't think...
Bacardi is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 05-13-2010 , 21:51   Re: Admin Override Problem
Reply With Quote #3

The overrides are properly set in the curly brackets. Like I said, I copied the overrides file from a working server to my new server. I have triple checked the file for simple mistakes like that, but I can't imagine that the exact same file on 2 different game servers would behave differently.

I am using SteamID authentication, using SQL admins. As I showed in my output of sm_who when I was connected to the server, I am being given the proper admin access.
__________________
msleeper is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-14-2010 , 12:20   Re: Admin Override Problem
Reply With Quote #4

Quote:
Originally Posted by msleeper View Post
I am using SteamID authentication, using SQL admins.
Now you mention... SQL admin.
- Is that another server use same SQL admin ??

- I have no experience about this SQL... but I think it not use admin_overrides.cfg file ??

Alliedmodders wiki
It use configs/sql-init-scripts and have to build "tables" and such ??
7.5 sm_group_overrides
Too hard to me.
Bacardi is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 05-14-2010 , 18:51   Re: Admin Override Problem
Reply With Quote #5

Yes, both servers use SQL admins. The other server has no problems with SQL admins and overrides. As I showed in my output of sm_who, I have the correct admin level being set while I am in the problem server:

Code:
 
sm_who
    Name                     Username           Admin access
1. >f7> msleeper            msleeper           res, custom(1)
You can see I have the Reserved and Custom 1 flags set, which is what I should have set. I have SQL admins setup properly, I've been using them for a couple years now.
__________________
msleeper is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 05-19-2010 , 08:59   Re: Admin Override Problem
Reply With Quote #6

Bump, any ideas?
__________________
msleeper is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-10-2010 , 19:37   Re: Admin Override Problem
Reply With Quote #7

Bump from a million years ago.

I am still getting this problem after updating recently to the latest snapshop of SM 1.4. People with the CUSTOM1 flag are unable to use commands that have been admin override'd to use this flag. I have to set the original flag before they have this access.

Here is my admin_overrides.cfg:
PHP Code:
Overrides
{
 
/* Super Admin commands */
 
"sm_voteff"   "z"
 
/* All Admin commands */
 
"sm_adminspray"  "b"
 "sm_removespray" "b"
 "sm_spraytrace"  "b"
 
/* Supporter-Only Admin commands */
 
"sm_blind"   "bo"
 "sm_burn"   "bo"
 "sm_freeze"   "bo"
 "sm_slap"   "bo"
 "sm_beacon"   "bo"
 "sm_drug"   "bo"
 "sm_firebomb"  "bo"
 "sm_freezebomb"  "bo"
 "sm_gravity"  "bo"
 "sm_noclip"   "bon"
 "sm_timebomb"  "bo"
 
/* Registered user commands */
 
"sm_votealltalk" "a"
 
/* Supporter commands */
 
"sm_vote"   "o"
 "sm_voteburn"  "o"
 "sm_voteslay"  "o"
 "sm_votemap"  "o"
 "sm_votekick"  "o"
 "sm_voteban"  "o"
 "sm_votemute"  "o"
 "sm_votesilence" "o"
 "sm_votegravity" "o"

I had one of the people test the "sm_vote" command when he has the CUSTOM1 flag set, and he could not use the command until I went in and granted him the voting flag.

Please advise! Is this a bug in SM or am I seriously just missing something?
__________________
msleeper is offline
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 07-12-2010 , 07:36   Re: Admin Override Problem
Reply With Quote #8

commands override is part of admin-flatfile.smx so you need to have this plugin loaded even when you dont use admin.cfg and other local admins

When you override sm_vote (or any other cmd) to "o" flag (custom1) you have access via previous flag ? For more test try using local admins file.
__________________

Last edited by KawMAN; 07-12-2010 at 07:44.
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-12-2010 , 12:02   Re: Admin Override Problem
Reply With Quote #9

I think that first part was it. I added the overrides in to SQL admins so my overrides are reading from database, and now things are working. If the admin_overrides.cfg file is ONLY read by admin_flatfile.smx then that would explain it. I had assumed that overrides would be apart of baseadmins, not admin_flatfile.
__________________
msleeper is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode