Download Latest Version lugstats_1.0.1.zip (25.4 kB)
Email in envelope

Get an email when there's a new version of lugstats

Home
Name Modified Size InfoDownloads / Week
README.md 2018-12-21 1.1 kB
lugstats_1.0.1.zip 2018-12-21 25.4 kB
Totals: 2 Items   26.5 kB 0

Lugstats

===================

The server stats utility for Lugdunon. Creates a HTML file showing the users currently online and the maximum number of players at one time.

Project based here: https://lugdunoncity.org/index.php/downloads-new/category/13-server

Instructions:

1) Edit lugstats.pl and make following changes:

$SERVER_NAME="LugdunonCity";    # The name of your server
$GAMELINK="http://client.lugdunon.net/?server=lugdunoncity.org:41976"; # Link to your live server
$OUTDIR="/var/www/lugstats";    # The file path to your web root - may be /var/www/html/lugstats
$WEBDIR="/lugstats/";           # The absolute web directory of the above
$SERVER_ADDR="http://lugdunoncity.org:41976/rest/net/lugdunon/players"; # The REST interface for your server

2) Execute the following commands:

cpan
install File::Copy
install HTTP::Tiny
install Data::Dumper
install LWP::Simple
install JSON
install String::Scanf
quit

3) Create a crontab like this:

*/5 * * * * cd ~/lugstats;./lugstats.pl

This will poll every 5 minutes

Source: README.md, updated 2018-12-21