ETStats


(cynric) #1

I made a little tool in Java to generate a summary of the stat-files.

command line only, no fancy gui, but quiet simple to use (you only have to change some paths to match your system setup)

Demo output and download available here: http://marvin.ask.fh-furtwangen.de/~hetzel/etstats/

comments, suggestions, bug reports are welcome

ok, now go ahead and tell me how bad my stats are :smiley:


(BlackDeath) #2

You gotta nice program there, but i would suggest putting in a kill/death ratio, a kill/minute ration, and if you want, average kills per map.

The headshot ratio is nice, i like that :smiley:


(Cosmos) #3

Very nice tool, that will come in handy. Good work. :smiley:


(cynric) #4

thx for the quick reply

efficiency (kill/death ratio) is on the todo list

i have foud no information about the time in the stat files, so i can’t do statistics per minute or time played (well, i could take every game as 20 minutes or so, but i think it would be way off so i didn’t include them)

same goes for campaign info - playing 10 map campaigns will give you better xp/game than stopwatch or single objective
i can only guess by stat-generation time and all xp greater than the game before, but even that is not included yet

average kills/deaths per map is included (Player Statistics - Damage … those Fatal columns)
i need to find a better title though, help would be appreciated


(Cosmos) #5

I cannot seem to get this tool to work but Im sure it does Ive seen your demo example.

“Exception in thread “main” java.lang.NoClassDefFoundError: ETStats”
Press any key to continue . . .


(cynric) #6

sounds like you are not in the directory where the .class files are located, when starting it

how do you try to run it?

just doubleclicking on etstats.cmd should work fine

or, if you start it from a command window, make sure to change to the drive and directory where you extracted the files


(Cosmos) #7

I run it from the folder which I extracted all the files.
My .cmd file looks like this:

@ECHO OFF
REM replace your path to java.exe, source and destination 

below
REM Syntax is
REM <path to java.exe> ETStats <path to stat 

dir> <path where the output should be written>
C:\Progra~1\Java\j2re1.4.2\bin\java.exe ETStats 

"C:\Progra~1\Wolfen~1\etmain\stats" "C:\Stats"
pause

(cynric) #8

seems to be ok (strange wrapping though)

the error suggests, the java.exe can’t even find the ETStats.class file, which should be in the same directory as the .cmd file

you can try to create a shortcut to the .cmd file
make sure its a shortcut, not a copy of the cmd file (at least my windows xp tends to copy .cmd files instead)
right click, properties
behind “Start in:” should be the directory where the .class files are located


(Cosmos) #9

The wrapping is not like what I pasted on here, its all together.
Ok I made a shortcut and it still doesnt load up.
I didn’t understand this part:
“behind “Start in:” should be the directory where the .class files are located”


(cynric) #10

ok, forget that … tried it here, doesn’t make a difference

found one last thing to test

change the line where you replaced those paths to something like that:

C:\Progra~1\Java\j2re1.4.2\bin\java.exe -cp “Y:\Projekte\ETStats” ETStats “C:\Progra~1\Wolfen~1\etmain\stats” “C:\Stats”

replace “Y:\Projekte\ETStats” with the path where you extracted those files

<path to java.exe> -cp <path to .class files> ETStats <path to ET stats-dir> <path to put html output>

if that still doesn’t work, im out of ideas, sorry


(Cosmos) #11

I have done what you have said in your last post, and now something new has occured, check the pic below:

Current Code:

@ECHO OFF
REM replace your path to java.exe, source and destination below
REM Syntax is
REM <path to java.exe> -cp <path to .class files> ETStats <path to stats-dir> <path to put html output>
C:\Progra~1\Java\j2re1.4.2\bin\java.exe -cp "C:\ETStats" ETStats "C:\Progra~1\Wolfen~1\etmain\stats" "C:\Stats"
pause

(cynric) #12

first thing: thanks for your patience in testing

ok … i think i know whats causing this, at least i have a few guesses

looks like java doesn’t understand those short names (those ending with ~1)

try replacing these paths with the long version (you can copy+paste them from the location/address bar in windows explorer

so instead of “C:\Progra~1\Wolfen~1\etmain\stats” type “C:\Program Files\Wolfenstein - Enemy Territory\etmain\stats”
you have to include the " because of the spaces in the directory names

should be the only one you need to change

and make sure, “C:\Stats” does exist or else you’ll get the next error after fixing this one


note to self: don’t ever again release code without proper exception handling :bash:


(Cosmos) #13

Thanks, it now works. :cool:
At least you know what other peoples problems might be now, no problem in testing it. :smiley:

The full code that works is: :bump:

@ECHO OFF
REM replace your path to java.exe, source and destination below
REM Syntax is
REM <path to java.exe> ETStats <path to stat dir> <path where the output should be written>
C:\Progra~1\Java\j2re1.4.2\bin\java.exe -cp "C:\ETStats" ETStats "C:\Program Files\Wolfenstein - Enemy Territory\etmain\stats" "C:\Stats"
pause

And the stats are here: :drink:
http://v.servegame.com/


(cynric) #14

happy to hear that :clap:

added a lot of work on my todo list :smiley:

btw. anyone remember those awards from speedstats (way back in time when qwcl and team fortress were the single most time consuming thing to do) ?


(Cosmos) #15

It’s a very nice tool, feel free to contact me if you need anything testing.
I have come across a minor problem, I checked my stats before I played a game. I had 23 games played then I went to update the stats again as I just played another game and it hasn’t updated to 24 games.

How is a “game” recognised? Is it a full campaign or is it how long you play the game for?


(cynric) #16

it only counts games, where you at least got rank 1 in in one skill to prevent games where you just joined seconds before it ends or testing sessions to interfere with the stats

and you have to stay in that game to the end, since et only writes stat files at the end of each round


(Cosmos) #17

Is a game considered one round?
-I have just played 2 full campaigns and it still says 23 games.


(Ifurita) #18

cool. got it to work. Any way you can make it select multiple stats folders (e.g., vanilla ET, shrub, and ET_Tourneymod)? Thanks


(Cosmos) #19

My mistake, the games played hasn’t been updated because I have been playing on shrub servers. :bash:


(cynric) #20

should be in the next version

i need to know, where those additional folders are located, don’t have any of them here

should be like this?
…\Wolfenstein - Enemy Territory\etmain\stats
…\Wolfenstein - Enemy Territory\shrubmod\stats