Git Product home page Git Product logo

urtstats's Introduction

UrTStats

UrTStats is a real time global stats system for the game Urban Terror <--- That's a cool FPS, seriously, try it ! We are collecting server statuses and aggregate them to generate cool stats. For example, you can view in live the number of players who are online, what gametypes they prefer, etc

You can see a live version here : www.urtstats.net

###Your stats are wrong! UrbanTerror.info says that there are xxx players online and not yyy !! Well... While I'm doing my best to be sure the backend scripts are running properly, sometimes (or everytimes) servers are not responding because they "are too busy", "don't want to answer", "don't care", "hate me" or "have networking problems".

###Want to contribute? Cool, I'm happy to hear that ! Depending on your abilities, you can send me feedback, suggest new cool things to statify or read the code and send pull requests ;)

Want to run your own UrTStats?

Requirement

  • A Server with a decent php version
  • A mysql server and mysqli activated
  • php-rrd (apt-get install php5-rrd)

How to make it work ?

5 Steps (I assume that you already grab a copy of the code):

  1. Create a mysql user with a database, import the table structure on it (It's in ./init/dump.sql)
  2. Edit ./data/conf.ini with your settings
  3. Create directories for each workers on ./crons/slots/ (0, 1, 2,....)
  4. Run all php scrips on ./init/ to create all .rdd files :)
  5. Add ./crons/collector.cron.php and ./crons/masters.cron.php on your crontab :)

*/5 * * * * php /path/to/Urtstats/crons/masters.cron.php AND */5 * * * * php /path/to/Urtstats/crons/collector.cron.php

And That's all ! UrTStats is now doing stats. After that you'll need to setup the website, but it's not available yet.

About me

I'm blapecool ( @blapecool ). You can contact me by mail (hello AT urtstats.net)

Thanks to

  • Barbatos for hosting me :)

urtstats's People

Contributors

blapecool avatar

Watchers

James Cloos avatar  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.