ETStats


(Cosmos) #21

C:\Program Files\Wolfenstein - Enemy Territory\shrubet\stats
C:\Program Files\Wolfenstein - Enemy Territory\osp\stats
C:\Program Files\Wolfenstein - Enemy Territory\etpromdc\stats

That’s all I have additional to the default stats folder:
C:\Program Files\Wolfenstein - Enemy Territory\etmain\stats

P.S. I got loads of stats in the shrub folder, I am looking forward to adding them to the my stats page.
-Does one game count as a campaign or a full game until the end of a round?


(cynric) #22

should be no problem to add those paths, but could take some days

i have to move this week … computer is already at the new place, but nothing else :frowning:

ET writes stat files at the end of every game (=map) … and i include all of them (except those where you don’t get at least lvl 1 in a skill)

so when you finish the map as Schutze/Private, you don’t get stats … same if you quit the game before the map is won/lost


(Cosmos) #23

so when you finish the map as Schutze/Private, you don’t get stats … same if you quit the game before the map is won/lost

Ok thats explained a lot, thanks.
Keep me updated on any improvements to the stats program. :cool:


(Cosmos) #24

If you want Shrub stats to be compiled you can use 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 -cp "C:\ETStats" ETStats 

"C:\Program Files\Wolfenstein - Enemy Territory\shrubet\stats" 

"C:\Stats2"
pause

I hope you find a way to make all the stats from all the mods in one html file.

Standard Stats:
http://v.servegame.com

Shrub Stats:
http://v.servegame.com/shrub

OSP:
http://v.servegame.com/osp

ETPro (Bani?)
http://v.servegame.com/etpro

Also, you must think of other mod names. People might call shrubet simply shrub then it will be in a different folder.


(Cosmos) #25

Ah, on some servers they automatically put you on major rank or something. :banghead:


(Cosmos) #26

Just tried the beta 0.5 and this is what I get:

ETStats v0.5 beta by cynric
analyzing stat files ...
stats found: "C:\Program Files\Wolfenstein - Enemy Territory\etmain\stats" ... 2
5 files read
stats found: "C:\Program Files\Wolfenstein - Enemy Territory\osp\stats" ... 2 fi
les read
stats found: "C:\Program Files\Wolfenstein - Enemy Territory\shrubet\stats" ...
Exception in thread "main" java.lang.NullPointerException
        at StatsList.readStatsDir(StatsList.java:46)
        at StatsList.searchStatDir(StatsList.java:68)
        at StatsList.readStats(StatsList.java:36)
        at ETStats.main(ETStats.java:25)
Press any key to continue . . .

My .cmd file is set like this:

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

(_NeT_WalBanger) #27

Hi, im sorry but i will probably REALLY Pi$$ you off now, I dont mean to but im a bit thick on these things…

I CANT GET THIS TO WORK (But i dont know anything about it)

