by mungewell » Mon Jan 14, 2013 3:24 pm
I don't believe that you would be able to recreate a race by recreating the inputs to the car, there is too much math done which would probably end up in rapid diversion from what you want - ie different car performance each time.
There was some talk of implementing replays, not sure if anyone took this on/is working on it.
You could look at the race engine, which contains a large structures for holding the position/etc of the cars. If this can be stored/retrieved somehow you may be able to replay the race.
This function might only be called when multi-threading is turned on, but it gives a good list of all the possible parameters required for defining the game state.
I had previously suggested using sqlite to do this, but there was some concerns about speed of access and adding another dependancy to the code.
Simon