Bans Aint Sticken

FoCAMrslugFoCAMrslug 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.

Comments

  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    make sure you use the command "writeid" in rcon... it'll write all the bans to the banned.cfg file.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    yeah, or an easier method is to add these lines to your autoexec.cfg

    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.
  • NarfwakNarfwak Join Date: 2002-11-02 Member: 5258Members, Super Administrators, Forum Admins, NS1 Playtester, Playtest Lead, Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow, Subnautica PT Lead, NS2 Community Developer
    Will adminmod bans persist in a similar fashion?
  • FoCAMrslugFoCAMrslug Join Date: 2003-01-22 Member: 12572Members
    <!--QuoteBegin--[WHO]Them+Jan 23 2003, 04:39 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Jan 23 2003, 04:39 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->yeah, or an easier method is to add these lines to your autoexec.cfg

    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).
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited January 2003
    yes, the one in the server's mod directory, it does not exist by default, but if you create one with a text editor it will start being used automatically

    <!--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)
  • NarfwakNarfwak Join Date: 2002-11-02 Member: 5258Members, Super Administrators, Forum Admins, NS1 Playtester, Playtest Lead, Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow, Subnautica PT Lead, NS2 Community Developer
    Thank you. I thought that would be the case, and I didn't want to have to bother with rconing a bunch of banid commands.
  • FoCAMrslugFoCAMrslug Join Date: 2003-01-22 Member: 12572Members
    <!--QuoteBegin--[WHO]Them+Jan 23 2003, 08:18 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Jan 23 2003, 08:18 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->yes, the one in the server's mod directory, it does not exist by default, but if you create one with a text editor it will start being used automatically

    <!--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.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->
Sign In or Register to comment.