Bans Aint Sticken
FoCAMrslug
Join Date: 2003-01-22 Member: 12572Members
I am trying to figure out why the won ids of the people who get banned off our server are not getting written to the banned.cfg file in the NS directory. We can def kick and ban people, but the next day when I look for the banned won IDs in banned.cfg file, its blank! <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' valign='absmiddle' alt='wow.gif'><!--endemo-->
As a guess I thought these params in the adminmod.cfg may have something to do with this problem:
// If enabled, the scripting file functions have read
// access to files
// (0=disabled, 1=enabled)
file_access_read 1
// If enabled, the scripting file functions have write
// access to files
// (0=disabled, 1=enabled)
file_access_write 1
However, even after changing both of the above to "1" and restarting, no permanent ban love <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' valign='absmiddle' alt='wink.gif'><!--endemo-->
Any help is much appreciated.
As a guess I thought these params in the adminmod.cfg may have something to do with this problem:
// If enabled, the scripting file functions have read
// access to files
// (0=disabled, 1=enabled)
file_access_read 1
// If enabled, the scripting file functions have write
// access to files
// (0=disabled, 1=enabled)
file_access_write 1
However, even after changing both of the above to "1" and restarting, no permanent ban love <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' valign='absmiddle' alt='wink.gif'><!--endemo-->
Any help is much appreciated.
Comments
exec banned.cfg
exec listip.cfg
and these two to your server.cfg
writeip
writeid
the two lines in your autoexec.cfg will make sure that the server LOADS your old bans from the last server run
the two lines in server.cfg make sure that any changes get saved every map change.
if you only save bans but do not load them on startup using exec banned.cfg and exec listip.cfg then the bans will still be ineffective the next time you run the server, which also means that when u do a "writeip" or "writeid" that the old bans get completely overwritten.
exec banned.cfg
exec listip.cfg
and these two to your server.cfg
writeip
writeid
the two lines in your autoexec.cfg will make sure that the server LOADS your old bans from the last server run
the two lines in server.cfg make sure that any changes get saved every map change.
if you only save bans but do not load them on startup using exec banned.cfg and exec listip.cfg then the bans will still be ineffective the next time you run the server, which also means that when u do a "writeip" or "writeid" that the old bans get completely overwritten.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
First let me say thank you and where do I send the check? <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->
Sorry for the noobness, but are U refering to the autoexec.cfg on the server? ( I would assume this is a yes).
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Will adminmod bans persist in a similar fashion?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
adminmod bans are just a wrapper for regular bans, meaning that the ban is like a normal ban in every respect except in the method of how you tell the server to add it.(so after you've actually typed admin_ban llama, from that point on it is a normal ban in every way)
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Will adminmod bans persist in a similar fashion?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
adminmod bans are just a wrapper for regular bans, meaning that the ban is like a normal ban in every respect except in the method of how you tell the server to add it.(so after you've actually typed admin_ban llama, from that point on it is a normal ban in every way)<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Roger, them. Thanks again.
After using the suggested cvars in the server.cfg and autoexec.cfg, I can now ban by IP or WON ID and it sitcks.