My Assistant
replayreader CrashedReplay.RA3Replay -R -t 0
replayreader CrashedReplay.RA3Replay -r -f 167888 -F RescuedReplay.RA3Replay
replayreader -g -r *.RA3Replayit will go through all the matching replays and attempt to fix each one that is corrupted. Use with care! Keep backup copies!
You can type "replayreader -h" for help and usage information.
Basically, the tool will dump all kinds of data that it finds in the replay. The output isn't terribly well organised and contains lots of useless raw data, but maybe you'll see something in there you're interested in.
Here is a random list of "features":
- Understands TW, KW and RA3 replays.
- Player names, factions, observers, commentators, ...
- One timestamp in GMT and another with the user's local time.
- Which player saved the replay.
- Whether or not there's an audio channel; can optionally dump the raw audio data (but no idea what to do with it).
- Player IDs may be useful to see if two players are the same.
- Game version magic number appears to be able to tell mods apart.
- Name of the mod for TW and RA3.
- Figures out how long a replay is.
- Can optionally dump all actual payload data of a replay ("-c" for TW/KW, "-R" for RA3).
- Can repair (some) crashed replays from RA3 and KW (probably also from TW)
At some point I thought there might be a way to count APM from the replay, but I think that's unlikely: By dumping the data chunks in a replay (using "-c") you can see that even if you click madly on the map all over the place and open queue tabs, no data is saved in the replay, so the replay cannot possibly account for all user "actions".Let me know if you have any ideas or things you want me to implement. (Don't ask for a graphical interface, though!)
I made the source code for these tools available on GitHub.
Update: The program is now called cnc3reader (which works for TW/KW/RA3 replays), I also added programs to dissect TT replays (cnc4reader) and CCG/ZH/BfME/BfME2/RotWK replays (ccgzhreader).
Update: There is now a helper batch file called "cnc3replay_dump_to_notepad.bat". Keep this in the same directory as "cnc3reader.exe". You can drop one replay file onto the batch file to have the replay info open up in Notepad. You can place a shortcut to the batch file anywhere, e.g. on your desktop, to conveniently drop replay files onto it.
Update: There's now also a helper "cnc4replay_dump_to_notepad.bat" for C&C4 replays. Both cnc3- and cnc4-readers have been made safer to use with ill-formed replay files. cnc3reader now supports pre-1.7 TW replays (which don't have mod support).
Update: Major improvements of chunk dissection (now presumed complete), and rudimentary APM computation is now available with option "-p".
Update: Footer and type-2 chunks are now understood. Option "-p" now also outputs kill ratios if available (this only seems to be the case for RA3). Replay fixing now always appends the short, one-byte footer.
This post has been edited by R Schneider: Sep 2 2011, 12:02 PM
Posts: 5,734
Game: