.:`=-~rANdOm~`-=:. Game Servers

.:`=-~rANdOm~`-=:. Game Servers (Read Only) => Guides => Topic started by: Cable on April 21, 2011, 05:58:41 PM

Title: How to record a demo file (.dem)
Post by: Cable on April 21, 2011, 05:58:41 PM
Introduction
A demo is a source recording that can be recorded and watched by typing simple commands in the console.
Recording demo's can be very useful for film creators like myself, But they can also be great proof for reports here on the forum and such.

Step 1:
While you are in game (TTT for example) press ~ to open your console.
(Your console MAY NOT be enabled. To enable it, Go to your Garrys mod options, Go to Keyboard and Mouse settings, click on advanced settings, and check the box that reads "Enable developers console"
Step 2:
Then you're going to type "record *You can put any file name here*"
So for example, Someone was hacking in TTT, I would spectate them and type in the console "record speedhacker"
It will then start recording, and it wont stop recording until you type stop in the console.
Step 3:
Once you've captured proof with the recording, The demo file can be found in your steam folder under
Program files/steam/steamapps/*your user name*/garrysmod/garrysmod
The file will be in there. From there all you need to do is upload it to any upload site. For example:
http://www.filesmelt.com/ (http://www.filesmelt.com/) or http://www.mediafire.com/ (http://www.mediafire.com/)
Once it's uploaded, Just simply make a report following the reference, and enter the file download link for proof.
Additional Information:
If you want to watch the recording yourself, go back into Garrysmod
open the console and type in "playdemo *file name here*"
So once again using my example, I would type "playdemo speedhacker"
The demo would start to play.

I need to note that some keyboards are not 'US' keyboards, so even when you enable the console, you can't open the console.

That's why you use Launch Options

1. Right click the Game at the Library

2. Click Launch Options

3. Write -console

That'll automaticly open ALWAYS the console, when you run the game.

Or, you could just mess up with the configs like bind x "toggleconsole" put that to your autoexec, or any config.
This works ONLY while playing.

-Thanks Mehis!
Title: Re: How to record a demo file (.dem)
Post by: jimonions on April 21, 2011, 06:00:20 PM
stickied for usefulness.
Title: Re: How to record a demo file (.dem)
Post by: Deelpeel on April 21, 2011, 06:00:50 PM
tyvm! i always wondered how to play my demos :P
Title: Re: How to record a demo file (.dem)
Post by: Dale Feles on April 21, 2011, 06:12:29 PM
Can you convert your files to .avi and such?
Title: Re: How to record a demo file (.dem)
Post by: Don on April 21, 2011, 06:13:14 PM
Can you convert your files to .avi and such?
No, you'll have to re-record them with a program such as Fraps.
Title: Re: How to record a demo file (.dem)
Post by: Cable on April 21, 2011, 06:13:51 PM
Can you convert your files to .avi and such?
You can use fraps to record the demo file.
Just play the demo in game and turn fraps on.
This is how i make ALL of my gmod videos.

asdf don beating me to it
Title: Re: How to record a demo file (.dem)
Post by: Hitman on April 21, 2011, 06:16:08 PM

EDIT: I forgot, Gabe Newell's bullshit engine update prevents this way to work. Use FRAPS.
Title: Re: How to record a demo file (.dem)
Post by: Cable on April 21, 2011, 06:17:42 PM
There is another way to make them .avi or any other format
Code: [Select]
host_framerate 30
startmovie [filename] [video format]
playdemo [demo name]
Once it is done, type "endmovie"
Ah yes, I forgot this way.
Fraps is easier imo.
Title: Re: How to record a demo file (.dem)
Post by: Hitman on April 21, 2011, 06:19:38 PM
Ah yes, I forgot this way.
Fraps is easier imo.
But this way doesn't decrease fps and it also has good quality.

EDIT: I forgot, Gabe Newell's bullshit engine update prevents this way to work. Use FRAPS.
Title: Re: How to record a demo file (.dem)
Post by: Mr. Franklin on April 21, 2011, 07:21:39 PM
i like this guide very much.
Title: Re: How to record a demo file (.dem)
Post by: » Magic « on April 22, 2011, 03:30:14 AM
No, you'll have to re-record them with a program such as Fraps.

Yes you can

playmovie <dem> mp4
playdemo <dem>

Wait for it to finish then the mp4 will be in the gmod root dir
Title: Re: How to record a demo file (.dem)
Post by: blαh2355 on April 22, 2011, 08:49:39 PM
For some reason, my gmod didn't have .mp4 extension, only .avi :(
Title: Re: How to record a demo file (.dem)
Post by: Deacon on April 23, 2011, 01:29:13 AM
Yes you can

playmovie <dem> mp4
playdemo <dem>

Wait for it to finish then the mp4 will be in the gmod root dir

this is broken
Title: Re: How to record a demo file (.dem)
Post by: » Magic « on April 23, 2011, 03:00:59 AM
this is broken

Have you downloaded an MP4 encoder?

http://www.xvid.org/Downloads.15.0.html (http://www.xvid.org/Downloads.15.0.html)
Title: Re: How to record a demo file (.dem)
Post by: Mehis on April 23, 2011, 03:40:46 AM
I need to note that some keyboards are not 'US' keyboards, so even when you enable the console, you can't open the console. (Like mine)

That's why you use Launch Options

1. Right click the Game at the Library

2. Click Launch Options

3. Write -console

That'll automaticly open ALWAYS the console, when you run the game.

Or, you could just mess up with the configs like bind x "toggleconsole" put that to your autoexec, or any config.
This works ONLY while playing.

Also, i must say using startmovie avi (or something like that) doesn't actually make it BEST quality. Best solution is to make them to pictures, then put them together with VirtualDub. I know, it takes lot of space, but i think it has better quality.
Title: Re: How to record a demo file (.dem)
Post by: Hitman on April 23, 2011, 04:30:00 AM
I need to note that some keyboards are not 'US' keyboards, so even when you enable the console, you can't open the console. (Like mine)

That's why you use Launch Options

1. Right click the Game at the Library

2. Click Launch Options

3. Write -console

That'll automaticly open ALWAYS the console, when you run the game.

Or, you could just mess up with the configs like bind x "toggleconsole" put that to your autoexec, or any config.
This works ONLY while playing.

Also, i must say using startmovie avi (or something like that) doesn't actually make it BEST quality. Best solution is to make them to pictures, then put them together with VirtualDub. I know, it takes lot of space, but i think it has better quality.

I never said the best quality, I only said good framerate in the video after its done rendering.
Title: Re: How to record a demo file (.dem)
Post by: » Magic « on April 23, 2011, 04:33:38 AM
I need to note that some keyboards are not 'US' keyboards, so even when you enable the console, you can't open the console. (Like mine)

That's why you use Launch Options

1. Right click the Game at the Library

2. Click Launch Options

3. Write -console

That'll automaticly open ALWAYS the console, when you run the game.

Or, you could just mess up with the configs like bind x "toggleconsole" put that to your autoexec, or any config.
This works ONLY while playing.

Also, i must say using startmovie avi (or something like that) doesn't actually make it BEST quality. Best solution is to make them to pictures, then put them together with VirtualDub. I know, it takes lot of space, but i think it has better quality.

For me it's `...
Title: Re: How to record a demo file (.dem)
Post by: jimonions on April 23, 2011, 04:53:29 AM
Doing what Mehis says will give you flawless framerates. There are some problems with source recorder like it doesn't show particles.

I found that when I recorded as .avi it messed up the sound sync and framerates.
Title: Re: How to record a demo file (.dem)
Post by: Hitman on April 23, 2011, 06:18:35 AM
Doing what Mehis says will give you flawless framerates. There are some problems with source recorder like it doesn't show particles.

I found that when I recorded as .avi it messed up the sound sync and framerates.

So wait, does source recorder work again? Last time I used, I couldn't choose a codec and it crashes when I load a demo.
Title: Re: How to record a demo file (.dem)
Post by: jimonions on April 23, 2011, 07:21:10 AM
It does work.

you need the xvid codec, google it.
sometimes it will crash when loading a demo, just restart and it will work.
Im assuming you already know how to record .raw into .avi with virtualdub.
Title: Re: How to record a demo file (.dem)
Post by: Cable on April 23, 2011, 07:55:43 AM
Ok op is updated.
Fixed the issue
Title: Re: How to record a demo file (.dem)
Post by: Castle on July 24, 2011, 01:21:08 AM
Thanks.
Title: Re: How to record a demo file (.dem)
Post by: Jman on July 24, 2011, 01:28:58 AM
Thanks.

Beautiful bump brother.
Title: Re: How to record a demo file (.dem)
Post by: blαh2355 on August 05, 2011, 01:49:06 PM
Beautiful bump brother.
But it's stickied.

Sorry to ask the question again but, how do I create a movie in .mp4? I got the codec but still doesn't work. Also .avi doesn't work either. Movie command is broken?
Title: Re: How to record a demo file (.dem)
Post by: Deacon on August 05, 2011, 03:50:47 PM
But it's stickied.

Sorry to ask the question again but, how do I create a movie in .mp4? I got the codec but still doesn't work. Also .avi doesn't work either. Movie command is broken?

yes, i can't get it to work. last time i tried it made me 100000 .tga's.
Title: Re: How to record a demo file (.dem)
Post by: ursus on August 06, 2011, 08:48:12 AM
yes, i can't get it to work. last time i tried it made me 100000 .tga's.

you have to put "avi" in the command...

and tga is only useful if you want extreme quality
Title: Re: How to record a demo file (.dem)
Post by: Deacon on August 06, 2011, 08:55:35 AM
you have to put "avi" in the command...

and tga is only useful if you want extreme quality

I did.
Title: Re: How to record a demo file (.dem)
Post by: ursus on August 06, 2011, 11:55:36 AM
I did.

Did you make sure you have all the right codecs?
Title: Re: How to record a demo file (.dem)
Post by: Deacon on August 06, 2011, 02:54:39 PM
Did you make sure you have all the right codecs?

i had assumed so
Title: Re: How to record a demo file (.dem)
Post by: Tomcat on August 10, 2011, 10:51:07 PM
i had assumed so

Sometimes source can be gay

there is your answer
Title: Re: How to record a demo file (.dem)
Post by: coolzeldad on December 30, 2011, 04:31:03 AM
Added to wiki:

http://wiki.randomgs.com/index.php?title=Record_Demo (http://wiki.randomgs.com/index.php?title=Record_Demo)

LOCKED