News:

Come Chat with us live! Learn how HERE!

Main Menu

Players statistics

Started by Commanche, August 06, 2006, 10:34:39 AM

Commanche

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

Greudin

I m interested by this kind of script, my .tremulous/base/games.log is getting big :)

Commanche

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 :-(

Caveman

Take a look at sourceforge and search for Quake & stat there are a few.

Commanche

So, how enable server loging on debian?

Commanche

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

Dustin

I'm sure that redirects the output of screen to the file, not the output of tremded.

Caveman

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"

Commanche

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...

Caveman

then try creating the screen.session by hand and see if the log is created :)

Commanche

if i execute server without screen, logging is OK

so, problem is only with screen.

Caveman

Then you have the solution .)
Edit the screen.conf to autostart a batch that starts your server with logging and you're set.

David

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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Commanche

Yes, logging is OK now  :)
Thanx

David: ok, i wait for your script

Caveman

nice David.
Will it be sql aware?

David

Quote from: Cavemannice 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.