ok this is what i have done…

  1. downloaded the Beta V5
  2. extracted it to Desktop
  3. Emmm edited the etstats.cmd in notepad to say
    @ECHO OFF
    REM replace your path to java.exe, source and destination below
    REM Syntax is
    REM <path to java.exe> -cp . ETStats <path to Enemy Territory> <path where the output should be written>
    C:\Java\j2re1.4.0_01\bin\java.exe -cp . ETStats “C:\Wolfenstein - Enemy Territory” “C:\ET”
    pause
  4. made a stats folder in etmain AND the shrubs folder
  5. Clicked the etstates and a DOS window opens and does NOTHING else :’(

Now i had not played any games SINCE i made the folders and i dont if you have to save the stats or how or if its done automatically etc
I REALLY DONT KNOW ANYTHING…

So I know im doing something/everything wrong, but i need to know what to do step by step from the begining as if you are talking to a dumby… So if you could spend a few minutes to explain to me how to get this working please…

I have made the stats folders in:-
C:\Program Files\Wolfenstein - Enemy Territory\stats
C:\Program Files\Wolfenstein - Enemy Territory\shrubet\stats

I really look forward to this as it looks really good and i love stats


(cynric) #28

you don’t have to create those stats-folders, only the destination folder (in your case C:\ET

the stats-files (and necessary directory structure) are created when you finish a map in et with auto action set to write stats

easy way to do this:
start ET, go to Options/Game
set Auto-Action to something including “Stats Dump” (every click changes the entry to any combination of Demo, Screenshot and Stats Dump … or nothing at all which is the default i guess)

after playing at least one game, ET then creates the stats folder in
etmain (vanilla ET without mod) or the mod subfolder (shrubet, etpro, …)

format is <mod or etmain>\stats&lt;date>&lt;time>.txt

it should look like this:
etmain\stats\2003.08.23\000049.txt
etmain\stats\2003.08.23\001719.txt

hope this helps

P.S.: if anyone could translate this into proper english :smiley: , i’ll include it in the readme


(alea35) #29

Hmmm…cant get this to work. this is what my file looks like:

@ECHO OFF
REM replace your path to java.exe, source and destination below
REM Syntax is
REM <java.exe> ETStats <path to stat dir> <path where the output should be written>
“C:\Program Files\JavaSoft\JRE\1.3.1\bin\java.exe” ETStats “G:\Wolfenstein - Enemy Territory\etmain\stats” “G:\Downloads\etstats”
pause

Is anything wrong in that? It gives me 3 lines of errors


(cynric) #30

posting the error messages would’ve been nice

from the readme.txt:
Requirements

  • Java Runtime Environment / JDK v1.4 or later

looks like you have 1.3.1


(alea35) #31

oh… sorry about that. I’ll go get that and try it out. How do I give you the error? like how do i copy from dos?


(Cosmos) #32

You can do a screenshot of the screen (press print screen).
In dos (if running xp as far as I know) right click, choose copy and paste the code here.


(_NeT_WalBanger) #33

ok 1st off thanks for the Time you have spent replying…

Now i still cant get this working :’(
You havent Written it in REALLY REALLY easy Language, i think you think i know somethink about computers :wink:

BUT i think i know whats wrong… I need JDK v1.4…
But i guess i would already of had it with Win XP but i guess not? also the fact that the DOS window opened when i clicked it (i thought this was IT!!!), But I guess thats not it :)… so im downloading an 80+ meg file :confused: now and then ill see if it works :wink: (if you do need this maybe think about adding a link on the read me doc??)

When i get this Working I’m going to Write an EASY guide to follow so thicko’s like me can get it working ;)… i have started it but cant finish it yet as i dont know untill i have downloaded this program :wink:
So far:-

Step 1
Download “JDK v1.4” if you do not already have (you can download this from http://java.sun.com/j2se/downloads.html) NOTE: older version Wont work. (you dont get any version of this with windows etc)

Step 2
start ET, Click “Options” then “Game”
Go down to “Miscellaneous” and click “Auto-Action” until it changes from “None” to “Stats Dump” (every click changes the entry to any combination of Demo, Screenshot and Stats Dump)

Step 3
Make a folder Where the program will place the FINISHED stats page i made mine in:.
C:\Program Files\Wolfenstein - Enemy Territory\Final Stats


(alea35) #34

THis is what my error screen looks like:

ETStats v0.4 by cynric
analyzing stat files …
0 files read, generating html-stats …
Exception in thread “main” java.lang.ArithmeticException: / by zero
at OutputHTML.printPlayerStats(OutputHTML.java:225)
at OutputHTML.generate(OutputHTML.java:40)
at ETStats.main(ETStats.java:28)
Press any key to continue . . .

do you know whats wrong? and i installed java 1.4


(_NeT_WalBanger) #35

Hmmm not sure how, i little bit of Guessing and i got it to work…

Now is there anyway of changing the HTML layout as i would like to get rid of the Contents bit and make it a bit more my style, i.e change font colors, maybe add a background Etc…

Also would it be possible to make this program do a page for everyone in the game…
What i mean is if we have a clan battle would it be possible to display ALL the stats of the game for example:-
NeT
10 head shots 3%
500 hits 97%
etc

_Other_Clan
15 head shots 5%
400 hits 95%
etc

P.S man you rox this program is great :wink:


(_NeT_WalBanger) #36

Ok i have finished the Read me Text (kind of) I’m going to go and test it on my mate tommorrow and see if he can get it working easy without me helping :wink: (if you want, feel Free to use this file ;))

Step 1
Download “JDK v1.4” if you do not already have (you can download this from http://java.sun.com/j2se/downloads.html the link is called “J2SE 1.4.2” on the page) NOTE: older version Wont work. (you dont get any version of this with windows etc)

Step 2
start ET, Click “Options” then “Game”
Go down to “Miscellaneous” and click “Auto-Action” until it changes from “None” to “Stats Dump” (every click changes the entry to any combination of Demo, Screenshot and Stats Dump).
Then you have to play at least 1 game, for some stats to be made for this program to work and it has to be played to the end (either Allies or Axis Win)

Step 3
Make a folder Where the program will place the FINISHED stats page i made mine in:.
C:\Program Files\Wolfenstein - Enemy Territory\Final Stats

Step 4
Edit the “ETStats.cmd� (use note pad)

  • correct the paths in etstats.cmd to match your system setup
    • path to java.exe
    • path to Enemy Territory etmain/stats directory
    • path to directory for the output (directory has to exist)
      If you did everything the way I DID it should look like this (just copy and paste it in place of it)

@ECHO OFF
REM replace your path to java.exe, source and destination below
REM Syntax is
REM <path to java.exe> -cp . ETStats <path to Enemy Territory> <path where the output should be written>
C:\Progra~1\j2sdk_nb\j2sdk1.4.2\bin\java.exe -cp . ETStats “C:\Program Files\Wolfenstein - Enemy Territory” “C:\Program Files\Wolfenstein - Enemy Territory\Final Stats”
pause

Step 5
copy the file “formate.css” to the output directory, i called mine “Final Stats” located at “C:\Program Files\Wolfenstein - Enemy Territory\Final Stats”, (This is important for the page to look nice otherwise it will JUST be white back ground with black writing).

Step 6
Double click “ETStats.cmd�

Step 7
Now look inside the folder you created for the stats (mine is Final Stats located at “C:\Program Files\Wolfenstein - Enemy Territory\Final Stats”) and open the New .HTML files…… Index is the Stats for EVERY map


(cynric) #37

[quote=“alea35”]THis is what my error screen looks like:

ETStats v0.4 by cynric
analyzing stat files …
0 files read, generating html-stats …

try starting it again, when you actually have some stats files

see my last post for how you config ET to create them


(cynric) #38

All you can change at the moment is the stylesheet stuff, for example fonts, colors …

Optional content part is noted for the next version

The stats have limited information about other players, so I can’t generate detailed stats about everyone … and it would be alot of other players, as it is a summary of all your games played

I was thinking about some all time best/worst players awards, like most teamkills in one game or so, but no extra page for every player

Thx for the readme part, I will include it in the next release


(Ifurita) #39

http://theburrow.rtcwfiles.com/forums/viewtopic.php?t=52&sid=17952da72e5b0a40d54cb38fbb0eaf33

This one will give you more detailed stats, but only for a single gaming session. It’s a logfile parser and a bit different from this one which goes thru all the stats.txt files over a period of time


(alea35) #40

cant get it to work. i do have a stat file dumped though becaused i checked. here is the error i get now:

ETStats v0.4 by cynric
analyzing stat files ...
Exception in thread "main" java.lang.NullPointerException
        at StatsList.readStats(StatsList.java:24)
        at ETStats.main(ETStats.java:25)
Press any key to continue . . .

and this is my cmd file:

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

do you know what im doing wrong? should i try your beta version?