RTD file format (Racer Telemetry Data)
|Home||Have a look at the insides of the Racer file formats.|
The RTD file format is used for storing telemetry data (since v0.8.18). It has stabilized quite a bit throughout the years.
The endianness is based on Intel CPU's. An 'int' is 32 bits and a float is also 32 bits.
Strings are written as 'short len; char data[len]' - without the trailing zero. For example, the string "hello" would be written as a 16-bit short (value 5) and 5 chars. In total it would take 7 bytes.
RTD files can be converted to ASCII text files using the RTD2ASCII tool, which is provided with every Racer version, starting from v0.9.0RC6. From there on, it should be simple to convert to any type of telemetry tool.
The file header is as follows:
After the header a number of generic properties are written:
Properties are used to pass things like 'car' and 'track' in a flexible way. More properties may be stored in the future.
Next, a number of meta-properties are written. These are properties that are less global, such as laptime information. This chunk may not be present in old RTD files.
Next is the the signal data.
That's all there is to it, really.
(last updated March 29, 2013 )