Author Topic: Bans dissapear every time a crash or reset occurs.  (Read 2725 times)

0 Members and 1 Guest are viewing this topic.

Mp6

  • Guest
Bans dissapear every time a crash or reset occurs.
« on: December 23, 2007, 05:26:39 PM »
Last I had checked I had about 20 perma bans from people that have tried to crash my server by spamming or other means.  I reset the server to get some new mods on and I look at the ban menu and they were all gone.  Why is this happening?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Bans dissapear every time a crash or reset occurs.
« Reply #1 on: December 23, 2007, 06:41:30 PM »
If you use rcon banid, they're removed on server reset, it's how the source engine works.
Experiencing God's grace one day at a time.

Mp6

  • Guest
Re: Bans dissapear every time a crash or reset occurs.
« Reply #2 on: December 23, 2007, 08:28:05 PM »
I do not use ban id, I use !ban player time reason.  Arn't they supposed to go to the defaul config files?  I go there and they dissapear from there too.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bans dissapear every time a crash or reset occurs.
« Reply #3 on: December 23, 2007, 09:20:08 PM »
They get written there every ban. However, if you don't have 'exec banned_users.cfg' in your server.cfg file... your ban list gets cleared every server restart, because the writeid that ULX performs writes empty data if you haven't.

This isn't a ULX problem.. this is how Source works. You're supposed to load your banned users on server/map startup before you write to it again or its cleared because nothing was in it to writeid
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Mp6

  • Guest
Re: Bans dissapear every time a crash or reset occurs.
« Reply #4 on: December 24, 2007, 12:28:42 AM »
I have banned_user.cfg in my server folder, and if I understand what you are saying, which I am sure I am not, I have to copy the bans every time into the folder myself?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Bans dissapear every time a crash or reset occurs.
« Reply #5 on: December 24, 2007, 03:59:44 AM »
NO.. what he is saying is by default.. your server is not loading the banned_users.cfg file when your server loads... therefore when you start your server again and ban someone.. it will write the new ban to the file.. WITHOUT the old bans..


Open up your Garrysmod/CFG/server.cfg and add exec 'exec banned_users.cfg' to it and it'll load the ban list file every load.

Problem solved.

Mp6

  • Guest
Re: Bans dissapear every time a crash or reset occurs.
« Reply #6 on: December 24, 2007, 12:40:22 PM »
Ok, I have done that and I hope that my bans will stop dissapearing from the banned_user.cfg file.  Thank you for the help.