SRCDS Steam group

banlist keeps getting erase when server shuts down
Server hardware specs;
CPU: Intel Xeon E3110
Board: Asus P5QL
RAM: 8 Gigs OCZ DDR2 800mhz
OS: Windows Server 2008 R2 x64

I have a dedicated TF2 serer running with the latest source mod, metamod and RTD 0.3.Everything is configure and works fine. Now when me or other admin bans some one it writes the players steam ID to banned_user.cfg but when the server restarts all is clean again! Basically all those who got ban are unban. I use this lines in the server.cfg as follows

exec banned_user.cfg
exec banned_ip.cfg

But it does not work. Is there away to fix this?

As for networking info
Bandwidth: Up 30mbps/ Down 3mbps
Router: Cisco 871 series
Local IP: of server
External IP:
Portforward via cisco CLI

I start the console server from a batch file and here is the contents...
as you can see I have the auto restart.

@echo off
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.exe Watchdog
echo - %date% %time% - srcds started.
start /wait c:\srcds\orangebox\srcds.exe -console -game tf +ip +hostport 27016 +maxplayers 23 +map surf_10x_tf2_complete
echo - %date% %time% - WARNING: srcds closed or crashed, restarting.
goto srcds
IIRC there is some command to save the bans which could be placed into the server.cfg so it gets executed at map change (sorry I forgot the name of the command). in any case the bans made right before the crash or shutdown of the server are lost.
the best way to fix this is using some plugin that writes bans to a database, like sum (a sourcemod plugin). this way the bans also can be shared among servers. (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
It will be helpful if someone can provide the commands, also not sure the commands I have in the server.cfg are correct or need to be replace
below are the commands I have atm in the server.cfg
exec banned_user.cfg
exec banned_ip.cfg
Is banned_user.cfg && banned_ip.cfg writable?
(08-23-2010, 05:12 PM)lhffan Wrote:  Is banned_user.cfg && banned_ip.cfg writable?

Yes, I'm using the administrator account as well. The banned_user.cfg gets populated I check it my self. But once the server is restarted it is call clear again. As for now I save all the ban ID's in a text file and once the server is started I have to enter it manually Sad like this
banid 0 STEAM ID......
right in to the console of the server.
as I said: the best way to fix it is using a plugin maintaining bans in a data base. I am using this one:
but there are a lot of others. (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
I figure out my self.
To night I was messing around and really think of the meaning of writeid and exec banned_user.cfg. I did some googleling and found the meaning of it.
In the server.cfg I had to remove the "writeid" command because when you execute the server it will rewrite it with nothing. But I only leave one line wich is "exec banned_user.cfg" which when the server starts it will load the ban ID's from the cfg file. Like this no more lost of ban ID's

Now before you restart the server I just have to type writeid in to the server console at my server computer to write all the banned ID's from all you admins who banned whoever during the time the server was started till the time I write this command. This will write all the banned ID's from memory to the banned_user.cfg on the hard drive! So lets I banned 3 people during the past two days, and I have to type writeid to the server so it will be save. Then I can restart it for update over what ever reason.
you could also run writeid right after each ban... :-) (Linux Kernel HOWTO!)
Do not ask technical questions via PM!

Forum Jump:

Users browsing this thread: 1 Guest(s)