SC2SEA.com - Starcraft 2 SEA eSports Community Site


  • Home
  • About
  • Streams
  • Features
  • Tournaments
  • Forums
SC2SEA.com - Starcraft 2 SEA eSports Community Site > Starcraft 2 Discussion > Starcraft 2 General Discussion > Guide - Batch Stripping Chat from Replays
About Us
An Overview of sc2sea
About Us
Contact us
Join our team!
Features
Live Streams
Replays
SEABets
Site Achievements
Articles
Article Archive
Who's Who
sc2sea.com Weekly Tournaments
Tournaments
Every Saturday BSG Open - (Bronze, Silver, Gold)
Every Sunday GPD Open - (Gold, Platinum, Diamond)
Monthly Sunday Masters Cup
Oseanic Championship Series 2015
Point Standings
The Grandmaster Manual
1. Introduction
2. Basics
3. Advanced
4. Anti-Cheese
5. Protoss
6. Zerg
7. Terran
8. Summary
9. Bonus Content!
Coaching
TGM Member Only Forums
TGM Official Coaches
Misc
Help us Rate TGM!!
Suggest what you'll like to see!
Need help? Contact Support!
Community Links
Members List
Search Forums
 
Advanced Search
Search Downloads
Advanced Search
Go to Page...
Community
House Clans
Clans
No recent threads.
Community
No recent threads.
Tournaments
No recent threads.
Latest Blogs New
tier list of people...
asdfSchnitzel
My Life Was Turned...
Sc2Clare
I've been playing...
SLCN.Wally
My Starcraft/eSpor...
syfChadMann
My Starcraft/eSpor...
syfChadMann
General
Stickied Threads
No recent threads.
General Threads
No recent threads.
StarCraft II
Starcraft General
No recent threads.
Strategy Discussion
No recent threads.
BSG Discussion
No recent threads.
Other Games
Other Games
No recent threads.
Sports
No recent threads.
News
News Archive
No recent threads.
Tournament News
No recent threads.
Articles Archive
Replays
Photo Gallery
Mark all forums as read
 
Display Modes
Thread Tools
Prev Previous Post   Next Post Next
Unread Tue, 21st-Feb-2012, 7:11 PM BnetId: 562  Race: Total Posts Made: 356 # 1
Peleus
Peleus's Avatar
Tourneys Joined: 1
Guide - Batch Stripping Chat from Replays

Hi all,

Recently I posted a huge (2526 replays) replay pack for which I had all the chat stripped out for privacy reasons. A few people asked me how it was possible, so I'm going to write a quick guide to show you how it's done. Although it's designed for multiple replays it can easily be used for singular replays if you wish.

Tools Required
SC2Gears - https://sites.google.com/site/sc2gears/downloads
Ladik MPQ Editor - http://www.zezula.net/en/mpq/download.html
Microsoft Excel (Or Open Office Calc for free)
Command Prompt

Overview and Preparation
Basically a .SC2Replay is a MPQ file. This means we can use Ladik's MPQ editor to manipulate files within the replay. Each replay has a file called 'replay.message.events', this contains all the chat data. We're going to create a new blank file, then replace the existing file with this newly created blank, effectively removing any chat from the replay.

To begin we want to copy all the relevant replays to a new folder, allowing us to work on something other than the originals in case something goes wrong. We'll need to type out the location of this folders so make sure you know the path to it.

Personally I used a folder in My Documents called Replays, so my path would be C:\Users\<Comptuer Name>\Documents\Replays

Also create a new blank text file in this directory. Rename this text file 'replay.message.events'. Ensure that you're overwriting the .txt format at the end, not ending up with replay.message.events.txt. You may need to turn on the option for "Show file extensions for known files" to do this.

Following this, copy and paste the MPQEditor.exe file into the replay folder also.

Step 1. Renaming Replays
This step isn't strictly necessary UNLESS you have Korean / Chinese / non-english characters in your replay names which will often occur if you're playing on the Korean server. To do this we can use SC2Gears.

1. Open SC2Gears

2. Double click on Auto-saved reps on the left hand side

3. Click on Search Source Tab near the top.

4. Remove any selected sources that are there.

5. Click on add folder.

6. Select your created folder (I.e. My Documents / Replays)

