thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: PBBans (cod4)  (Read 9238 times)

Offline tanka

  • Jr. Member
  • **
  • Posts: 46
Re: PBBans (cod4)
« Reply #15 on: August 10, 2012, 12:53:53 AM »
Okay with PB Bans back I was able to finally use this plugin. I had the exact same issue as steviek had but managed to fix this by removing "fileinput" from the import on line 5. Everything seems to be working fine now.

I however have one issue which is that the plugin logs bans on the same guid multiple times. It would be great if a section could be added that does a check for a permanent ban in the penalties before adding another ban.

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: PBBans (cod4)
« Reply #16 on: August 10, 2012, 02:47:42 AM »
Updated the code:

Removed "fileinput"
Added a check to see if the user already has an active ban.

Offline tanka

  • Jr. Member
  • **
  • Posts: 46
Re: PBBans (cod4)
« Reply #17 on: August 10, 2012, 09:59:52 AM »
Thanks for the update :D

Deployed the update to my servers and will give feed back if I have any issues :)

Offline tanka

  • Jr. Member
  • **
  • Posts: 46
Re: PBBans (cod4)
« Reply #18 on: August 17, 2012, 09:52:05 AM »
Just some feed back. It works perfectly :)

Okay now I would really like some help. I don't want to make another forum thread so I hope you don't mind me putting it here.

Basically we have an issue with people using scripts and binding shoot to their mouse wheel. The only way we have managed to get around that is through a PB ucon session and sending the pb_sv_bindsrch command. Not I was wondering if there is a possibility that you could help me create a plugin to automate this?

I unfortunately have no real coding knowledge. I can understand what is happening in the code for this plugin but not how to re-write it.

How it could work if you are interested in helping me is:
Read pb log files (same as this plugin)
Find line matching: [<date> <time>] [From #<pb slot number> <4 digit guid>(VALID) <player name>] [<key bound to> = <command bound>][<key bound to> = <command bound>][<number of matches> key binding matches found]

It would then do a check of the <command bound> against a database of regular expressions in the config (Similar to the censor plugin)
If a match is found it warns/kicks/bans the player according to the config (Similar to the censor plugin)
Would also be nice to have an option to tell the player what key the illegal command is bound to in the warning.

I am prepared to make a $20 donation to b3 in your name if you can help me out with this :) I am sure there will also be a lot of grateful users :P

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PBBans (cod4)
« Reply #19 on: August 17, 2012, 02:13:06 PM »
Quote
Read pb log files
is this a different file than the game server log file ?

Offline tanka

  • Jr. Member
  • **
  • Posts: 46
Re: PBBans (cod4)
« Reply #20 on: August 17, 2012, 02:46:13 PM »
Yes. This is the files in pb/svlogs (New file is written after each punkbuster/server restart under default settings)
It is written by punkbuster and is actually what this plugin (PB Bans) uses to find the information it needs.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: PBBans (cod4)
« Reply #21 on: August 17, 2012, 02:46:39 PM »
is this a different file than the game server log file ?

Yes. PB keeps it own log file in the pb/logs/ folder
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Cold

  • Jr. Member
  • **
  • Posts: 17
    • teamdb#
Re: PBBans (cod4)
« Reply #22 on: September 20, 2012, 08:47:01 PM »
I'm attempting to use this

Code: [Select]
<set name="log">ftp://B3:[email protected]:22/31.132.3.10 port 28941/pb/svlogs/</set>

and getting

Code: [Select]
120920 19:40:56	INFO	'STDOUT "Error: [Error 123] The filename, directory name, or volume label syntax is incorrect: \'ftp://B3:[email protected]:22/31.132.3.10 port 28941/pb/svlogs/*.*\'"'

what is the correct line to reach the logs on a different machine?

and the path is correct as the game log works which is

Code: [Select]
<set name="game_log">ftp://B3:[email protected]:22/31.132.3.10 port 28941/Mods/promodlive211_db/games_mp.log

Cheers  :)

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: PBBans (cod4)
« Reply #23 on: September 21, 2012, 12:17:28 AM »
This plugin only works if B3 is on the same machine has your game server.

Offline karelkopp

  • Jr. Member
  • **
  • Posts: 37
Re: PBBans (cod4)
« Reply #24 on: January 30, 2013, 11:18:31 PM »
Hi i have problem with this plugin in b3 says line did not matched

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: PBBans (cod4)
« Reply #25 on: January 31, 2013, 02:02:10 AM »
Hi i have problem with this plugin in b3 says line did not matched
B3.log?
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline karelkopp

  • Jr. Member
  • **
  • Posts: 37
Re: PBBans (cod4)
« Reply #26 on: January 31, 2013, 10:18:48 AM »
Code: [Select]
130130 22:55:03	DEBUG	'PbbansPlugin: Line: [01.30.2013 22:54:51] Kick Command Issued (PBBansHub: Enforced MBi Ban  [Admin Decision]) for (slot#6) 201.*.*.159:28960 84b449083eeb6de47a3a441a7a0c6fbe ElTlF Bl3nd'
130130 22:55:03 DEBUG 'PbbansPlugin: matching line'
130130 22:55:03 DEBUG 'PbbansPlugin: Line not matched'

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: PBBans (cod4)
« Reply #27 on: February 01, 2013, 07:44:18 PM »
change line 72 if pbbans.py to
Code: [Select]
         info = re.compile(r"(?:.*Kick\sCommand\sIssued\s\(PBBansHub\:\sEnforced\sMBi\sBan.*\s)(?P<ip>[0-9\*]{1,3}\.[0-9\*]{1,3}\.[0-9\*]{1,3}\.[0-9\*]{1,3})(?:\:[0-9]{1,5}\s)(?P<guid>[a-zA-Z0-9]{32,})(?:\s)(?P<name>.*?$)")

 


Rate this page +1 at Google Search

anything