You are here: Big Brother Bot ForumCommunity DevelopersPlugin DevelopersPunkBuster logs parser for CoD4 request/question
Pages: [1] 2   Go Down
  Print  
Author Topic: PunkBuster logs parser for CoD4 request/question  (Read 1641 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 17
Offline Offline
« on: June 01, 2011, 03:15:02 PM »

Hi there Smiley
I'm an owner of a gaming community with CoD4, Q3A, CS 1.6 etc. servers. We have our own dedicated server with full access to files and MySQL database. My question: is it possible to write a parser for B3 (CoD4) to read PunBuster logs or which will collect data from every player and send them to tables to my mysql? PB now collect data like among other things:
PB_SV_CvarVal r_aasamples
PB_SV_CvarVal sys_configureGHz
PB_SV_CvarVal sys_cpuGHz
PB_SV_CvarVal sys_cpuName
PB_SV_CvarVal sys_gpu
PB_SV_CvarVal sys_sysMB

I need them to effective cheaters nad rule-brakers detection. Looking in PB logs and searching for particular client is very time-consuming and annoying.

Is it possible from B3 to collect such data? Or maybe someone wrote a parser for PB logs.

Thanks in advance for Your help.
Regards, cluzzz
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: June 01, 2011, 05:24:12 PM »

can't the main game log file also have those lines ? or does it have to be in a pb specific log file ?

can you use rcon to query those cvar and get the result over rcon ?

Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 17
Offline Offline
« Reply #2 on: June 02, 2011, 03:59:44 AM »

No, I can only launch manually it via rcon but it is written to PB log file and to *.var file only. It isn't written to main game log. Any solutions?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: June 02, 2011, 04:04:11 AM »

would streaming with to pbucon display those values ?
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 17
Offline Offline
« Reply #4 on: June 02, 2011, 04:22:31 AM »

I don't know. We didn't configure ucon yet.
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #5 on: June 02, 2011, 04:28:21 AM »

would streaming with to pbucon display those values ?
It should.
From what I know, PBBans uses PBUCON to stream PB logs. When someone gets kicked, that log (with volition number) gets sent to pbbans and they issue a perma ban (unless the kick number is not a cheat).
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: June 02, 2011, 04:43:01 AM »

@MordyT do you think the following would work :

  • create a plugin which opens a port to receive a pbucon stream
  • have the plugin send rcon commands to tell pbucon to stream to our plugin
  • have the plugin send the pb md5 commands or whatever to make PB send those PB_SV_CvarVal to the stream
  • have the plugin parse the stream and react accordingly
Logged

Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #7 on: June 02, 2011, 05:00:14 AM »

this could also solve another problem...
there exists a script (anti-script script) which checks the cvars and cfg settings of the players (cod4 especially, but also the other parts of cod series i guess)
some of the players are using the MOUSEWHEEL-SHOOTING... which allows them to shoot the single shot weapons much faster
for example... the shots of the g3 are fired as much as fast as the shots of the p90 by using the mousewheel (or another example the pistols... the firingrate with the mousewheel is as fast as an automatic weapon...)

this antiscript script checks also the key binds for not allowed combinations... like the fragnade jumps or other scripts...

with a working pbucon plugin for b3 it would be possible to check this stuff also i guess...

at the moment we check this mousewheel shooting stuff etc with the FUD-BINDKICKER... the problem is its a windows program and wont run on my linux root... so i really cant do a 24/7 check

if you need more infos on this antiscript script plz let me know...

add-on: pb can do the check of the cvar... but you need to manually react to the logs...
maybe a plugin which checks the logfiles for the entries and react automatically to it would do the job... it wont need a pbucon connection in this case...
« Last Edit: June 02, 2011, 05:05:25 AM by Miramar » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: June 02, 2011, 05:16:43 AM »

What I really need is more time :s

Way tooooo much stuff on my todo list. We need more dev @B3. Tell your friends who can code to come to help some day Smiley

So I already had the pbucon stuff somewhere in my list and it just got priorized up a bit
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 17
Offline Offline
« Reply #9 on: June 02, 2011, 05:36:47 AM »

Ok thanks for replies. We have PBUCON configured now. But to my knowledge i can see only in-game chat. Logs aren't shwown there.
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #10 on: June 02, 2011, 05:39:04 AM »

@MordyT do you think the following would work :

  • create a plugin which opens a port to receive a pbucon stream
  • have the plugin send rcon commands to tell pbucon to stream to our plugin
  • have the plugin send the pb md5 commands or whatever to make PB send those PB_SV_CvarVal to the stream
  • have the plugin parse the stream and react accordingly
I think all of that would work, however I don't know if rcon command is needed... with PBBans setup, you don't need to tell their tool your rcon password (I think).
I don't even think you need to send a md5 or anything, since all you are doing is reading through ucon, not sending.

From what I know (just a little), once a server admin turns on ucon, it is sending real time logs for the world to see. It is one way - sending. Anyone can latch onto the stream (and indeed, some people stream to aon and pbbans - both using ucon).

#1 and #4 in your list are all I think you need.

I added this to your todo list (link in your sig).


at the moment we check this mousewheel shooting stuff etc with the FUD-BINDKICKER... the problem is its a windows program and wont run on my linux root... so i really cant do a 24/7 check

add-on: pb can do the check of the cvar... but you need to manually react to the logs...
maybe a plugin which checks the logfiles for the entries and react automatically to it would do the job... it wont need a pbucon connection in this case...
I know my pb logs have "key bindings" all over them... but yes, I have never seen pb kick for them.

This is a HUGE bonus.

Vote on it here: http://goo.gl/mod/twro (you might need to wait till @c approves it to see it).

What I really need is more time :s

Way tooooo much stuff on my todo list. We need more dev @B3. Tell your friends who can code to come to help some day Smiley

So I already had the pbucon stuff somewhere in my list and it just got priorized up a bit
More devs would be great. Currently I am studding python (bought a book off amazon, so maybe one day I can help.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #11 on: June 02, 2011, 05:40:23 AM »

try out the GCC Stream plugin, it will setup pbucon streaming to the GCC Stream anticheat service.

The idea would be to use that stream for our plugin. It seems to me that the GCC Stream service is able to check for cvar and stuff
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 17
Offline Offline
« Reply #12 on: June 02, 2011, 05:46:51 AM »

Huh this topic is growing up fast ^^ I only want a parser or plugin for b3 or whatever to store those data (cpu, gpu etc.) to my mysql database Smiley
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #13 on: June 02, 2011, 07:00:10 AM »

but first you have to READ it before you can WRITE it...  Cheesy
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #14 on: June 02, 2011, 07:28:19 AM »

Notes on UCON:

1) Yes, it can be used send rcon commands.
2) You could stream the entire game log over UCON (set ucon to 2 and/or 3)
3) Setting ucon to 1 (in theory) will allow commands to be sent, setting to 0 will keep it read only.

Enabling UCON is a 15 minute thing.. if that long.

1) Make sure you have pbucon.use in the pb folder.
2) Issue following commands in RCON:
Quote
pb_sv_usessionlimit x (number of how many connects, recommended 10)
pb_sv_uconadd 1 IP name? description?

not so sure what name and description are for...
IP is the IP issuing ucon.
Restart PB
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Tags: pbucon 
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal