Sandbox 2 Manual
ContentsIndexHome
PreviousUpNext
Demo Recording

Demo Recording

 

Time Demo Recording: Camera recording

 

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 (editor or pure game) after the level was already loaded. After each playback you get log printout like this (to console and also the file timedemo.log in the level directory for the level used): 

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 

Start Recording:

 

Keybinding: 

Ctrl + PrintScreen: 

In the console: 

record 

or alternatively you can set the fixed timestep first and then record as follows: 

demo_fixed_timestep 60 record 

End Recording:

 

Keybinding: 

Ctrl + Break: 

In the console: 

stoprecording 

Start Playback:

 

Keybinding: 

Shift + PrintScreen: 

In the console: 

demo 

Stop Playback:

 

Keybinding: 

Ctrl + Break: 

In the console: 

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 then do screen shoot every N frame

demo_quit

Quit 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 profiling

demo_file

Time Demo Filename

An alternative method: 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. 

Start Recording:

 

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

example: map levelname r output.rec 

All ingame actions and events, including your own player character, are recorded. The recorder is planned to work in singeplayer and multiplayer game modes. 

To stop recording just quit the game. 

Playback

 

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

play output.rec

Copyright © 2008 Crytek GmbH. All rights reserved.