Author Topic: Questions about banned.txt and bannedhw.txt  (Read 2932 times)

0 Members and 1 Guest are viewing this topic.

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Questions about banned.txt and bannedhw.txt
« on: November 25, 2013, 02:45:50 pm »
Hi all,

I would like to know how those two files exactly works.

I mean - if I add a line in bannedhw.txt:
HWID:TIME?:DESCRIPTION?
for example:
11223344556:1234:Banned by admin

Does it will ban that user (HWID) immediately? Or there is some interval of pooling that file? Or maybe the restart of server is required?

What does this number in the middle of the entry means? Time in seconds? Counting from when? If there is time=-1 then it's permanent ban?
Does the corresponding entry must be in the banned.txt file? Or are they separated from each other?

How that is possible that banned (by HWID) player has joined the server and played on it?

Thanks in advance for your reply :)

Best regards,
Szaman.

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Questions about banned.txt and bannedhw.txt
« Reply #1 on: November 26, 2013, 08:18:27 am »
I think bannedhw.txt editing is bound to server being on/off. If you manually add hwid while the server is running I don't think it will save(same goes with deleting hwids). You will have to turn off the server then edit the file and turn it back on in order for changes to be effective. If you want to make sure it's banned just connect via server admin program and use /banhw hwid command.

Im chill like that

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Questions about banned.txt and bannedhw.txt
« Reply #2 on: November 26, 2013, 05:45:50 pm »
There are ways to change your HWID - for sure.

But I've seen a guy who joined the server with the same HWID as banned one (there WAS a server restart after adding that HWID to file).

Admin console is not very useful when you need to ban someone on 10-20 server at once. I wrote a script that adds a line to every bannedhw.txt (on many servers). It would be very nice if soldat would read that file for example every 5 minutes or on each game-join request...

Could you please answer the rest of my questions ? :)

Best regards,
Szaman.

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Questions about banned.txt and bannedhw.txt
« Reply #3 on: November 27, 2013, 03:54:52 am »
If you are connected via arsse it's rather simple to ban certain ID on many servers. Just type in /amsg /banhw hwid and it will ban it on every server you are connected to.

hwid : time in seconds : reason

as for banned.txt its only for IP. Once you banned someones hwid you dont need to ban his IP as well
« Last Edit: November 27, 2013, 03:57:12 am by Bonecrusher »

Im chill like that

Offline Szaman

  • Soldier
  • **
  • Posts: 145
Re: Questions about banned.txt and bannedhw.txt
« Reply #4 on: November 27, 2013, 05:40:43 am »
Thanks :)

Ok, I can use ARSSE for that (I am using Baka Admin for the every-day usage).
So, let's make it clear, Soldat ignores entries created directly in the file until I restart the server?

"Time in seconds" - so the soldat during shutdown is updating that value in bannedhw.txt file, right? Because if not, how it could determine "time to end of the ban" after server restart?
"-1" stands for permanent ban?

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Questions about banned.txt and bannedhw.txt
« Reply #5 on: November 27, 2013, 06:52:33 am »
Like I explained before you will have to shut down server, edit the file and then turn it back on after edit process is done. We tried to simplify this whole banning commands mess but that never worked out check it out a lot of info is there http://forums.soldat.pl/index.php?topic=42353.msg510698#msg510698

Im chill like that