• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:09
CET 02:09
KST 10:09
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Potential Updates Coming to the SC2 CN Server What mix of new & old maps do you want in the next ladder pool? (SC2) Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (March 16-22): herO doubles, Cure surprises Weekly Cups (August 25-31): Clem's Last Straw?
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Which mirror match you like most or least? How much money terran looses from gas steal? Gypsy to Korea BGH Auto Balance -> http://bghmmr.eu/ mca64Launcher - New Version with StarCraft: Remast
Tourneys
[ASL21] Ro24 Group C [ASL21] Ro24 Group B [Megathread] Daily Proleagues 2026 Changsha Offline Cup
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
Cricket [SPORT] 2024 - 2026 Football Thread Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 4047 users

screp: Command line app to parse SC rep files

Forum Index > BW General
Post a Reply
Normal
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 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
Hungary2360 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
Hungary2360 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
Hungary2360 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 States4341 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 States10700 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
Hungary2360 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
Hungary2360 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
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 Posts
May 30 2017 19:21 GMT
#21
On May 31 2017 03:51 GGzerG wrote:
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)

I've made a few tools like BWHF Agent for SC:BW, Sc2gears and Sceilght for SC2.

And now screp (for SC:BW) and s2prot (for SC2).

And I'm planning / working on something new, something universal...
https://repmastered.icza.net
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
May 30 2017 19:45 GMT
#22
At first I thought it was spelled scgrep, missed opportunity:/
The harder it becomes, the more you should focus on the basics.
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 Posts
June 16 2017 07:58 GMT
#23
Released screp v1.0.1 which fixes an issue that prevented parsing some "modern" replays.

Downloads available at:

https://github.com/icza/screp/releases/tag/v1.0.1
https://repmastered.icza.net
iCCup.Trent
Profile Joined May 2005
Argentina450 Posts
October 05 2017 02:21 GMT
#24
This is amazing; thank you.
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 Posts
December 20 2018 16:46 GMT
#25
Released screp v1.1.0 which adds support for parsing 1.21 and 1.22 replays.

Downloads available at:

https://github.com/icza/screp/releases/tag/v1.1.0
https://repmastered.icza.net
LG)Sabbath
Profile Blog Joined July 2005
Argentina3024 Posts
December 20 2018 21:20 GMT
#26
Amazing tool, thanks for making it open source, we need more developers like you!
https://www.twitch.tv/argsabbath/
iCCup.Trent
Profile Joined May 2005
Argentina450 Posts
December 21 2018 02:11 GMT
#27
On May 26 2017 21:02 Neneu wrote:
As a data analyst I find this to be absolutly amazing. Will definitely check out once I get home

This is the exact reason I asked Dakota_Fanning to update it to support newer replays. I think this opens up a number of interesting data-science-related use cases. This is exciting!
iCCup.Trent
Profile Joined May 2005
Argentina450 Posts
December 21 2018 02:19 GMT
#28
On December 21 2018 11:11 iCCup.Trent wrote:
Show nested quote +
On May 26 2017 21:02 Neneu wrote:
As a data analyst I find this to be absolutly amazing. Will definitely check out once I get home

This is the exact reason I asked Dakota_Fanning to update it to support newer replays. I think this opens up a number of interesting data-science-related use cases. This is exciting!

Here: https://www.teamliquid.net/forum/brood-war/539789-help-with-121-rep-format-changes
Scuzzzy
Profile Joined September 2016
4 Posts
April 11 2019 23:20 GMT
#29
Hey,

This isnt working for me. Not sure why. When i try to run it, i see a CMD prompt window pop up for a half second then nothing. Tried running as admin for the x86 and 64bit versions. I noticed it says AMD on the 64 bit one is it possible this just wont work on some intel systems (what i have)

thanks
1030xxx
Profile Joined August 2007
Australia62 Posts
April 12 2019 05:25 GMT
#30
Hi,

I can't find the OSX version for this app, can anyone send me the link?
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 Posts
Last Edited: 2019-04-12 18:38:05
April 12 2019 14:40 GMT
#31
The latest release is v1.1.0. All binary releases including the OS-X release can be found on the v1.1.0 releases page:

https://github.com/icza/screp/releases/tag/v1.1.0

The 64-bit version is named screp-v1.1.0-darwin-amd64.tar.gz.
The 32-bit version is named screp-v1.1.0-darwin-386.tar.gz
https://repmastered.icza.net
Dakota_Fanning *
Profile Joined January 2008
Hungary2360 Posts
Last Edited: 2019-04-12 18:51:17
April 12 2019 18:40 GMT
#32
On April 12 2019 08:20 Scuzzzy wrote:
Hey,

This isnt working for me. Not sure why. When i try to run it, i see a CMD prompt window pop up for a half second then nothing. Tried running as admin for the x86 and 64bit versions. I noticed it says AMD on the 64 bit one is it possible this just wont work on some intel systems (what i have)

thanks

It runs on 64-bit Intel processors too, the "amd64" is the target architecture, the instruction set used to assemble the code, supported by both 64-bit Intel and AMD processors.

But this app does not have a GUI (graphical user interface). This is a command line tool. So you have to open a command line interpreter (e.g. cmd.exe on Windows), navigate to the folder you downloaded and extracted it, and type its name, e.g. "screp.exe".

Then you will see an info message about usage. To see all your options, type "screp -h".

In short, you have to pass the replay file you want to extract info out of, e.g. "screp myreplay.rep".
https://repmastered.icza.net
Scuzzzy
Profile Joined September 2016
4 Posts
April 13 2019 23:57 GMT
#33
Thanks for the fast reply man.

Got it working now, very cool stuff.
AriannaValdez
Profile Joined November 2025
4 Posts
December 19 2025 04:26 GMT
#34
--- Nuked ---
Normal
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
WardiTV Mondays #76
CranKy Ducklings64
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft354
SpeCial 126
RuFF_SC2 118
CosmosSc2 44
StarCraft: Brood War
GuemChi 5159
Artosis 678
Shuttle 324
sSak 80
NaDa 13
Bale 8
Dota 2
monkeys_forever487
Counter-Strike
taco 845
Super Smash Bros
hungrybox1284
C9.Mang0402
AZ_Axe132
Other Games
summit1g10639
tarik_tv4302
Day[9].tv882
Maynarde86
ViBE55
Organizations
Other Games
BasetradeTV51
Dota 2
PGL Dota 2 - Main Stream32
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 51
• RyuSc2 29
• davetesta27
• musti20045 20
• CranKy Ducklings SOOP2
• sooper7s
• Migwel
• LaughNgamezSOOP
• IndyKCrew
• Kozan
• intothetv
• AfreecaTV YouTube
StarCraft: Brood War
• RayReign 39
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21366
League of Legends
• Doublelift5209
Other Games
• Day9tv882
Upcoming Events
KCM Race Survival
7h 51m
The PondCast
8h 51m
WardiTV Team League
10h 51m
BASILISK vs Team Liquid
OSC
10h 51m
Replay Cast
22h 51m
WardiTV Team League
1d 10h
Big Brain Bouts
1d 15h
Fjant vs SortOf
YoungYakov vs Krystianer
Reynor vs HeRoMaRinE
RSL Revival
2 days
Cure vs Zoun
herO vs Rogue
WardiTV Team League
2 days
Platinum Heroes Events
2 days
[ Show More ]
BSL
2 days
RSL Revival
3 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
3 days
BSL
3 days
Replay Cast
3 days
Replay Cast
4 days
Afreeca Starleague
4 days
Light vs Calm
Royal vs Mind
Wardi Open
4 days
Monday Night Weeklies
4 days
OSC
4 days
Sparkling Tuna Cup
5 days
Afreeca Starleague
5 days
Rush vs PianO
Flash vs Speed
Replay Cast
6 days
Afreeca Starleague
6 days
BeSt vs Leta
Queen vs Jaedong
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-03-24
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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 © 2026 TLnet. All Rights Reserved.