xlr stats per urban terror

Un'area dove scambiarsi informazioni riguardanti l'uso di Ubuntu per giocare. Segnalazione di nuovi giochi e di problemi riscontrati.
nydardosh
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 300
Iscrizione: domenica 25 marzo 2007, 19:06
Località: Cagliari

xlr stats per urban terror

Messaggio da nydardosh »

salve a tutti, ho un server per urban terror, vorrei installare un ""sito in php"" ( non sapevo come chiamarlo ;D) per vedere le statistiche. tra i pochi esistenti ho trovato xlrstats, in php e con mysl, ho messo tutto sul server, configurato il file config.php ma niente
ecco il file:

Codice: Seleziona tutto

<?php
/***************************************************************************
 * Xlrstats Webmodule
 * Webrfront for XLRstats for B3 (www.bigbrotherbot.com)
 * (c) 2004-2008 www.xlr8or.com (mailto:xlr8or@xlr8or.com)
 ***************************************************************************/

/***************************************************************************
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/

//*******************
// Global config
//*******************

// Database login info

$db_host = "localhost";
$db_user = "stats";
$db_pass = "xxx";
$db_db = "stats";

// What game? (urt, cod1, coduo, cod2, cod4, codwaw, wop)
$game = "urt";
$public_ip = "192.168.1.167:27960";
// This is the path where B3 stores the status.xml file. May be an absolute path or an URL. (Use forward slashes / only!)
$b3_status_url = "http://192.168.1.167/xlrstats/";

// URL to my website, make empty if XLRstats is standalone.
$mysiteurl = "www.webopensource.org";        // URL (without the http:// part!) -> "" if you dont want a link to a homepage included
$mysitelinkname = "webopensource.org";      // Short name that appears in navigation to describe the link back to your site
$template = "xlrstats";

// Use signature module? --> You must have php version 4.3.2 or newer with php4-gd extension installed!
$sig = 0;

// Title of the statistics pages
$statstitle = "XLRstats, real time gamestats!";

// Number of players/maps/weapons in mainpage top lists
$toplist_max = 25;
$maplist_max = 13;
$weaplist_max = 13;
$separatorline = 1; //Draw a 1 pixel separator line in the toplist between rows? 0 = nope, 1 = yep.

// Nubmer of players in block.php an inclusion file for websites.
$toplist_block = 5;
// number of characters in username (block) before breaking off.
$user_length = 14;

// minimum amount of kills or rounds (which ever comes first) before a player is included in the mainpage player statistics and awards...
$minkills = 1000; //10 //250;
$minrounds = 50; //14 //15;

$ShowRatioGraph = 1;
// For the ratio bar
$MaxKillRatio = 0;
//number of days a player is still displayed if he hasn't played anymore.
$maxdays = 14;

// Minimum kills or rounds (which ever comes first) before a player is displayed on map-page
$map_minkills = 100;
$map_minrounds = 20;

// Minimum kills before a player is displayed on weapon-page
$weap_minkills = 25;

// Minimum grouplevel to hide aliases on playerpages, this will show aliases for players with a lower level. Disable aliases by setting it to 0
$aliashide_level = 2;

// Limit playerspecific stats for unregistered players
$limitplayerstats = 1;

// Number of worst enemies in personal playerpages
$enemies_max = 13;

// Do you want a Clan search filter on the index page? (0 = nope, 1 = yep)
$showclansearch = 1;

// Do you want to display times for your local timezone? (0 = no, just use GMT; 1 = yes)
$use_localtime = 1;

// Do you want to have current player list (0 no, 1 yes) //Anubis
$useppllist = 1;
// Setting the next var to 1 will make playerlist not show teaminfo, just the online players (circumventing the cod4 teambug)
$pll_noteams = 0;

//// Show the stylepicker (0 disables, options are: left, right, footer)
$stylepicker = "right";

// Use GeoIP information in playerpages? (if the files do not exist it will be automatically disabled)
// Read the README.TXT for more info.
$geoip_path = "/path/to/your/geoIP/";
// Windows users: use forward slashes like this:
// $geoip_path = "C:/path/to/your/geoIP/";

// setting to 0 will disable debug phpinfo
$debug = 1;

//********************
// Table names
//********************

// B3 tables
$t['b3_clients'] = "clients";
$t['b3_groups'] = "groups";
$t['b3_aliases'] = "aliases";
$t['b3_penalties'] = "penalties";
$t['b3_ctime'] = "ctime";

//stats tables
$t['players'] = "xlr_playerstats";
$t['weapons'] = "xlr_weaponstats";
$t['maps'] = "xlr_mapstats";
$t['bodyparts'] = "xlr_bodyparts";
$t['opponents'] = "xlr_opponents";
$t['weaponusage'] = "xlr_weaponusage";
$t['playerbody'] = "xlr_playerbody";
$t['playermaps'] = "xlr_playermaps";

//********************
// leave the next lines alone please
//********************
include('ranks.php');
include('awards.php');
include($game.'.php');
?>
un aiutino?? :-[

ovviamente se ne conoscete altri posso usarne un altro.
Ultima modifica di nydardosh il lunedì 5 gennaio 2009, 15:26, modificato 1 volta in totale.
Lenovo Z500, Intel Core i7 2.2Ghz, 8Gb RAM, nVidia gm740 1Gb Windows 8.1 Ubuntu 14.04 - HP Proliant DL 380 G3 Debian (ormai parcheggiato) - RaspberryPi model B Raspbian
mikelonefiga
Prode Principiante
Messaggi: 1
Iscrizione: sabato 6 giugno 2009, 16:12

[Audio] Re: xlr stats per urban terror

Messaggio da mikelonefiga »

nydardosh ha scritto: salve a tutti, ho un server per urban terror, vorrei installare un ""sito in php"" ( non sapevo come chiamarlo ;D) per vedere le statistiche. tra i pochi esistenti ho trovato xlrstats, in php e con mysl, ho messo tutto sul server, configurato il file config.php ma niente
ecco il file:

Codice: Seleziona tutto

<?php
/***************************************************************************
 * Xlrstats Webmodule
 * Webrfront for XLRstats for B3 (www.bigbrotherbot.com)
 * (c) 2004-2008 www.xlr8or.com (mailto:xlr8or@xlr8or.com)
 ***************************************************************************/

