Auto-record Demo
Wyzcrak
Pot Pie Aficionado Join Date: 2002-12-04 Member: 10447Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue
<div class="IPBDescription">-- how is this possible?</div> I need a way to automatically record a demo for every NS game I play. If I don't script the 'record' command, I'll never remember to use it.
Here's one idea I have: I already have jointeamone ([) and jointeamtwo (]) bound. Should I add the record command to these binds, and add 'stop' to my F4 bind? Maybe that would work, but....
I want every demo I start (automatically, via the binds) to be stored in a unique filename. How can I pull this off? I don't know of a way to use variables in the HL console.
Wyzcrak
Here's one idea I have: I already have jointeamone ([) and jointeamtwo (]) bound. Should I add the record command to these binds, and add 'stop' to my F4 bind? Maybe that would work, but....
I want every demo I start (automatically, via the binds) to be stored in a unique filename. How can I pull this off? I don't know of a way to use variables in the HL console.
Wyzcrak
Comments
alias recdemo
alias demo1 "record demo1; alias recdemo demo2"
alias demo2 "record demo2; alias recdemo demo3"
alias demo3 "record demo3; alias recdemo demo1"
bind [ "jointeamone; wait; wait; wait; wait; recdemo"
bind ] "jointeamtwo; wait; wait; wait; wait; recdemo"
bind f4 stop
Of course you can add as many unique demonames as you want to the script (which should be kept in autoexec.cfg). I havn't tested it but it should work. The script should keep the last 3 demos (more if you want), while overwriting the oldest one. If you want to keep a demo, just rename it. Also, there is a bug in HL you should be aware of: if you record a demo on one map, and the map changes, many times if you record another demo it will be corrupted and unreadable. If you want to be sure every game is recorded, you'll have to re-enter HL on every map change.
record NSdemo
to the end of it. Whenever you boot up NS it'll record a demo to that filename. If its actually a demo you really want, be sure to remove it from the folder or rename it, cause the next game you start, it'll save over that demo.
Simple...
So far, my starting block is RandomEngy's post.
Thank you both for your input.
Wyzcrak