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

sm_reloadadmins wipes admins.cfg and admin_groups.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neural_Overload
Junior Member
Join Date: Feb 2006
Old 08-20-2008 , 03:05   sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #1

For some reason, issuing sm_reloadadmins to sourcemod resets my admins.cfg and admin_groups.cfg to something similar to "admins" { } What could be the problem?

I have these plugins loaded:
Code:
[SM] Listing 24 plugins:
  01 "AddTime" (1.0) by bl4nk (Modded by: Neural_Overload)
  02 "Admin File Reader" (1.0.3) by AlliedModders LLC
  03 "Admin Help" (1.0.3) by AlliedModders LLC
  04 "Admin Menu" (1.0.3) by AlliedModders LLC
  05 "Anti-Flood" (1.0.3) by AlliedModders LLC
  06 "Basic Chat" (1.0.3) by AlliedModders LLC
  07 "Basic Comm Control" (1.0.3) by AlliedModders LLC
  08 "Basic Commands" (1.0.3) by AlliedModders LLC
  09 "Basic Info Triggers" (1.0.3) by AlliedModders LLC
  10 "Basic Votes" (1.0.3) by AlliedModders LLC
  11 "TF2 Class Restrictions" (0.4) by Tsunami
  12 "Fun Commands" (1.0.3) by AlliedModders LLC
  13 "Fun Votes" (1.0.3) by AlliedModders LLC
  14 "HLstatsX Plugin" (2.6) by TTS Oetzel & Goerz GmbH
  15 "MapChooser" (1.0.3) by AlliedModders LLC
  16 "Nextmap" (1.0.3) by AlliedModders LLC
  17 "SlapSlay Commands" (1.0.3) by AlliedModders LLC
  18 "Reserved Slots" (1.0.3) by AlliedModders LLC
  19 "Rock The Vote" (1.0.1.2147) by AlliedModders LLC
  20 "SourceBans" (1.2.0) by SteamFriends Development Team
  21 "SourceBans Sample Plugin" (1.0.0 RC2) by SteamFriends Development Team
  22 "Teamswitch Menu" (0.2.4) by R-Hehl
  23 "Simple Teleport" (1.1) by Taco
  24 "Weapon Logging" (2.6) by TTS Oetzel & Goerz GmbH
Neural_Overload is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 08-20-2008 , 03:25   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #2

Check your error logs. It's probably a DB problem.
__________________
recon0 is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 08-20-2008 , 07:57   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #3

I've heard reports of SourceBans overwriting admin files, but i'm not sure.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
Neural_Overload
Junior Member
Join Date: Feb 2006
Old 08-20-2008 , 15:07   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #4

Quote:
Originally Posted by Lebson506th View Post
I've heard reports of SourceBans overwriting admin files, but i'm not sure.
That seems to be the problem. With sourcebans enabled, as soon as I issue a sm_reloadadmins they get wiped.
Neural_Overload is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-20-2008 , 15:32   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #5

Check your sourcebans.cfg

There's an option for whether or not to use sourcebans for admin functionality. If you turn that option off, you should be fine running sourcebans without any overwriting of admins.
psychonic is offline
Enemy1
Senior Member
Join Date: Feb 2007
Location: Vaxjo, Sweden
Old 08-20-2008 , 16:02   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #6

I have the same problem on our 7 dods servers :-(
I dont know why - but I made 2 of them connecting as they should to the webbserver ..

This is all the other gets - "admins" { }

I have uploaded the new *.smx today from sourcebans svn trunk on all servers !
__________________
Linux server administrator.
Enemy1 is offline
W][LDF][RE
Member
Join Date: Nov 2007
Location: Virginia,USA
Old 08-20-2008 , 16:56   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #7

try sb_reload then sm_rehash. that is what I have always used.
W][LDF][RE is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-24-2008 , 09:06   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #8

sm_rehash is enough to reload the admins in SourceBans, sm_reloadadmins does the same as sm_rehash.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
TheReign
New Member
Join Date: Sep 2009
Old 09-05-2009 , 00:41   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #9

I found a solution to this. We wanted SourceBans to manage admins, but we wanted to manage the groups on our own, so everytime we reloaded the admins with sm_reloadadmins it would overwrite admin_groups.cfg. I figured out that if you make admin_groups.cfg read-only, then it will no longer overwrite the file, and SourceBans will still manage the admins (allows me to add and remove people from groups and so forth).
TheReign is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 09-05-2009 , 04:27   Re: sm_reloadadmins wipes admins.cfg and admin_groups.cfg
Reply With Quote #10

Quote:
Originally Posted by TheReign View Post
I found a solution to this. We wanted SourceBans to manage admins, but we wanted to manage the groups on our own, so everytime we reloaded the admins with sm_reloadadmins it would overwrite admin_groups.cfg. I figured out that if you make admin_groups.cfg read-only, then it will no longer overwrite the file, and SourceBans will still manage the admins (allows me to add and remove people from groups and so forth).
You can also turn the backup configs option off in configs/sourcebans/sourcebans.cfg, and it won't write to those files.
__________________
recon0 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 08:30.


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