TDPTH format
In Teardown, your route through a mission is saved and able to drawn in-game as a red line. These paths are saved to files in the format %LOCALAPPDATA%/Teardown/path-path_id.pth
, where path_id
is the mission ID followed by either -best
or -last
.
These files are in a custom proprietary binary format identified with the magic bytes "TDPTH". Here is the format in C-like pseudocode:
struct tdpth_t {
char magic[5]; // "TDPTH"
char version[3]; // major, minor, and patch
float time; // length of path in seconds
uint32_t length;
node_t nodes[length];
};
struct node_t {
float time; // timestamp in seconds
uint32_t flags; // unknown; either "0" or "1"
float pos[3];
};