Explore GameReplays...

Kanes Wrath

How to Repair Corrupt Replays

Closed Topic Start new topic
# 1R Schneider Aug 3 2011, 09:16 AM
QUOTE(Tomber @ Aug 3 2011, 08:40 AM) *
Nice to see you around here :) Can you make a topic where you explain how to repair replays ? :P

It's the same as in Red Alert 3, only the footer is different:
  • Find last good chunk.
  • Delete garbage at the end.
  • Append footer (with final time code).
The problem I had was that there are actually two possible footers, and I'm not entirely sure which one applies for any given file. I've found the shorter one to be the correct one in the two replays I've fixed so far.

KW replay file footers


Short version:
CODE
"C&C3 REPLAY FOOTER", <final timecode>, { 0x02, 0x1B, 0x00, 0x00, 0x00 }

In just hex:
CODE
43 26 43 33 20 52 45 50 4c 41 59 20 46 4f 4f 54 45 52 NN NN NN NN 02 1b 00 00 00


Long version:
CODE
"C&C3 REPLAY FOOTER", <final timecode>, { 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00 }

In just hex:
CODE
43 26 43 33 20 52 45 50 4c 41 59 20 46 4f 4f 54 45 52 NN NN NN NN 01 02 00 00 00 00 20 00 00 00


Here NN NN NN NN is the timecode of the last good chunk.


Using the replay info tool


I've updated the replay info tool to perform this repair automatically:
CODE
replayreader -g mycrashedreplay.kwreplay

If successful, this creates a new file mycrashedreplay.kwreplay-FIXED (which you'll have to rename) which has been treated with the above process. Beware, this currently only appends the short version of the footer; if that doesn't work, try using the long version.

This post has been edited by R Schneider: Aug 3 2011, 09:45 AM

Posts: 5,734

Game: Command and Conquer 3


+
# 2Tomber Aug 3 2011, 09:27 AM
Cool, Thank you very very much smile.gif

This post has been edited by R Schneider: Aug 3 2011, 16:01 PM

Posts: 6,781

Game: None


+
# 3Gu3r1lL4 Aug 3 2011, 13:52 PM
wow, if i knew there was such thing earlier D:
guess who made my game crash ^^

Posts: 415

Game: Kanes Wrath


+

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)