7. Click on List all replays of this source.

8. Once results are listed, select all files, right click, select rename replays.

Select something that won't involve forign characters. The actual names matter very little, as after this is completely we can repeat the process and rename them once more whatever we like. I personally just removed the names on the end (rename as '/T - /m'), but some people may still have foreign map names. Use game length, gateway, whatever.

Step 2. Getting file list
Now the file names have been renamed we need to obtain a raw listing of these file names in a text file. There could very well be a more direct method of doing this entire process, but I only spent an afternoon figuring it out so while this is a little convoluted, at least it works.

1. Start command prompt (Start, in search box type 'cmd', press enter)

2. Navigate to the folder where your replays are saved (cd C:\Users\Desktop\Documents\Replays in my case)

3. Type 'dir > list.txt'

4. This creates a text file called list.txt inside your replay directory listing every file you have in there (along with other information).

Step 3. Making the script
Great, now we have a file list (kind of) we need to shorten it down. This is where excel comes in.

1. Open Excel and cut and paste the information from list.txt into it. I'm assuming you pasted in Cell A1.

2. Remove any extra information above and below the replay files, such as text like "Directory of c:\Users\Desktop\Documents", "20 File(s) 100,539,301 bytes", etc.

At this stage we should simply have a long list of files with dates, times, file sizes and the names.

3. Use the text to column feature in excel to break out the file name into it's own column. In 2010 this is located under the data tab. To do this....
a) Select all of column A by clicking on A up the top.
b) Click on the Text to Columns button
c) Select fixed width to break it down
d) Click next
e) A series of black lines will demonstrate what will be individual columns, it doesn't really matter but ensure that the replay names are all in an unbroken column by dragging any black lines that would have been separating them to the right hand side
f) Click next to separate

4. Highlight any columns that have irrelevant information (anything not the file names) and delete them. All going well you should have a long list of file names of all your replays on their own in text format with each replay being a different line, YAY!

5. Select all your replays and copy paste it in the same column 4 times. I.e. if originally all your replays were lines 1-400, you should now have the same list in 401 - 800, 801 - 1200, 1201 - 1600.

6. Click on sort so now you'll have 4 of the same file name for every replay all together. Cut and paste this list into column C (so I can provide a formula for something later). We're now going to create the necessary instructions for the script for the MPQ editor.

7. In A1 type o, A2 type d, A3 type a, A4 type c. Now select the 4 cells and double click on the bottom right corner to fill down the same pattern all the way to the end.

8. In cell B1 type ", select the column to fill all the way down.

9. In cell D1 type ", select the column to fill all the way down.

8. In cell E2 type replay.message.events, in E3 type replay.message.events. Select E1, E2, E3 and E4 and click on the bottom right hand corner to fill down. The inclusion of these blanks is deliberate so the replay.message.events only occurs on lines with either a 'd' or an 'a' in column A.

9. In cell F3 type replay.message.events. Select F1, F2, F3, F4 and click on the bottom right hand corner to fill down.

10. In G1 paste the formula =CONCATENATE(A1, " ",B1,C1,D1," ",E1," ",F1) and fill this formula all the way down.

11. Select the resulting text that's created in the G column, copy and right click on a different column (say J for example) select paste special, then select values.

Finally we're done! This has created a script command for the MPQ editor for every replay you have. It may seem very convoluted if you're doing 1, however if you're doing 2000 replays this saves so much time, and it's much quicker than it appears once you know what you're doing. To confirm, you should have something like this for each replay.

o "ReplayName.SC2Replay"
d "ReplayName.SC2Replay" replay.message.events
a "ReplayName.SC2Replay" replay.message.events replay.message.events
c "ReplayName.SC2Replay"

for every replay that you have.

Step 4. Executing the script
Once more we are going to go back to the command prompt. To confirm the preperation once more, we need to have the MPQEditor.exe file, a blank replay.message.events file and all of our replays that we wish to edit in the folder.

1. Create a new text file and call it script.txt

2. Copy and paste all of the text commands we created in excel into script.txt (This should be from column J, or wherever you did the paste special > vaules).

3. Save the file and close.

4. In command prompt once more navigate to the folder we're working in (C:\Users\<Computer name>\Documents\Replay)

4. Type MPQEditor.exe /console script.txt

All going well, we're done!

This should have opened each replay, deleted the chat from it, replaced it with a blank file then closed the file once we were done working with it. To confirm this has worked close any command windows you have open, double click on MPQEditor.exe to open the GUI. Select any replay file at random to examine the files in it. The replay should have a replay.message.events file of 0 bytes, and also have a date of modification next to it.

All your replays you've worked on have zero chat.

Hope this helps!

- PeleusSPR

Quick Comments
 Eldrid:  
gentleman and a scholar you are!
 nirvAnA:  
 breadfan:  
OMG you are amazing sir
Peleus is offline   OLD POST Reply With Quote
Peleus
View Public Profile
Send a private message to Peleus
Find all posts by Peleus

 

« Previous Thread | Next Thread »

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
View All Posts View All
Linear Mode Switch to Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Threaded Mode

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starcraft 2 HotS Guide - The Grandmaster Manual - by Top Pro-Gamers on SEA nirvAnA Strategy & Improvement 201 Mon, 9th-Dec-2019 8:18 PM
Last Batch Order of SC2SEA Tees! nirvAnA Latest News 8 Fri, 17th-Feb-2012 10:07 PM
SC2SEA Batch 3 Tees to factory tomorrow. nirvAnA Latest News 12 Fri, 13th-Jan-2012 3:38 PM
SC2SEA Batch 2 Tees have been shipped! nirvAnA Latest News 5 Fri, 30th-Dec-2011 1:25 PM
SC2 Training Chat Paroxysm Strategy & Improvement 11 Sun, 1st-May-2011 1:20 PM

Events
Upcoming Events Add
No events scheduled in
the next 7 days.
OSC SEA Participation Bonus
Live Streams
No streams online.
Open SEABets
No open bets.
2015 OSEANIC Series
Latest Results
Americas Open #110 KeeN
OSC SEA Weekly #24 Probe
SC2Online Comm Open #38 aLive
February EU Ladder Heroes Nerchio
February NA Ladder Heroes TRUE
ANZ Cup #12 iaguz
Filthy NA Weekly #16 Semper
Proxy Tempest Open #43 PiLiPiLi
Top 20 OSC Rankings
1ByuN
2Seither
3DemiLove
4PiLiPiLi
5Kelazhur
6Cham
7iaguz
8aLive
9Solar
10KeeN
11EnDerr
12KingkOng
13TRUE
14GuMiho
15Probe
16puCK
17Snute
18PandaBearMe
19PiG
20Ryung
Full Point Standings
Earn extra points with Challenge Matches!
Bounties
Defeat these players and collect the $'s!
ByuN$100
INnoVation$75
Solar$75
Neeb$60
herO$50
GuMiho$50
Nerchio$50
TRUE$50
uThermal$50
Kelazhur$40
MajOr$40
Scarlett$40
Snute$40
aLive$30
Bly$30
iAsonu$30
KeeN$30
PiLiPiLi$30
puCK$30
Ryung$30
Cham$25
Cyan$25
iaguz$25
Guru$25
Seither$25
Semper$25
JonSnow$15
PandaBearMe$15
Probe$15
Latest Collected
Yours 2-0 Neeb $60
SC2ONLINE Comm Open #38
Azure 2-0 Seither $25
ANZ Cup #12
Cham 2-0 Cyan $25
OSC All Stars #24
FuturE 2-0 KeeN $30
ESL Americas Open #109
Donations
Donate using Paypal!

Even the smallest donations help keep sc2sea running! All donations go towards helping our site run including our monthly server hosting fees and sc2sea sponsored community tournaments we host. Find out more here.
Home - Contact Us - FAQ - Members List - Advertise - Terms of Service - Top - Mobile-friendly (alpha)
Powered by vBadvanced CMPS v3.2.2
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
The contents of this webpage are copyright of sc2sea.com © 2010-2015. All Rights Reserved.
The Grandmaster Manual is a Starcraft 2 Guide created and owned by sc2sea.com
Starcraft2 is a trademark of Blizzard Entertainment, this is a community fan site and no infringement is intended.
Custom artwork by Zeus, Banner designed by Cute, other artworks is used with permission with credits listed here. vBulletin skin by CompletevB.com