Git Product home page Git Product logo

quake-log-parser's Introduction

Quake Log Parser

Description

The "games.log" file is generated by the Quake 3 Arena server. It contains information about the matches, information such as: when it starts, when it ends, who killed who, who "killed himself" (he fell into the void, blew himself up), among others.

The purpose of the parser is to read the file, group the data from each match, and organize its information in JSON format.

Example:

21:42 Kill: 1022 2 22: <world> killed Isgalamido by MOD_TRIGGER_HURT
  • The player "Isgalamido" died because he was injured and fell from a height that killed him.
 2:22 Kill: 3 2 10: Isgalamido killed Dono da Bola by MOD_RAILGUN
  • The player "Isgalamido" killed the player "Dono da Bola" using the weapon "Railgun".

For each game the parser should generate something like:

[{
  "game": 1,
  "status": {
     "total_kills": 45,
     "players": [
		{
			"id": 1,
			"nome": "Mocinha",
			"kills": 5,
			"old_names": ["Dono da bola"]
		},
		{
			"id": 2,
			"nome": "Isgalamido",
			"kills": 18,
			"old_names": []
		},
		{
			"id": 3,
			"nome": "Zeh",
			"kills": 20,
			"old_names": []
		}
	]
  }
}]

Observations

  • <world> is not a player and should not appear in the player list or kill dictionary.
  • When <world> kills the player or the player kills himself, he loses -1 kill.
  • total_kills are game kills, this includes <world> kills.
  • Players who disconnected from the match have their information removed from the log.

quake-log-parser's People

Contributors

arthurdelarge 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.