Tremulous Forum

General => General Discussion => Topic started by: Commanche on August 06, 2006, 10:34:39 am

Title: Players statistics
Post by: Commanche on August 06, 2006, 10:34:39 am
I want to store all statistics of all players and show it on my web page.  
How can i do it?
Exists some scripts or howtos?

Thanx
Title: Players statistics
Post by: Greudin on August 06, 2006, 11:58:34 am
I m interested by this kind of script, my .tremulous/base/games.log is getting big :)
Title: Players statistics
Post by: Commanche on August 06, 2006, 12:16:04 pm
My server is not creating a log. whats wrong?

My server starting command is ./tremded.x86 >./serverlog.log +set vm_game 0 +set net_ip 88.100.219.133 +com_hunkmegs 96 +set dedicated 2 +exec server.cfg +map atcs

but serverlog.log is empty :-(
Title: Players statistics
Post by: Caveman on August 06, 2006, 12:16:26 pm
Take a look at sourceforge and search for Quake & stat there are a few.
Title: Players statistics
Post by: Commanche on August 06, 2006, 04:44:25 pm
So, how enable server loging on debian?
Title: Players statistics
Post by: Commanche on August 07, 2006, 07:01:38 am
I tried this, but log soubor is still empty :-(
  screen -dmS tremulous ./tremded.x86 +set vm_game 0 +set net_ip 88.100.219.133 +com_hunkmegs 96 +set dedicated 2 +exec server.cfg +map atcs 2>&1 > ./serverlog.log
Title: Players statistics
Post by: Dustin on August 07, 2006, 08:27:38 am
I'm sure that redirects the output of screen to the file, not the output of tremded.
Title: Players statistics
Post by: Caveman on August 07, 2006, 08:37:02 am
hrhr, to get the logging you need to change the order...

screen -dmS tremulous "./tremded.x86 +set vm_game 0 +set net_ip 88.100.219.133 +com_hunkmegs 96 +set dedicated 2 +exec server.cfg +map atcs >> LOG_FILE 2>&1"
Title: Players statistics
Post by: Commanche on August 07, 2006, 08:51:31 am
ee,
this line not working, server doesn't start
i tried without quotation mark:
screen -dmS tremulous ./tremded.x86 +set vm_game 0 +set net_ip 88.100.219.133 +com_hunkmegs 96 +set dedicated 2 +exec server.cfg +map atcs >> LOG_FILE 2>&1

server starts, logfile created, but still empty...
Title: Players statistics
Post by: Caveman on August 07, 2006, 08:56:19 am
then try creating the screen.session by hand and see if the log is created :)
Title: Players statistics
Post by: Commanche on August 07, 2006, 09:40:57 am
if i execute server without screen, logging is OK

so, problem is only with screen.
Title: Players statistics
Post by: Caveman on August 07, 2006, 09:46:08 am
Then you have the solution .)
Edit the screen.conf to autostart a batch that starts your server with logging and you're set.
Title: Players statistics
Post by: David on August 07, 2006, 10:01:05 am
I am curently making a thing for the }MG{ server that will take to log files and draw graphs of how people are inproving etc.  When its done i'll GPL it and stick it on the fourm.
Title: Players statistics
Post by: Commanche on August 07, 2006, 11:06:56 am
Yes, logging is OK now  :)
Thanx

David: ok, i wait for your script
Title: Players statistics
Post by: Caveman on August 07, 2006, 12:19:25 pm
nice David.
Will it be sql aware?
Title: Players statistics
Post by: David on August 07, 2006, 02:04:33 pm
Quote from: "Caveman"
nice David.
Will it be sql aware?


no, it uses text files to store data. 1 global one, and 1 for each player.
its not designed for loads of people, mainly for }MG{
also it ignores anyone not using TJW's build. it needs the unique IDs that adds.