Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Zero-K Local Analysis

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
7/8/2022 1:04:20 PMUSrankchaplol before revert after revert
Before After
1 Yeah, they'd just be downloaded. I think you're right that they get deleted at some point, but the retention looks like it's at least two months. 1 Yeah, they'd just be downloaded. I think you're right that they get deleted at some point, but the retention looks like it's at least two months.
2 \n 2 \n
3 Stats data can be extracted using `strings`, but someone wrote a python library to do it a bit more cleanly than that. This command downloads all replay files from 1354664 through 1402664 and makes a CSV of the stats (...with a head -1 just to show it for the first): 3 Stats data can be extracted using `strings`, but someone wrote a python library to do it a bit more cleanly than that. This command downloads all replay files from 1354664 through 1402664 and makes a CSV of the stats (...with a head -1 just to show it for the first):
4 \n 4 \n
5 ( printf "replay_url, damager, damagee, amt, emp" && seq 1354664 1402664 | head -1 | xargs -I{ } wget 'https://zero-k. info/Battles/Detail/{ } ' -O - | grep "Manual download" | awk -F"'" '{ print "https://zero-k. info"$2} ' | xargs -I{ } bash -c "wget '{ } ' -O - | gunzip | strings | grep stats, dmg | sed 's|^SPRINGIE:stats, dmg, |{ } , |'") > zkstats. csv 5 [quote]( printf "replay_url, damager, damagee, amt, emp" && seq 1354664 1402664 | head -1 | xargs -I{ } wget 'https://zero-k. info/Battles/Detail/{ } ' -O - | grep "Manual download" | awk -F"'" '{ print "https://zero-k. info"$2} ' | xargs -I{ } bash -c "wget '{ } ' -O - | gunzip | strings | grep stats, dmg | sed 's|^SPRINGIE:stats, dmg, |{ } , |'") > zkstats. csv[/quote]
6 \n
7 [quote]$ head zkstats.csv
8 replay_url,damager,damagee,amt,emphttps://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,bomberdisarm,spideremp,0,0
9 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,bomberdisarm,spiderskirm,0,0
10 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,dynassault1,staticmex,1200,0
11 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,dynassault1,hoverskirm,1451.28198,0
12 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,dynassault1,turretheavylaser,32,0
13 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,dynassault1,hoverheavyraid,360,0
14 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,dynassault1,hovercon,1612.12598,0
15 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,turretheavylaser,hoverassault,2130.68848,0
16 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,turretheavylaser,hoverheavyraid,493.348907,0
17 https://zero-k.info/replays/20220429_070633_Cobalt Dream v1_105.1.1-841-g099e9d0 BAR105.sdfz,turretlaser,spideremp,1400.42334,0[/quote]
6 \n 18 \n
7 This library parses replay files more-cleanly and pulls other useful stats: https://github.com/dansan/spring-replay-site/blob/master/srs/parse_demo_file.py 19 This library parses replay files more-cleanly and pulls other useful stats: https://github.com/dansan/spring-replay-site/blob/master/srs/parse_demo_file.py