Rust Wiki

Demos

rust-wiki_demos_header.jpg

Demo Basics

Below is a list of the basic commands to get started with recording and playing demo files.

Recording

Use the command record <demoname> to start recording a demo file.

You can also use the command demo.recorder to toggle a recorder UI - best used when bound to a key.

rust_demorecorder_ui_test1.jpg

Your mouse focus will be given to the recorder UI once it is displayed. You can immediately start typing a demo name then click the 'record' button or press the enter key to start the demo recording.

Use demo.recorder again whilst recording to return focus to the UI.

If necessary, you can also hide the recorder UI by using the demo.togglehud command.

With the demo recorder displayed, pressing the up arrow key will print out the last recorded demo name. This can be particularly useful for quickly versioning your demo names.

Playing

Use the command demo.play <demoname> to load and play a previously recorded demo file.

Stopping

Use the command stop in console to exit from a demo playback.

Once the demo has stopped, you will return back to the Rust main menu.

File Location

Demo files (.dem) are recorded to the 'demos' folder located in your Rust root game directory.

C:\Program Files (x86)\Steam\steamapps\common\Rust\demos

Playback Commands

Below are a few commands available for altering the playback of a demo file.

Timescale

demo.timescale <speed> - Adjust playback speed of the currently loaded demo file.

Default / realtime speed is 1.0. Use 0 for the speed to pause demo playback.

Jump Time

demo.jump <time> - Jump to a specific time in the demo (in seconds).

For example, demo.jump 120 will jump to the 2 minute mark in the demo file.

Default is 0, if you want to restart your demo at the beginning then demo.jump or demo.jump 0 will do the trick.

Skip Time

demo.skip <time> - Skip time in the demo forwards or backwards (in seconds).

For example, a negative time amount such as demo.skip -5 will skip the demo 5 seconds backwards in time.

Pause

demo.pause - Pause demo.

Resume

demo.resume - resume paused demo.

Player Names

demo.playernames - Prints a list of all the players recorded in the demo, including their Steam ID 64 number.

Particularly useful when using playerseed commands to modify the appearance of players in the demo.

Demo HUD

demo-hud_additions.jpg

Use the following commands to display the demo HUD:

demo.hud <0/1> - Enable/disable the demo HUD.

demo.togglehud - Toggle to enable/disable the demo HUD; best used when bound to a key.

The demo HUD displays the following information:

  • Timecode (hours:minutes:seconds) + seconds counter (current second/total seconds)
  • Timescale of current demo; prints the value of the timescale command
  • Demo filename within game directory
  • Date and time of demo recording
  • Parented entity name + ID (if any) as indicated by a chain-link icon
  • DOF focus target entity name + ID (if any) as indicated by a target icon

Demo Browser

View a list of all your saved demos by clicking the demo playback icon on the main menu's top-right section. From here you can play and delete demos as well as open the local directory where they're saved.

The demo browser list currently prints out fields with the following information:

  • Demo filename
  • Date and time of demo recording
  • Length of demo recording

These fields can be sorted in ascending or descending order by clicking the column's field name.

demo_browser.jpg
The date and length fields will show incorrect readings for demos captured prior to the March 2020 update.

The browser is also only accessible via the main menu if you have .dem files stored in your game's demo folder directory.

Other Demo Commands

Below are some other commands useful for demo playback.

NVG Toggle

togglenvg <1/0> - Toggles night vision goggles camera effect during demo playback.

Use a cycle convar to allow it to be toggled on and off with a single keybind:

bind <key> ~togglenvg 1;togglenvg 0

Camera Save Points

Debug camera save point commands (including autosave and autoload) can be used during demo playback.

Player Seeds

The playerseed and shuffleplayerseed commands can be used during demo playback to change the appearance of a specific player featured in the demo recording.

Time & Weather

The admin time and weather commands are useful for modifying the weather and time conditions of a demo recording, particularly useful when you are after a certain mood or time of day but want to maintain the captured performances of your demo.

Quality Options

Take a look at the various additional quality options on the 'other commands' page which can help improve the rendering distance and appearance of shots in demos.