Author Topic: Players statistics  (Read 5278 times)

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« 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

Greudin

  • Posts: 131
  • Turrets: +1/-1
    • http://tremulous.bricosoft.com
Players statistics
« Reply #1 on: August 06, 2006, 11:58:34 am »
I m interested by this kind of script, my .tremulous/base/games.log is getting big :)
url=http://tremulous.bricosoft.com][/url]

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #2 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 :-(

Caveman

  • Guest
Players statistics
« Reply #3 on: August 06, 2006, 12:16:26 pm »
Take a look at sourceforge and search for Quake & stat there are a few.

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #4 on: August 06, 2006, 04:44:25 pm »
So, how enable server loging on debian?

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #5 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

Dustin

  • Posts: 111
  • Turrets: +0/-0
    • http://alaric.ath.cx/~dustin/cms/index.php
Players statistics
« Reply #6 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.

Caveman

  • Guest
Players statistics
« Reply #7 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"

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #8 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...

Caveman

  • Guest
Players statistics
« Reply #9 on: August 07, 2006, 08:56:19 am »
then try creating the screen.session by hand and see if the log is created :)

Commanche

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #10 on: August 07, 2006, 09:40:57 am »
if i execute server without screen, logging is OK

so, problem is only with screen.

Caveman

  • Guest
Players statistics
« Reply #11 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.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Players statistics
« Reply #12 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.
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

  • Posts: 7
  • Turrets: +0/-0
    • http://www.vysokemyto.info
Players statistics
« Reply #13 on: August 07, 2006, 11:06:56 am »
Yes, logging is OK now  :)
Thanx

David: ok, i wait for your script

Caveman

  • Guest
Players statistics
« Reply #14 on: August 07, 2006, 12:19:25 pm »
nice David.
Will it be sql aware?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Players statistics
« Reply #15 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.
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.