HistoryFiles
STK support so called 'history' files for development. They are not meant to be used to replay a game - if you are looking for this feature, please look at Replay.
The history files are used to store the location and heading of each kart in each frame. They do not store any additional information, especially no information about collectables, number of laps etc. So when replaying different collectables might appear, gut even though for example a kart does not get a rocket, another kart that was originally hit by that rocket will still behave as if it was hit, even though the rocket will not be visible.
The main use of this feature is to:
- reproduce problems (e.g. AI might hang somewhere, physics incorrect, invalid shortcut detection, ...)
- help profiling (since the performance of STK depends on e.g. how many karts you see etc, it is important when comparing performance to really have identical behaviour in all runs)
To create a history.dat file, simply press "F10" in the race. A file called 'history.dat' will be created (careful: an existing history.dat file will be silently overwritten), which contains the information of the last up-to 50,000 frames (that's about 2 minutes of recording when having 400 FPS).
To replay a history.dat file, just use the '--history' command line option - the history.dat file will be read and replayed.