/***************************************************************************
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  http://www.gnu.org/copyleft/gpl.html
 ***************************************************************************/

//*******************
// Global config
//*******************

// Database login info

$db_host = "localhost";
$db_user = "stats";
$db_pass = "xxx";
$db_db = "stats";

// What game? (urt, cod1, coduo, cod2, cod4, codwaw, wop)
$game = "urt";
$public_ip = "192.168.1.167:27960";
// This is the path where B3 stores the status.xml file. May be an absolute path or an URL. (Use forward slashes / only!)
$b3_status_url = "http://192.168.1.167/xlrstats/";

// URL to my website, make empty if XLRstats is standalone.
$mysiteurl = "www.webopensource.org";        // URL (without the http:// part!) -> "" if you dont want a link to a homepage included
$mysitelinkname = "webopensource.org";      // Short name that appears in navigation to describe the link back to your site
$template = "xlrstats";

// Use signature module? --> You must have php version 4.3.2 or newer with php4-gd extension installed!
$sig = 0;

// Title of the statistics pages
$statstitle = "XLRstats, real time gamestats!";

// Number of players/maps/weapons in mainpage top lists
$toplist_max = 25;
$maplist_max = 13;
$weaplist_max = 13;
$separatorline = 1; //Draw a 1 pixel separator line in the toplist between rows? 0 = nope, 1 = yep.

// Nubmer of players in block.php an inclusion file for websites.
$toplist_block = 5;
// number of characters in username (block) before breaking off.
$user_length = 14;

// minimum amount of kills or rounds (which ever comes first) before a player is included in the mainpage player statistics and awards...
$minkills = 1000; //10 //250;
$minrounds = 50; //14 //15;

$ShowRatioGraph = 1;
// For the ratio bar
$MaxKillRatio = 0;
//number of days a player is still displayed if he hasn't played anymore.
$maxdays = 14;

// Minimum kills or rounds (which ever comes first) before a player is displayed on map-page
$map_minkills = 100;
$map_minrounds = 20;

// Minimum kills before a player is displayed on weapon-page
$weap_minkills = 25;

// Minimum grouplevel to hide aliases on playerpages, this will show aliases for players with a lower level. Disable aliases by setting it to 0
$aliashide_level = 2;

// Limit playerspecific stats for unregistered players
$limitplayerstats = 1;

// Number of worst enemies in personal playerpages
$enemies_max = 13;

// Do you want a Clan search filter on the index page? (0 = nope, 1 = yep)
$showclansearch = 1;

// Do you want to display times for your local timezone? (0 = no, just use GMT; 1 = yes)
$use_localtime = 1;

// Do you want to have current player list (0 no, 1 yes) //Anubis
$useppllist = 1;
// Setting the next var to 1 will make playerlist not show teaminfo, just the online players (circumventing the cod4 teambug)
$pll_noteams = 0;

//// Show the stylepicker (0 disables, options are: left, right, footer)
$stylepicker = "right";

// Use GeoIP information in playerpages? (if the files do not exist it will be automatically disabled)
// Read the README.TXT for more info.
$geoip_path = "/path/to/your/geoIP/";
// Windows users: use forward slashes like this:
// $geoip_path = "C:/path/to/your/geoIP/";

// setting to 0 will disable debug phpinfo
$debug = 1;

//********************
// Table names
//********************

// B3 tables
$t['b3_clients'] = "clients";
$t['b3_groups'] = "groups";
$t['b3_aliases'] = "aliases";
$t['b3_penalties'] = "penalties";
$t['b3_ctime'] = "ctime";

//stats tables
$t['players'] = "xlr_playerstats";
$t['weapons'] = "xlr_weaponstats";
$t['maps'] = "xlr_mapstats";
$t['bodyparts'] = "xlr_bodyparts";
$t['opponents'] = "xlr_opponents";
$t['weaponusage'] = "xlr_weaponusage";
$t['playerbody'] = "xlr_playerbody";
$t['playermaps'] = "xlr_playermaps";

//********************
// leave the next lines alone please
//********************
include('ranks.php');
include('awards.php');
include($game.'.php');
?>
un aiutino?? :-[

ovviamente se ne conoscete altri posso usarne un altro.
s.felli
Prode Principiante
Messaggi: 1
Iscrizione: martedì 16 giugno 2009, 16:19

Re: xlr stats per urban terror

Messaggio da s.felli »

Puoi provare ad usare lo script che ho fatto:

http://sites.google.com/site/sfelli/puzzola-stats

E' scritto in PHP e va eseguito da terminale (vedi le istruzioni sul sito). L'ho testato su ubuntu 9.04 dove hosto anche il server di gioco. Prende il file di log come input e produce in output un file html. E' molto semplice e senza pretese (non ha interazione con db) pero' e' comodo se vuoi un riassunto veloce della sessione di gioco della serata.
Se lo provi fammi sapere che ne pensi.


PS: entro questa settimana mettero' online la versione 0.4 ...
Ultima modifica di s.felli il martedì 16 giugno 2009, 16:51, modificato 1 volta in totale.
Scrivi risposta

Ritorna a “Videogiochi”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti