Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Overview

This records player input/camera movement and plays it back. Some player actions such as vehicle movement are not supported.

You need to start and record in game mode (Press Ctrl + G in the Editor after the level has been fully loaded, or load the level in Pure Game Mode.

After each playback you get a log printout that looks like the following (in the console and also in the file timedemo.log in the level directory for the level used):

No Format
TimeDemo Run 131 Finished.
Play Time: 3.96s, Average FPS: 50.48
Min FPS: 0.63 at frame 117, Max FPS: 69.84 at frame 189
Average Tri/Sec: 14037316, Tri/Frame: 278071
Recorded/Played Tris ratio: 0.99

Recording Controls

Command

Keystroke

Console Commands

Start Recording

Ctrl + PrintScreen

record

End Recording

Ctrl + Break

stoprecording

Start Playback

Shift + PrintScreen

demo

Stop Playback

Ctrl + Break

stopdemo

Related Console Variables

  • stopdemo: Stop playing a time demo.
  • demo: Plays a time demo from file (Usage: demo demoname).
  • demo_fixed_timestep: Number of updates per second.
  • demo_panormaic: Panormaic view when playing back demo.
  • demo_restart_level: Restart level after each loop: 0 = Off; 1 = use quicksave on first playback; 2 = load level start.
  • demo_ai: Enable/Disable AI during the demo.
  • demo_savestats: Save level stats at the end of the loop.
  • demo_max_frames: Max number of frames to save.
  • demo_screenshot_frame: Make screenshot on specified frame during demo playback, If Negative, takes a screenshot every N frame.
  • demo_quit: Quit game after demo runs finished.
  • demo_continue: Continue game after demo runs finished.
  • demo_noinfo: Disable info display during demo playback.
  • demo_scroll_pause: ScrollLock pauses demo play/record.
  • demo_num_runs: Number of times to loop timedemo.
  • demo_profile: Enable demo profiling.
  • demo_time: Time demo filename.
Internal
h2. Demo Recording (Using the Network System)
*Note:* This method is currently in an unknown state. It is not used for autotest and benchmarking.

The demo recorder serializes all game events like a network server and writes them to a specified output file.

h3. Start Recording

To start recording load a map as usual but add "r" or "record" followed by the output file name in the command line.

*Example:* 
{noformat} map levelname r output.rec {noformat}

All in game actions and events, including your own player character, are recorded. The recorder will eventually work in singleplayer and multiplayer game modes.

To stop recording, quit the game.

h3. Playback

To play a recorded file, use the "play" command followed by the file name.

*Example:*
{noformat} play output.rec {noformat}