Replay file format

From Stunts Wiki
Revision as of 04:30, 13 March 2019 by Cas (talk | contribs) (Created page with "==Overview== Replays are saved by Stunts as binary files of extension '.rpl'. They contain the necessary information to recreate the actions by the player on one track, with o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

Replays are saved by Stunts as binary files of extension '.rpl'. They contain the necessary information to recreate the actions by the player on one track, with one car and to identify the opponent. Replays are always saved from the start of the race. It's not possible to have a replay starting any later. All moves made by the player are saved up to a maximum of ten minutes at maximum quality (20 frames per second). It is not yet tested whether it's possible to save a longer time while using a lower quality (say, 20 minutes at 10 frames per second).

Actions by the opponent (if any) are not saved. Stunts will reproduce the opponent's AI during the execution of the replay instead.

Because the whole track and terrain are saved within a replay file, it is possible to reproduce it without having the [track file]. It's also straightforward to extract the track from the replay file.

Two replay formats exists. The "old format", used by [Stunts v1.0] (Broderbund) and the "new format", used by all others. They only differ in two additional bytes added to the latter.