Giter VIP home page Giter VIP logo

openarena-stats's Introduction

OpenArena statistics


The scripts in this repository can be used to serve a web interface for browsing statistics of your OpenArena server running on Linux or Mac OS.

Setup

In order for these scripts to be able to parse the OpenArena logfiles some setup is required.

You should specify the playernames in the players.php file.

Make sure the following directory exists and is writeable for the user under which you run the OpenArena server:
/var/log/openarena

Start your Linux server using the following command:
nohup openarena-server +set dedicated 1 +set net_port [SERVER_PORT] +set net_ip [SERVER_IP] +exec [CONFIG_FILE] | awk '{printf("%s|%s\n", systime(), $0) >> ("/var/log/openarena/openarena_" strftime("%Y-%m-%d") ".log")}'

and/or your Mac OS server using the following command:
nohup openarena-server +set dedicated 1 +set net_port [SERVER_PORT] +set net_ip [SERVER_IP] +exec [CONFIG_FILE] | gawk '{printf("%s|%s\n", systime(), $0) >> ("/var/log/openarena/openarena_" strftime("%Y-%m-%d") ".log")}'

This enables logfiles to be written per date and all lines to be prepended with a timestamp. Be sure to replace the values contained within [ and ] with their correct values.

If, for whatever reason, you're storing logfiles in a different location, be sure to adjust the path in the stats.php file and the command used to start the server.

openarena-stats's People

Contributors

thijsdezoete avatar thijsterlouw avatar

Stargazers

 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.