Demo Recorder Guide
Obraxis
Subnautica Animator & Generalist, NS2 Person Join Date: 2004-07-24 Member: 30071Super Administrators, Forum Admins, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Silver, WC 2013 - Supporter, Subnautica Developer, Pistachionauts
<div class="IPBDescription">Help the Devs help YOU!</div>Hi everyone, there is very little documentation on the new Demo Recorder included in build 208. This is a guide on how to use it, in it's current state. It's VERY useful for recording hard-to-reproduce bugs, as it records all network packets you send/receive (including voice chat, just not your own yet). For now, the files are linked to the build, but this will be unlinked in the future at some point.
This may also be useful for recording matches for the competitive community, or for Frag movies.
Please use the following commands...
<!--coloro:#FFA500--><span style="color:#FFA500"><!--/coloro-->Remember to start recording <!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><b><!--coloro:#FFFF00--><span style="color:#FFFF00"><!--/coloro-->before <!--colorc--></span><!--/colorc--></b><!--sizec--></span><!--/sizec-->the map loads. It will not record otherwise.<!--colorc--></span><!--/colorc-->
<!--coloro:#F4A460--><span style="color:#F4A460"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>To Record in console type:</b><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->
<b><!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro-->record<!--colorc--></span><!--/colorc--></b> <optional filename> (do it in the main menu)
<b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->stop<!--colorc--></span><!--/colorc--></b> when you disconnect to stop recording
<b><!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->Space<!--colorc--></span><!--/colorc--></b> Time syncing on/off toggle
<b>'<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->p<!--colorc--></span><!--/colorc-->'</b> to bring up Profiler
<b>'<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->r<!--colorc--></span><!--/colorc-->'</b> for r_stats
<!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro-->Basic Guide (from Kouji) is:<!--colorc--></span><!--/colorc-->
<!--coloro:#98FB98--><span style="color:#98FB98"><!--/coloro-->- start up NS2
- pull up the console and type <b>record </b>>insert name here optionally<
- join a server
- to stop recording you can either use stop in the console or simply disconnect from the server (both work)<!--colorc--></span><!--/colorc-->
Replays are saved in %appdata%\Natural Selection 2\<filename> (no file extention yet)
To <!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro--><b>play</b><!--colorc--></span><!--/colorc-->, bring down console & type 'play filenamehere'
Recording a Demo makes a bug auto-reproducible on THAT Build. It will help the Devs GREATLY.
Unfortunately for now, replays break with each new build, but please record as much as possible.
Thanks everyone! :-)
This may also be useful for recording matches for the competitive community, or for Frag movies.
Please use the following commands...
<!--coloro:#FFA500--><span style="color:#FFA500"><!--/coloro-->Remember to start recording <!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><b><!--coloro:#FFFF00--><span style="color:#FFFF00"><!--/coloro-->before <!--colorc--></span><!--/colorc--></b><!--sizec--></span><!--/sizec-->the map loads. It will not record otherwise.<!--colorc--></span><!--/colorc-->
<!--coloro:#F4A460--><span style="color:#F4A460"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>To Record in console type:</b><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->
<b><!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro-->record<!--colorc--></span><!--/colorc--></b> <optional filename> (do it in the main menu)
<b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->stop<!--colorc--></span><!--/colorc--></b> when you disconnect to stop recording
<b><!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->Space<!--colorc--></span><!--/colorc--></b> Time syncing on/off toggle
<b>'<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->p<!--colorc--></span><!--/colorc-->'</b> to bring up Profiler
<b>'<!--coloro:#FF8C00--><span style="color:#FF8C00"><!--/coloro-->r<!--colorc--></span><!--/colorc-->'</b> for r_stats
<!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro-->Basic Guide (from Kouji) is:<!--colorc--></span><!--/colorc-->
<!--coloro:#98FB98--><span style="color:#98FB98"><!--/coloro-->- start up NS2
- pull up the console and type <b>record </b>>insert name here optionally<
- join a server
- to stop recording you can either use stop in the console or simply disconnect from the server (both work)<!--colorc--></span><!--/colorc-->
Replays are saved in %appdata%\Natural Selection 2\<filename> (no file extention yet)
To <!--coloro:#9ACD32--><span style="color:#9ACD32"><!--/coloro--><b>play</b><!--colorc--></span><!--/colorc-->, bring down console & type 'play filenamehere'
Recording a Demo makes a bug auto-reproducible on THAT Build. It will help the Devs GREATLY.
Unfortunately for now, replays break with each new build, but please record as much as possible.
Thanks everyone! :-)
Comments
It's pretty crazy how it records your mouse movements and console input as well. I wish you could start recording while connected though.
Also, I guess file sizes will be quite big for long games. I recorded for a minute and it was 6mb. (edit: they seem to RAR nicely)
I hope they continue to add options to it to help people record videos of their gameplay (rewind controls etc).
I hope they continue to add options to it to help people record videos of their gameplay (rewind controls etc).<!--QuoteEnd--></div><!--QuoteEEnd-->
Most of that 6MB is just loading the map and assets, Dushan is going to optimize that in the future. A 20-30 min game should be around 30-40MB.
It's on the list. currently it can only play the demo file from the start. It will get some kind of control further on down the line and of course more feature, but for now it is mostly an extra tool to help the devs debug certain things.
That's all you're able to do. Remember, it's exactly like the HL1-demos.
I guess the server recorder is like HLTV, which enables anything you want? Not sure though as spectator also is lacking the FPS perspective still
Arf, I recorded 40 min of game -150 MB-
I tried editing the final file -cutting it-, but I think that the incremental counter at the beginning of each packet breaks my client.
I'll try it out on the next matches for sure!
Recording a demo takes up virtually no performance hit on your computer, so it really is worth recording most of the time in case you encounter a bug, have a GREAT match or Competitive players can record from different viewpoints, to edit together an awesome Clan Match or Frag movie.
But I think we can all agree this is a great start to a very useful feature.
Definitely. Kudos to the devs for this.
Is there any way to dump frames (ie. "startmovie" in goldsrc) ingame currently? Fraps and other similar programs aren't sufficient for making high quality recordings for movies unfortunately.
Oh good grief, thanks for the timely heads up. Why the ###### am I even modding this game anymore...
Yeah it's not like they had time to give you heads up... :D
Not yet - but it's early days yet.
<!--quoteo(post=1937314:date=May 19 2012, 04:27 PM:name=fanatic)--><div class='quotetop'>QUOTE (fanatic @ May 19 2012, 04:27 PM) <a href="index.php?act=findpost&pid=1937314"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Is there any way to dump frames (ie. "startmovie" in goldsrc) ingame currently? Fraps and other similar programs aren't sufficient for making high quality recordings for movies unfortunately.<!--QuoteEnd--></div><!--QuoteEEnd-->
Not yet, but this can be a feature request if you'd like!
<!--quoteo(post=1937380:date=May 19 2012, 08:13 PM:name=player)--><div class='quotetop'>QUOTE (player @ May 19 2012, 08:13 PM) <a href="index.php?act=findpost&pid=1937380"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Okay so what exactly will this server-recorder be? Something like HLTV where it's basically all the individual client's packet-streams muxed into a single file? Or will it in fact store all data (entities\sounds\effect etc) regardless of awareness of the players?<!--QuoteEnd--></div><!--QuoteEEnd-->
I don't know yet. When I have more info on future plans I will let people know :-)
Issues:
You cant stop profile if you're jumping in the record (the jump event resumes it).
The record play is associated with the FPS. In the same CPU there will be no troubles. If you try to record the game -fps drop- or change the CPU, you can have marines running like skulks or skulks like gorgies -fatty slow-.
Btw, with a little black magic, perl, IDA, olly and a little LUA trick, I can skip big blocks of the recording. I figured some parts of record file, inbounds packets, input events (02 .. 01, 03 .. 05, bla bla) but its insane the work involved.
I don't know yet. When I have more info on future plans I will let people know :-)
<!--QuoteEnd--></div><!--QuoteEEnd-->
Right, well I'm assuming it will be muxed packet-streams then, cause it's the most easy method, and you can re-use code from the demo-recorder you have right here. And considering a certain someone else is already taking the hard route of gamestate-recording, it would be a bit of a time-waster to redo done stuff, especially with all the work still ahead for the game.
I would really like to see this as well. Fraps is not optimal at capturing footage.
A command similar to HL1 "startmovie" will enable everyone to get fluid footage at any FPS setting.
Also, the slowdown on different CPU speeds makes it a bit useless for recording movies. When you start recording footage, the game slows down to a crawl...
If there was just any navigation, or the ability to start/stop recording at any time + the rendered game afterwards was independent of the CPU speed, I think this would be amazing.
https://forums.unknownworlds.com/discussion/152604/marine-jump-broken-since-todays-patch#latest