Giter Club home page Giter Club logo

statclock's Introduction

StatClock

A set of python routines designed for analysing Team Fortress 2 console logs

Console logs can be generated via the con_logfile <filename> console command. All text registered in the console that session is then output to a text file in the /tf/ subdirectory of the TF2 installation with the chosen filename.

These console outputs log each frag and each death along with information such as the weapon used, the players involved, and whether it was a critical hit or not. This is the information that StatClock parses.

NB: StatClock cannot measure or track:

  • Damage
  • Health
  • Time

The program simply extracts kill/death information from the last game recorded in the console. This means that fine-grained information such as dpm, health remaining, etc. cannot be tracked (owing to the fact that they would require a server-side plugin).

Basic python skills are required to interface with the routines in order to extract what information you want. The routines are essentially wrappers for pandas calls and text processing, meaning one can focus on the abstracted information rather than indexing through dataframes.

An example analysis file analysis.py is provided alongside the routines (statclock.py) to demonstrate a simple use of the routines for analysing killstreak frequency over a single match. A sample logfile is also provided (testdata.txt).

Requries:

TODO:

  • Provide more filtering options
  • Provide more statistics methods
  • Add example plotting method
  • Long-term statistics over serveral samples

statclock's People

Contributors

jsturt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.