Auto-record Demo

WyzcrakWyzcrak 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

Comments

  • RandomEngyRandomEngy Join Date: 2002-11-03 Member: 6146Members, Reinforced - Shadow
    That sounds like it might work. I suggest you add a lot of wait statement between joining the team and starting the demo, to avoid any potential conflicts. For the unique filenames thing, you could do something like this:

    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.
  • SoBe_DragonSoBe_Dragon Join Date: 2002-12-04 Member: 10465Members
    edited February 2003
    go to your autoexec.cfg and add

    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...
  • WyzcrakWyzcrak Pot Pie Aficionado Join Date: 2002-12-04 Member: 10447Forum Moderators, Constellation, NS2 Playtester, Squad Five Blue
    SoBe.Dragon, you're solution is inadequete because I want a demo recorded for each NS game, not simply each NS session (not always the same thing).

    So far, my starting block is RandomEngy's post.

    Thank you both for your input.
    Wyzcrak
Sign In or Register to comment.