How are replay files made? Ive opened them up in notepad, and seen that the start is just the start script, but what about the rest of the file? How is that layed out? And the first five characters, how are they made? Of the few replays that ive looked at, those first characters look quite random, and pointless.
So, basically, what do the first few characters mean, and is there any way to extract data from the stuff below, like a chatlog, or who won the game?
Thanks
Replay file format
Moderator: Moderators
The first 4 bytes is the length of the startscript, then comes the startscript. After that it's just network traffic, so there isn't a lot you can do with it before having to parse the entire traffic. The network data itself is pretty useless too: It's just a bunch of user/ai commands sent, you need the spring code to make something useful out of it.