• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:53
CET 11:53
KST 19:53
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !8Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
When will we find out if there are more tournament ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
$5,000+ WardiTV 2025 Championship RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle screp: Command line app to parse SC rep files How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread General RTS Discussion Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1421 users

screp: Command line app to parse SC rep files

Forum Index > BW General
Post a Reply
1 2 Next All
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
Last Edited: 2017-05-22 15:05:34
May 22 2017 14:29 GMT
#1
I've created and open-sourced a command line StarCraft: Brood War replay parser tool called screp here:

https://github.com/icza/screp

What it is

It's a standalone app with no GUI, and it can be used from the command line to pass a StarCraft: Brood War replay file to it (.rep), and it will parse the file and display low-level information from the replay in textual, JSON representation.

Target audience

While anyone may download it and use it, the information it presents is quite low level. It is human readable (JSON), but it's primarily intended for developers and web sites that wish to extract data from replays.

Supported platforms

Pre-built binary releases are provided for Windows, Linux and MAC OS X, both for 32 and 64-bit architectures.

Note that the project is written using the Go language, which supports a lot more platforms. Should you need to use it on other platforms, you can checkout the source code and compile it on your platform.

Requirements

Nothing is required. screp is shipped as a single, self-contained executable binary. It has no dependency. You do not need anything installed on your system. You just download the binary for your platform, extract it and use it.

Supported replay versions

Parses both "modern" (starting from 1.18) and "legacy" (pre 1.18) replays.

Download

Pre-built binaries can be downloaded from:

https://github.com/icza/screp/releases

Feedback / Bug report

Feedback and bug report is welcome. Feedback may be posted here, bugs and issues should be reported at:

https://github.com/icza/screp/issues

Star / Follow the project

If you like the project, please star it / watch it / follow me on github. Thanks.



Also check out the sister project to parse StarCraft II replays: s2prot
https://repmastered.icza.net
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
May 22 2017 14:56 GMT
#2
thx, gonna use it unless it requires additional shit
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
May 22 2017 14:57 GMT
#3
could you also add your eapm algorithm from bwhf agent? Btw i love that tool, use it a lot back in the days
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
May 22 2017 15:03 GMT
#4
On May 22 2017 23:56 mca64Launcher_ wrote:
thx, gonna use it unless it requires additional shit

It's a single, self-contained binary. It requires nothing else.

On May 22 2017 23:57 mca64Launcher_ wrote:
could you also add your eapm algorithm from bwhf agent? Btw i love that tool, use it a lot back in the days

You might wanna add that as a request at https://github.com/icza/screp/issues. Based on popular demand it might get added.
https://repmastered.icza.net
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
May 22 2017 15:11 GMT
#5
also 1.18 replay to old compression option will be good (for 1.16.1 replay watch)
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
May 22 2017 15:15 GMT
#6
On May 23 2017 00:11 mca64Launcher_ wrote:
also 1.18 replay to old compression option will be good (for 1.16.1 replay watch)

I'm not sure just by repacking the data sections with the old compression would make replays watchable with old clients. There may be new commands/events which could crash old clients.
https://repmastered.icza.net
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
May 22 2017 15:21 GMT
#7
im pretty sure it will work, even if not its good to check this
Glioburd
Profile Joined April 2008
France1911 Posts
May 22 2017 15:43 GMT
#8
Nice, will try it asap, thanks for your work!
"You should hate loosing, but you should never fear defeat." NaDa.
DarkNetHunter
Profile Joined October 2012
1224 Posts
May 22 2017 20:48 GMT
#9
I think you deserve a second star!

Learn from the mistakes of others. You can't live long enough to make them all yourself.
Dead9
Profile Blog Joined February 2008
United States4725 Posts
May 25 2017 15:47 GMT
#10
thanks, i can't seem to get it to work though
i cloned from git, installed go, and ran release.sh

