mrRodrigo / Quake-server-logger-parse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The log file was generated by a Quake 3 Arena server, including a great deal of information of every match.

The project implement the following functionalities:

  • Read the log file
  • Group the game data of each match
  • Collect kill data

How to run

Tests

Just for testing you need to install all dependencies with:

npm install

Running only unit tests:

npm run test

Running tests and generate report:

npm run coverage

Application

Running application (on root of project)

node .

The result is stored in ./Result.json and the output is printed to the console.

Example:

  "game-2": {
    "total_kills": 11,
    "players": ["Isgalamido", "Mocinha"],
    "kills": { "Isgalamido": 3 },
    "kills_by_means": {
      "MOD_TRIGGER_HURT": 7,
      "MOD_ROCKET_SPLASH": 3,
      "MOD_FALLING": 1
    }
  },

About


Languages

Language:JavaScript 100.0%