rFactor2-VCR-format

Back to index

Driver details (Class 0, Types 7-16)

The current gear is calculated by subtracting 8 from event type. -1 is Reverse, 0 is Neutral, etc.

Size Type Comment
4 Unsigned Integer Steer Yaw, Throttle, Engine RPM and Pit Status (see below for details)
4 Unsigned Integer Detachable Part State (wings, wheels)
5 Bytes Speed info
25 Unknown  
1 Integer Traction control and brakes
4 Float X position
4 Float Y position
4 Float Z position
4 Float X rotation
4 Float Y rotation
4 Float Z rotation

Info 1 details (first unsigned int)

Bytes|Info

steer_yaw = info1 & 127
throttle = info1 >> 11 & 63
engine_rpm = info1 >> 18
in_pit = (info1 >> 17 & 0x1) != 0
horn = (info1 >> 10 & 0x1) != 0

Info 2 details (second unsigned int)

Bytes|Info

Speed Info

'xxxxxxxx yyXxxxxx yyyyyyyy zzzzzzYy Zzzzzzzz'

# x is a bit of Vx, X is the Sign bit of Vx
# y is a bit of Vy, Y is the Sign bit of Vy
# z is a bit of Vz, Z is the Sign bit of Vz

Info 3 details (single int after speed info)

Bytes|Info