View Full Version : CoD4 Stats Retriveal?
DumpsterDivingDave
11-09-2007, 12:25 PM
Does anyone know if there is a method to pull stats yet? Not a stats site, but a method to query the stats server directly as in BF2 and such and deploy it using php or something similar. Looked over gamespy and didnt find anything... also google didn't turn up any results.
EFF_HART
11-27-2007, 11:22 PM
So far .. meaning as far as i know there is no XML Feed for COD4 yet. From what i have read all your stats are saved in your player profile on your PC ... there is no global server so to speak. I am currently looking for the same thing you are to develope a block for my site.
-Hart
tritonb
11-29-2007, 08:57 AM
Everytime you kill/or get killed, it is registered in a file on the server, the weapon they used and the area they hit you , etc. Stats can be established for people that play on your server in this fashion.
There are client programs out there that will pull these files from your gaming server (in case of rented server) and then sift through the information and pull together the stats, and then create web pages and also publish those web pages to a remote web site. They were geared towards COD2 but some are working on modding them so they work for COD4.
Any updates on progress of programs like this??? I'm at work otherwise I could give you the name of the one I downloaded that supposedly they are starting to fix for COD4.
Bedhead
11-29-2007, 10:56 AM
Statsgen (http://www.statsgen.co.uk/) supports COD4 but if you have a popular server your log file will be huge and it'll take quite a long time to churn through plus it generates a slew of individual HTML files but it does what it's set out to do and it's easy to use. Here's an example from one of my servers: http://www.teamnub.net/stats/cod4/chicago/
There is a guy that is working on getting his stats script which uses PHP and MySQL tuned for COD4. Looks much more efficient.
bump
Is statsgen the only program out there to get stats from your servers to your website??
thanks in advance
Number7
01-02-2008, 06:33 PM
Statsgen (or any other app) won't be gathering much data from the server log file on this game.
The only entries to the log are join/disconnect/damage/kill .. No objective logging at all.
we have something running on our site not sure what it is you would need to ask DrunkenDave over at our site
http://www.drunkenl2.com/dave/stats/index.html
Ghost-Ryder
01-02-2008, 07:57 PM
It is the same thing.
I used to use it but it is damn slow.
they said they fixed it so it compiles faster.
I am still waiting for Ultrastads.
OldDog
01-03-2008, 08:20 AM
Hebbian, Delerium, and crew are working on a CoD4 version of Stativore (formerly ServerStat), which I have been using for several years now. Not sure where their efforts are as yet, but they've been asking for log files to do testing...the larger, the better. There is an alpha version ready (use at your own risk...I'm implementing it this weekend) here: http://www.stativore.com/Forum/tabid/53/forumid/1/threadid/715/scope/posts/Default.aspx. Especially if you have a large log file. Please note that you need to have the current version of Stativore first, as this Alpha release only contains the .exe.
Again, I really like this software and the display, which is why I've waited for the CoD4 version. See the CoD2/CoD:UO version of the output at http://www.olddogvt.net/Server-Stats2.
Thanks OldDog! I have used their program for cod2 and liked it. Will check it out.
DumpsterDivingDave
01-04-2008, 11:26 PM
Does anyone know how the stats files (local files) are encoded? Just a bunch of gibberish, even in a hex editor. I was hoping there would be a way to parse it with php...
Toppers
01-05-2008, 06:51 AM
Statsgen will not work with linux servers, you have to pull the logs manually and convrthtem on your pc to sort them out rather than the other way:salute:
DumpsterDivingDave
01-05-2008, 09:48 AM
Well, I'm looking to take the file on the client PC, not the server, and parse through that. I believe that would contain all of the stats, not just the one for a specific server... at least I hope. I haven't really had time to play with it YET, but when i opened it up it was just a bunch of jibberish, and didn't even make any real sense in a hex editor either...
OldDog
01-05-2008, 04:26 PM
Please note that you need to have the current version of Stativore first, as this Alpha release only contains the .exe.
Quoting myself...how sad...;). Anyway, I installed the Alpha that's out for Stativore, and my statement, above, is wrong. The new code is completely standalone...so, you can download it, and run right away. I ran it straight from my home PC, and uploaded the resulting files to my web server. See the output here: http://www.olddogvt.net/Stativore. It's missing some stuff, but the stats are coming out ok. I had a 200MB log file, and it took about 40 minutes to compile the stats.
EFF_HART
01-05-2008, 07:12 PM
This pulls the stats from your PC? So how often do you have to add the files or does it work everytime you login?
You can see what my clan has here http://www.elitefightingforce.com/ we use the xml feed from cod4tracker.com. So far it works out pretty good. Only thing is not all servers are tracked.
-Hart
OldDog
01-05-2008, 07:26 PM
No, it pulls from the server log file, not the PC. It RUNS on my PC (although I also have a server here at home that, once the scheduler is working, I'll enable a task t o pull the log daily, like I did with the old version).
I looked at the CodTracker method, and didn't like it because it wasn't detailed enough. That was the reason I stayed with ServerStat (now Stativore) from the original CoD on. Eventually, the CoD4 version will look like this: http://www.olddogvt.net/Server-Stats2. This Alpha release is just the beginning.
I ended up using statsgen...
http://www.rowclan.net/modules.php?name=cod4stats
OldDog
01-06-2008, 09:11 AM
Almost went the Statsgen route myself...a little tired of waiting, actually, but now that an Alpha of Stativore is available, I can wait a bit longer...;)
Post up a link when you get yours done OldDog. I might switch over to it.
OldDog
01-07-2008, 02:56 PM
Post up a link when you get yours done OldDog. I might switch over to it.
I have the Alpha running...there's no images (maps, weapons, etc.) or awards yet, but the stats are coming in fine...see the result at http://www.olddogvt.net/Stativore.
darkdata
09-17-2008, 01:03 AM
Have you guys tried the beta version of PsychoStats (http://www.psychostats.com/) he implemented cod4 into his stats program ?
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.