Hey there everyone,
Well, like I said in my previous post, I like Team Fortress 2 (”TF2″). There is a stats program out there right now called HLStatsX at www.hlstatsx.com. The problem with this is that it costs five euros a month to use. I not only don’t want to pay for it, but I don’t want to outsource it. This software records stuff like who kills who, with what, how often. Your favorite class, and what not. It runs off of the server logs which all TF2 servers give, so, I decided, what if I created my own. This is all fine and good, except for when I actually opened the server logs. It looked a little something like this:
L 01/27/2008 – 21:43:43: “Programertobe<7><STEAM_0:1:7752907><Red>” killed “Bot05<8><BOT><Blue>” with “shotgun_hwg” (attacker_position “573 12 64″) (victim_position “739 141 64″)
L 01/27/2008 – 21:44:09: “Programertobe<7><STEAM_0:1:7752907><Red>” killed “Bot05<8><BOT><Blue>” with “fists” (attacker_position “691 119 64″) (victim_position “692 167 64″)
L 01/27/2008 – 21:44:13: “Programertobe<7><STEAM_0:1:7752907><Red>” changed role to “scout”
So, I’ve been working on writing my scripts to just pull out the relevant information, which has been a pain, but I’ve made some progress. I want to compile all of the information to a web interface so players can look at their rankings, and stats themselves, so the information has to be in a readable form. I’ve included with this post, a copy of my current source code and server logs, so you can see what I’ve been doing and hopefully where I plan to go with it.
http://tech-works.info/stats.txt
http://tech-works.info/logs.txt