TRK
Identifier SoF Start Signature Data Block (Comma Seperated) EoF
The identifier of a TKD file is always 2DKT. DKT is TKD backwords incase you havent noticed :P This is always the first 4 bytes in any TKD file so its easy to identify them by. TKDS are never compressed
SOF: This is the size of the file in bytes after this point. Its a DWORD so its easy to calculate.
Start Signature: The start of data for a TKD file. Always TKDT in plain text
Data Block. The datablock is the main settings area of the TKD file. It consists of 30 commas which which seperate 29 areas that can hold various types of data. I dont exactly know what each area represents however
A temporary key follows (Keep in mind I have no clue what a number means. Feel free to tinker and check)
,(Number 2),,XA Instance ID,TLO Instance ID,(1 byte val),(2 byte val),,(1 byte val),,(val),(9 to 10 byte val),,(1 byte val),(val),HLS Instance ID,,,,(1 byte val),(val),(val),,,(5 byte val),(val),,,(1 byte val),(1 byte val),
Val means just any value. Typically if its just on its own I mean that its between 1 and 4 bytes long. The 9-10 and 1 byte bits mean that's all Ive seen its value as and thought it was worth mentioning
This is by no means supposed to be a complete list. Commas with nothing between them means I havent seen anything between them yet
EoF is the end of file Signature which is always ETKD immediately after the last comma
A Full TKD file might look like this 2DKTJ...TKDT,2,,0xaa726b1d,0xe9233083,0,32,,1,,50,174302531,,0,1024,0xe9dc0f3e,,,,0,111,1000,,,11111,779,,,0,1,ETKD
While a Typical TKD looks like 2DKTJ...TKDT,2,,,0xe9233083,,,,,,50,,,,1024,0xe9dc0f3e,,,,0,,1000,,,,779,,,0,,ETKD
Rush Hour trackdefs can now just skip the beginning 8 bytes alltogether though this is not always done :)