Demos

Locked
JB
Posts: 1030
Joined: Fri Sep 22, 2006 11:31 am

Demos

Post by JB »

Can i bind a key to g_synchronousclients 1 and /record?
spookmineer
Posts: 506
Joined: Fri Nov 29, 2002 8:00 am

Post by spookmineer »

If you're playing online, using g_synchronousclients "1" will make you lag.
It is however needed to start recording a demo. Start recording it, then change g_synchronousclients back to "0".

I have been using this script that works fine (there most likely are more compact scripts to achieve the same thing...)

Code: Select all

// Record demos
//
// Push keypad-delete ( . ) to record a demo.
// Push this key again to stop the recording.
//
// You can record up to 20 demos in one game.
// Make sure you rename the demos after you left the game.
//
// IF YOU DON'T RENAME THE DEMOS, THE DEMOS WILL BE OVERWRITTEN THE
// NEXT TIME YOU RECORD NEW DEMOS.
//
bind kp_del vstr demotoggle
set startdemo "g_synchronousClients 1;vstr demonumber;g_synchronousClients 0; set demotoggle vstr stopdemo"
set stopdemo "stoprecord; vstr democycle; set demotoggle vstr startdemo"
set demo_1 "record demo_1; set demonumber vstr demo_2"
set demo_2 "record demo_2; set demonumber vstr demo_3"
set demo_3 "record demo_3; set demonumber vstr demo_4"
set demo_4 "record demo_4; set demonumber vstr demo_5"
set demo_5 "record demo_5; set demonumber vstr demo_6"
set demo_6 "record demo_6; set demonumber vstr demo_7"
set demo_7 "record demo_7; set demonumber vstr demo_8"
set demo_8 "record demo_8; set demonumber vstr demo_9"
set demo_9 "record demo_9; set demonumber vstr demo_10"
set demo_10 "record demo_10; set demonumber vstr demo_11"
set demo_11 "record demo_11; set demonumber vstr demo_12"
set demo_12 "record demo_12; set demonumber vstr demo_13"
set demo_13 "record demo_13; set demonumber vstr demo_14"
set demo_14 "record demo_14; set demonumber vstr demo_15"
set demo_15 "record demo_15; set demonumber vstr demo_16"
set demo_16 "record demo_16; set demonumber vstr demo_17"
set demo_17 "record demo_17; set demonumber vstr demo_18"
set demo_18 "record demo_18; set demonumber vstr demo_19"
set demo_19 "record demo_19; set demonumber vstr demo_20; echo ^1YOU ONLY HAVE ONE DEMO LEFT BEFORE THE OLD DEMOS WILL BE OVERWRITTEN!"
set demo_20 "record demo_20; set demonumber vstr demo_1"
set demonumber vstr demo_1
set demotoggle vstr startdemo
JB
Posts: 1030
Joined: Fri Sep 22, 2006 11:31 am

Post by JB »

Where are you putting that code?
prince1000
Posts: 1892
Joined: Sun Jan 07, 2001 8:00 am

Post by prince1000 »

set rec "vstr first_rec"
set first_rec "g_synchronousclients 1;wait;record;wait;g_synchronousclients 0;set rec vstr second_rec"
set second_rec "stoprecord; set rec vstr first_rec"
bind F3 "vstr rec"

no overwriting of demos. in osp/cpma you can bind autorecord to a key or use autoaction, which is a bitmask.

CPMA:

Code: Select all

cg_autoAction <bitmask> (default = 0)
    Perform game actions such as demo recording and screenshots. 
    1 - save stats to a local text file at the end of a match logs are stored in: <cpma_root>/stats/<date>/<logname>.txt 
    2 - take an end-of-game screenshot 
    4 - record a demo of the game (requires warmup to be on) 
    8 - multiview the game (spectators only) 
    16 - only do these things if you're actually playing in the game

OSP:

Code: Select all

cg_autoAction <option_bitmask> (default = 0)
      Automatically performs actions at certain points in the game.

       <option_bitmask>:
             1 - Automatically save stats to a local text
                 file at the end of a match. Logs will be
                 stored in:

                   <osp_root>/stats/<date>/<logname>.txt

             2 - Automatically takes an end-level screenshot
             4 - Automatically records a match (requires
                 a full warmup server - g_warmup = 0)
             8 - Dump your team's weapon stats
            16 - Dump all players' weapon stats

i use 22 in CPMA and 6 in OSP
Last edited by prince1000 on Fri Nov 10, 2006 11:27 pm, edited 1 time in total.
JB
Posts: 1030
Joined: Fri Sep 22, 2006 11:31 am

Post by JB »

right... My knowledge of the console is fairly limited, i just want a simple and uncomplicated method of recording demos so that i dont get fragged while i type it into the console.
prince1000
Posts: 1892
Joined: Sun Jan 07, 2001 8:00 am

Post by prince1000 »

JB wrote:Where are you putting that code?

put it in autoexec.cfg and change the bind to whichever key you're comfortable with.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

spookmineer, you can just bind "g_synchronousclients 1; record; g_synchronousclients 0" to a key; the engine won't overwrite existing demos but record them as demoXXXX.dm_68 instead.
spookmineer
Posts: 506
Joined: Fri Nov 29, 2002 8:00 am

Post by spookmineer »

I use the script for Elite Force, and although I tested this a long time ago, if I recall correctly it does overwrite with such a script (which is weird cos it's based off of Q3).
Ah well, I never had to record more then 12 consecutive games ;)

Thnx anyway
JB
Posts: 1030
Joined: Fri Sep 22, 2006 11:31 am

Post by JB »

someone give it to me simply: What do i put into the console to bind the two functions to keys?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

bind f6 "g_synchronousclients 1; record; g_synchronousclients 0"
bind f7 "stoprecord"
JB
Posts: 1030
Joined: Fri Sep 22, 2006 11:31 am

Post by JB »

Thank you, it worked swimmingly :D
Locked