[ol@localhost _release]$ ./release.sh 
Using app folder: ../cmd/screp
Detected app name: screp
Detected app version: v1.0.0
Creating release screp-v1.0.0-linux-amd64.tar.gz...
../cmd/screp/screp.go:16:2: cannot find package "github.com/icza/screp/repparser" in any of:
/usr/lib/go/src/github.com/icza/screp/repparser (from $GOROOT)
/home/ol/go/src/github.com/icza/screp/repparser (from $GOPATH)
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
Last Edited: 2017-05-26 12:02:06
May 25 2017 17:25 GMT
#11
On May 26 2017 00:47 Dead9 wrote:
thanks, i can't seem to get it to work though
i cloned from git, installed go, and ran release.sh

[ol@localhost _release]$ ./release.sh 
Using app folder: ../cmd/screp
Detected app name: screp
Detected app version: v1.0.0
Creating release screp-v1.0.0-linux-amd64.tar.gz...
../cmd/screp/screp.go:16:2: cannot find package "github.com/icza/screp/repparser" in any of:
/usr/lib/go/src/github.com/icza/screp/repparser (from $GOROOT)
/home/ol/go/src/github.com/icza/screp/repparser (from $GOPATH)

First let's clear some things. You do not need to checkout the source, and you do not need to install Go and build it yourself, because there are pre-built binaries on this page:

https://github.com/icza/screp/releases

Just download and use the one matching your platform.

Source code and custom build is only required if you want to build it for a platform not provided on the releases page. (Or if you want to modify the sources before building it, or if you want to use it as a library from your Go app.)

If you still want to build it: that is not how Go works. You need to setup a Go workspace, then easiest is to use "go get" to get the project (into your Go workspace) which also builds it. Or checkout the project with "git clone" into your already setup Go workspace, and then use "go install" or "go build" to build the screp executable. The "release.sh" is to build the packed release binaries you can download from the releases page.

For more information about how to setup a Go workspace and how to get started with Go:

How to Write Go Code

A Tour of Go
https://repmastered.icza.net
Thyriaen
Profile Joined December 2011
Switzerland41 Posts
Last Edited: 2017-05-25 21:17:36
May 25 2017 21:16 GMT
#12
Thanks for the Linux client
Psyonic_Reaver
Profile Blog Joined June 2007
United States4338 Posts
May 25 2017 22:26 GMT
#13
I dont understand this but that does not mean I do not appreciate it. Thanks for all your hard work!
So wait? I'm bad? =(
Neneu
Profile Joined September 2010
Norway492 Posts
Last Edited: 2017-05-26 12:04:26
May 26 2017 12:02 GMT
#14
As a data analyst I find this to be absolutly amazing. Will definitely check out once I get home
Dead9
Profile Blog Joined February 2008
United States4725 Posts
May 26 2017 20:24 GMT
#15
On May 26 2017 02:25 Dakota_Fanning wrote:First let's clear some things. You do not need to checkout the source, and you do not need to install Go and build it yourself, because there are pre-built binaries on this page:

https://github.com/icza/screp/releases

Just download and use the one matching your platform.

Source code and custom build is only required if you want to build it for a platform not provided on the releases page. (Or if you want to modify the sources before building it, or if you want to use it as a library from your Go app.)

If you still want to build it: that is not how Go works. You need to setup a Go workspace, then easiest is to use "go get" to get the project (into your Go workspace) which also builds it. Or checkout the project with "git clone" into your already setup Go workspace, and then use "go install" or "go build" to build the screp executable. The "release.sh" is to build the packed release binaries you can download from the releases page.

For more information about how to setup a Go workspace and how to get started with Go:

How to Write Go Code

A Tour of Go

ah i see, thanks!
ldv
Profile Blog Joined April 2017
United States103 Posts
May 30 2017 18:16 GMT
#16
Could you add a winner/loser field? I'm currently just walking backwards through the commands and finding the 'Defeat' event and that's fine, just a little quality of life thing.
Ubersturmfuhrer
Profile Joined May 2008
Finland206 Posts
May 30 2017 18:49 GMT
#17
Hey this looks great. I was looking for a tool to analyze rep files and this seems great.

