forked from ascendedguard/sc2replay-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Replay.message.events format
ascendedguard edited this page Jan 4, 2012
·
1 revision
The message events file consists of a series of Message structures, repeating until the end of the file. Timestamps act as a delta to create a total "current" time for the message being read.
Field name | Type | Count | Comments |
Timestamp | timestamp | x 1 | Difference from the last event. Add time to count for the current time. |
Player ID | byte | x 1 | |
Op Code | byte | x 1 | OpCode & 3 gives the ChatMessageTarget. OpCode & 8 adds 64 to the message length. OpCode & 16 adds 128 to the message length. |
Length | byte | x 1 | Length of message string, in bytes. Add to the results from the Op Code. This is only if opCode & 0x80 == 0 |
Message | byte | x Length | UTF-8 String |