ET Stats Parsing
•
3 May 2011, 10:28
•
Tutorials
For those of us using autoaction 7, ET creates a stats file at the end of each game with a summary of our performance in the game.
After a few months of playing, you end up with lots of files which I don't really know what do with and there's too many to read.
Therefore, I started making a Python script which will parse these stats files and do something useful with them. The current version simply parses the file, returns a summary in a tuple and averages some of the results.
If someone wants to take the code, extend it and do something fancy like a GUI that would be awesome. Its not the best piece of code i've written but it works.
Download the script using this link:
http://www.ethr.biz/statsparser.py
Execute using Python:
python statsparser.py -d <ET DIR>\etpro\stats\
And you'll get some averaged results like so:
Averaged weapon acc:
G.Launchr 52.116667
Sten 47.933333
Colt 34.200000
Artillery 88.900000
MG-42 Gun 30.533333
Grenade 24.436364
MP-40 34.511111
Panzer 103.333333
Airstrike 98.225000
Thompson 37.371429
Landmine 71.400000
Garand 34.085714
Luger 47.554545
Syringe 91.675000
Knife 25.000000
K43 Rifle 32.744444
Average damage: 1899
Average damage rec: 1779
Average damage given to damage received ratio: 1.107458
Average headshots:
Colt 1
Sten 2
Garand 2
MP-40 9
Thompson 5
Luger 1
K43 Rifle 2
Average XP: 47
HeavyWeapons 7
FirstAid 5
BattleSense 9
LightWeapons 23
Signals 4
Engineering 15
CovertOps 6
I'll try and add some other features such as getting efficiency or comparing yourself to other players in the game, but this should be ok for a first version.
Please note that the code was developed using Linux, there may be a bug with line endings when using Windows but that should be easy to fix so just say so ;-)
Enjoy.
Ethr
After a few months of playing, you end up with lots of files which I don't really know what do with and there's too many to read.
Therefore, I started making a Python script which will parse these stats files and do something useful with them. The current version simply parses the file, returns a summary in a tuple and averages some of the results.
If someone wants to take the code, extend it and do something fancy like a GUI that would be awesome. Its not the best piece of code i've written but it works.
Download the script using this link:
http://www.ethr.biz/statsparser.py
Execute using Python:
python statsparser.py -d <ET DIR>\etpro\stats\
And you'll get some averaged results like so:
Averaged weapon acc:
G.Launchr 52.116667
Sten 47.933333
Colt 34.200000
Artillery 88.900000
MG-42 Gun 30.533333
Grenade 24.436364
MP-40 34.511111
Panzer 103.333333
Airstrike 98.225000
Thompson 37.371429
Landmine 71.400000
Garand 34.085714
Luger 47.554545
Syringe 91.675000
Knife 25.000000
K43 Rifle 32.744444
Average damage: 1899
Average damage rec: 1779
Average damage given to damage received ratio: 1.107458
Average headshots:
Colt 1
Sten 2
Garand 2
MP-40 9
Thompson 5
Luger 1
K43 Rifle 2
Average XP: 47
HeavyWeapons 7
FirstAid 5
BattleSense 9
LightWeapons 23
Signals 4
Engineering 15
CovertOps 6
I'll try and add some other features such as getting efficiency or comparing yourself to other players in the game, but this should be ok for a first version.
Please note that the code was developed using Linux, there may be a bug with line endings when using Windows but that should be easy to fix so just say so ;-)
Enjoy.
Ethr
either way it was kinda nice for me to build :p
There was a similar tool to this for RTCW back in the day iirc.
Foxy :( :(
Bani cutted this bullshit system out since ET 2.60 patch was relased.
(Got docs from ID:))
Anyway what I flood here,Bani were good Windows bitch.
Good work with program anyway:D
didn't a guy do exatly the same with a fancy graphical interface a while ago?
PS <3 ETHR
geez i would love to have made a tool like that :p
Shouldn't you get kicked for putting a hook in ET?
Did you perform a single short 'jmp'?
BooBoo stats viewer?