Sorry for the noob question but how can I use this? I'm not super familiar with command line tools so could anyone link me with some tutorial or point in the right direction? Thanks!
You will not be punished for your anger, you will be punished by your anger
TelecoM
Profile Blog Joined January 2010
United States10686 Posts
May 30 2017 18:51 GMT
#18
Never cease to amaze with your great work Dakota_fanning, will you be releasing updated version of BWChart / the program you made in SC2 similar? (Can't remember the name for the life of me sorry)
AKA: TelecoM[WHITE] Protoss fighting
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
May 30 2017 19:13 GMT
#19
On May 31 2017 03:16 ldv wrote:
Could you add a winner/loser field? I'm currently just walking backwards through the commands and finding the 'Defeat' event and that's fine, just a little quality of life thing.

Yes, result is not part of the header, but it is available as a "Leave Game" command, which has a Reason field with possible values: Quit, Defeat, Victory, Finished, Draw, Dropped.

Adding this to the header is a nice improvement. Will do it if I won't forget about it (open an issue to make sure of it).
https://repmastered.icza.net
Dakota_Fanning *
Profile Joined January 2008
Hungary2359 Posts
Last Edited: 2017-05-30 19:19:21
May 30 2017 19:17 GMT
#20
On May 31 2017 03:49 Ubersturmfuhrer wrote:
Hey this looks great. I was looking for a tool to analyze rep files and this seems great.

Sorry for the noob question but how can I use this? I'm not super familiar with command line tools so could anyone link me with some tutorial or point in the right direction? Thanks!

You have to download the one that matches your operating system from here:

https://github.com/icza/screp/releases

It's a compressed file, extract it. Now you have a runnable app. Open a terminal / command line window, navigate to the folder you extracted it to, and type its name, and pass a replay file (with full path) to it.

For example:

screp myrep.rep


By default it will parse the replay and show you the replay header and nothing else.

If you also want to see basic map info (e.g. tile set, start locations of players etc.) and resource locations on the map (minerals and geysers), then type:

screp -map -mapres myrep.rep


To see a list of all available options, type:

screp -h
https://repmastered.icza.net
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 7m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 194
Rex 33
StarCraft: Brood War
Calm 3508
GuemChi 3273
Rain 1640
Bisu 860
Horang2 636
actioN 629
Stork 314
Shuttle 284
Mini 249
Soma 235
[ Show more ]
Pusan 191
Rush 124
JYJ 92
Dewaltoss 92
sorry 85
Killer 81
Larva 60
ggaemo 46
Bale 45
Mind 44
Barracks 41
Mong 41
ZerO 39
soO 35
NaDa 35
hero 25
Shinee 24
zelot 18
Sacsri 17
Terrorterran 13
ajuk12(nOOB) 12
910 11
Noble 9
SilentControl 7
Yoon 6
Dota 2
XcaliburYe180
singsing0
League of Legends
C9.Mang0412
JimRising 389
Counter-Strike
olofmeister1031
shoxiejesuss837
allub162
Other Games
summit1g6373
ceh9552
crisheroes336
XaKoH 144
Fuzer 124
Trikslyr19
ZerO(Twitch)1
Organizations
StarCraft: Brood War
lovetv 8
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
StarCraft 2
TaKeTV 0
[ Show 14 non-featured ]
StarCraft 2
• Light_VIP 55
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• Noizen23
League of Legends
• Jankos2344
Upcoming Events
WardiTV 2025
7m
ByuN vs Creator
Clem vs Rogue
Scarlett vs Spirit
ShoWTimE vs Cure
Rex33
IntoTheiNu 0
OSC
3h 7m
Big Brain Bouts
6h 7m
YoungYakov vs Jumy
TriGGeR vs Spirit
The PiG Daily
10h 7m
SHIN vs ByuN
Reynor vs Classic
TBD vs herO
Maru vs SHIN
TBD vs Classic
CranKy Ducklings
23h 7m
WardiTV 2025
1d
Reynor vs MaxPax
SHIN vs TBD
Solar vs herO
Classic vs TBD
SC Evo League
1d 1h
Ladder Legends
1d 8h
BSL 21
1d 9h
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
1d 23h
[ Show More ]
Ladder Legends
2 days
BSL 21
2 days
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
2 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Invitational
5 days
Replay Cast
5 days
WardiTV Invitational
6 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.