Skip to content

Instantly share code, notes, and snippets.

@JacksonChen666
Last active December 10, 2020 12:56
Show Gist options
  • Save JacksonChen666/805e76f474f5cbbfdb8a8bf4ceb7d152 to your computer and use it in GitHub Desktop.
Save JacksonChen666/805e76f474f5cbbfdb8a8bf4ceb7d152 to your computer and use it in GitHub Desktop.
This is a binary template file for HexFiend for replay mod tmcpr files.
# Replay Mod tmcpr format by JacksonChen666
# Format Specification: https://github.com/ReplayMod/ReplayMod/issues/49#issuecomment-447420151
big_endian;
requires 0 "00 00 00 00 00 00 00 2D 02";
move 9;
section "Player" {
ascii [uint8 "UUID Size"] "UUID";
sectionvalue [ascii [uint8 "Size"] "Username"];
}
section "Packets" {
while {![end]} {
incr count;
section "Packet ${count}" {
uint32 "MS since start";
bytes [uint32 "Packet Size"] "Data";
}
}
sectionvalue $count;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment