Whenever you play on the server, demos are automatically recorded. A demo essentially constantly records what you’re doing and then saves locally. This can be useful if you ever need to go back and review a clip. If you make a report or action request, you will most likely need to provide evidence so it’s very useful to have demos enabled. It can protect you if someone lies as you have proof. Demos must remain enabled at all times and rule 1.4 states that you must keep any demo for 21 days. Demos can start to take up quite a large amount of space on your PC but once 21 days have passed since the demo was recorded, you’re free to delete it.
There is a demo button on the main menu where you’re able to access all of your demos. Click it to go to see a list of your demos.
Prior to loading up a demo, it’s recommended that you connect to the main server (151.80.230.124:27015) first, so that you can load up the server content to reduce errors/missing textures once you load into a demo. Once you have done this, head back to the ‘Demos’ section of the menu and hover over the demo of your choice and press the ‘play’ button. It will take a minute or so to load the demo once you’ve pressed it.
It can be tricky to know which demo to load into. The title of each demo makes it easier for you to know what the demo might have in it. Each demo file is formatted with the server name, date and the time the demo started recording. Once you’ve started playing on the server a lot, you’re likely to have multiple demo files for each day. This is because a demo recording records for a certain amount of time and then a new one begins.
You may need to manually end a demo recording when you’re on the server. This may be because you’ve just been killed for no reason and you want to now make an action request on that person. This way, if you end the recording you will know exactly where to go in the demo (the very end) as it ended just after the incident. To manually end a demo recording, open up the console by pressing the grave accent key, which is positioned above the TAB key as seen in the image below.
Once you have opened up the console, type in ‘stopdemo’ and press the ENTER key or click Submit. Following this, the demo will end and a new one will automatically begin to record. You may need to restart your game to see the latest demo recordings on the demos screen.
By default, once you’ve loaded up a demo you don’t get much information as names don’t always load and it can be hard to identify someone in a demo. However, TinySlayer has developed a LUA script that enables you to use ESP in demos to make it much easier to identify people. To install the ESP, you need to follow the instructions found here: https://perpheads.com/threads/using-wallhacks-in-demos.34418/
From the image, you can see that enabling ESP in your demo provides a lot more information such as the player’s steam name, steamID and what they’re currently holding. The person to the left before ESP was loaded has no information at all.
Controlling the demo Once you’ve loaded up your demo and followed the instructions for loading up ESP, you can now start to play the demo. It’s incredibly useful to make the demo playback box appear. You can do this by pressing (SHIFT + F2) or if that doesn’t work, open up the console again and type in ‘demoui’ or ‘demoui2’. They’re very similar but in this case, I will be using demoui.
Once you have got to that part of the demo that you want to record, make use of software tools to record your screen such as ShadowPlay (Nvidia GPUs), Radeon Software (AMD GPUs) or OBS. Just start recording and press the ‘Resume’ button if that playback has been paused. Once you’re done, just end the recording. Make sure to take note of the tick when the incident occurred as you may need it later. If you’re unable to record your screen, send the file to a staff member and they will be able to access and record it for you.
Sometimes you may be required to upload your demo alongside your video if more playback is needed. You may also be required to provide your demo if you’ve had a report or action request made on you and the staff member investigating needs to see your POV. There are several platforms that can be used to upload the file such as Google Drive, Mega and Dropbox. To get the actual demo file you will need to grab it from your demos folder. To do this, go onto your Steam library, right click Garry’s Mod and press properties. At the top, press ‘Local Files’ and then ‘Browse local files’. This will bring up the game directory in your file explorer. From here, click the garrysmod folder and then the demos folder. Select the demo based on the filename you saw in-game and upload it using any file sharing website. You can now share this demo file with a staff member and provide a demo tick if required. You can upload the video you recorded with a platform such as YouTube or Streamable.
As previously mentioned, demos begin to take up a large chunk of space once you start playing on the server a lot. You are allowed to delete any demo file that is older than 21 days. Head back into the demo folder as mentioned in the previous section and just right click any the demos that are 21 days or older and click delete. Make sure not to delete any demos below 21 days as the server rules state (1.4) you’re obligated to upload the demo and may be punished if you can’t upload it.
You can also automate this process using a PowerShell Script. Please copy all of the following text it into a new file ending with the .ps1 extension:
$limit = (Get-Date).AddDays(-21)
$path = "D:\Games\Steam\steamapps\common\GarrysMod\garrysmod\demos"
# Delete files older than the $limit.
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
# Delete any empty directories left behind after deleting the old files.
Get-ChildItem -Path $path -Recurse -Force | Where-Object { $_.PSIsContainer -and (Get-ChildItem -Path $_.FullName -Recurse -Force | Where-Object { !$_.PSIsContainer }) -eq $null } | Remove-Item -Force -Recurse
You will need to ensure you replace " with " on line 2
Edit the path in the file to match your Garry's Mod demos folder and save it. Whenever you run the script, it will automatically delete any demos that are over 21 days old. I would also recommend using Windows Task Scheduler to make it run at your PC startup otherwise you will have to manually run it. Here is a useful guide on how to do this by clicking HERE.
If you have any questions about the script or demos at all, you can contact me on the forums by clicking HERE.
Version: 2
Author: SpaceShots
Created On: May 9, 2020, 10:10 p.m.
Created By: SpaceShots