TrueCombat
http://truecombatelite.com/forums/

Userinfo entry in TC:E 0.49b server log file
http://truecombatelite.com/forums/viewtopic.php?f=39&t=1754
Page 1 of 1

Author:  simons [ Fri Jun 19, 2009 10:44 am ]
Post subject:  Userinfo entry in TC:E 0.49b server log file

Hi everyone!

This is my first post, so firstly I want to say hello to all TC:E players and apologize to you for my poor english :-)

I plan to write some players GUID based server statistics with PHP and I have some problems with server log files. My server config includes:
Code:
set g_log "tce-server.log"
set g_logsync 0
set logfile 2


The problem is, that tce-server.log missing some valueable information like: player's IP, GUID etc. The example entry from this log file looks like this:
Code:
5:54 ClientUserinfoChanged: 2 n\simons\t\3\c\0\r\0\m\0000000\s\0000000\dn\\dr\0\w\0\lw\0\sw\0\mu\0\ref\0


I also checked the etconsole.log file and I noticed that there is an entry called Userinfo, which includes player's IP and GUID:
Code:
Userinfo: \g_password\none\cl_guid\guid-xxx-xxx-xxx\cl_punkbuster\1\cl_anonymous\0\snaps\20\rate\25000\name\simons\cl_wwwDownload\1\protocol\84\qport\233\challenge\212265017\ip\xxx.xxx.xxx.xxx:27960


I wonder whether there is a way to have this entry in tce-server.log file? Maybe I set wrong values for logs in server config file?

PS: I know that there are VSP statistics, but they look terrible.

Thanks in advance!
simons

Author:  merlin1991 [ Fri Jun 19, 2009 11:03 am ]
Post subject: 

hey

I'm working on a somehow similar poject, and I can tell ya, you can't get the userinfo --> the etkey/ip to the "stats logfile". you have to go with the etconsole.log

btw the lines with Userinfo: bla
refer to the last ClientConnect: NUMBER line

Author:  simons [ Fri Jun 19, 2009 11:29 am ]
Post subject: 

Thanks for your reply, merlin1991!

I also considered this solution, but it has one major weak point - both log files must be synchronized. The etconsole.log doesn't have a timestamp at the beginning of each entry, like it is in server log file. So if these files were not created at the same time, it's hard to get obtain relevant information. When server shuts down and starts up again, the etconsole.log file is overwritten, otherwise than the server log file. :(

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/