Forums

Full Version: Export/record user data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to find a way to record user data in VDrift. With this I mean the user inputs (accelerator position, brake pedal position, steering angle,...) as well as the users car position (current track segment, exact track position, speed, de/acceleration, direction,...). Ideally I am trying to achieve something that outputs a text file for every completed lap but any other output would be great as well.

Is this possible in VDrift or any other racing simulation for that matter? Is it possible to record similar data for AI drivers?

Any pointers would be greatly appreciated.
Hi ls908.

You would have to write the logging code.

For example:
In CAR::CAR() constructor open a file for logging(use car pointer in file name to differentiate between cars).
In CAR::HandleInputs(..) log inputs vector and current cardynamics state.