collapse

* Board Stats

  • stats Total Members: 737
  • stats Total Posts: 20380
  • stats Total Topics: 4741
  • stats Total Categories: 3
  • stats Total Boards: 19
  • stats Most Online: 251

Author Topic: Simple config file for demo playback  (Read 3895 times)

RexGoodthings

  • adminserver
  • Sr. Member
  • *****
  • Posts: 347
  • Karma: +20/-2
    • View Profile
Simple config file for demo playback
« on: September 14, 2011, 07:04:04 pm »
For those that view a lot of demos, here are some simple key binds to help with playback speed and a toggle for r_shownormals.  (For those that don't know, 'r_shownormals 1' gives the demo a view similar to what a wallhacker might see.)

The following code can be pasted into /UrbanTerror/q3ut4/autoexec.cfg

Code: [Select]
//----SIMPLE DEMO PLAYBACK SETTINGS----//

set demoPause "cl_freezeDemo 1; set speedDown vstr unPause; set speedUp vstr unPause; ut_echo ^5Paused (sort of)"
set unPause   "cl_freezeDemo 0; vstr demoSpeed00"

set demoSpeed00 "set speedUp vstr demoSpeed01; set speedDown vstr demoPause  ; timescale 0.1 ; ut_echo TimeScale: x^60.1"
set demoSpeed01 "set speedUp vstr demoSpeed02; set speedDown vstr demoSpeed00; timescale 0.25; ut_echo TimeScale: x^60.25"
set demoSpeed02 "set speedUp vstr demoSpeed03; set speedDown vstr demoSpeed01; timescale 0.5 ; ut_echo TimeScale: x^60.5"
set demoSpeed03 "set speedUp vstr demoSpeed04; set speedDown vstr demoSpeed02; timescale 0.75; ut_echo TimeScale: x^60.75"
set demoSpeed04 "set speedUp vstr demoSpeed05; set speedDown vstr demoSpeed03; timescale 1   ; ut_echo TimeScale: ^6NORMAL"
set demoSpeed05 "set speedUp vstr demoSpeed06; set speedDown vstr demoSpeed04; timescale 1.5 ; ut_echo TimeScale: x^61.5"
set demoSpeed06 "set speedUp vstr demoSpeed07; set speedDown vstr demoSpeed05; timescale 2   ; ut_echo TimeScale: x^62"
set demoSpeed07 "set speedUp vstr demoSpeed08; set speedDown vstr demoSpeed06; timescale 4   ; ut_echo TimeScale: x^64"
set demoSpeed08 "set speedUp vstr demoSpeed09; set speedDown vstr demoSpeed07; timescale 7   ; ut_echo TimeScale: x^67"
set demoSpeed09 "set speedUp vstr demoSpeed09; set speedDown vstr demoSpeed08; timescale 10  ; ut_echo TimeScale: x^610"
vstr demoSpeed04

bind END  "toggle r_shownormals"
bind INS  "vstr speedDown"        //slow down playback
bind PGUP "vstr speedUp"          //speed up playback
bind HOME "cl_freezeDemo 0; vstr demoSpeed04"       //normal playback

This uses the Insert key to slow down the demo, PageUp to speed it up, the Home key to reset speed to normal, and the End key to toggle shownormals.  The keys can be changed, but most standard keys will also end demo playback; you are pretty much limited to the keypad, function and arrow keys for demo related binds.

This is hardly the final word in demo playback config files, but should be sufficient for most demo reviewing.  In regards to recording demos there are options that might help resolve some of the strange timing issues (shots that seem to hit late, etc.) in demos, but probably aren't that important.  And there are many cosmetic options for demo playback, such as turning off HUD elements and going to third person view to get interesting screenshots, etc.

For more of these options, see:

 http://urtadmins.com/e107_plugins/forum/forum_viewtopic.php?1397
 http://urt.taggedzi.com/guide8.php
 http://urt.taggedzi.com/articles/file/cfg/demoPlayback.cfg

« Last Edit: September 19, 2011, 02:59:15 pm by RexGoodthings »
The reverend don't tell me his business, so I don't see any reason to tell him mine.

iPWN

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
  • Thanked: 11 times
  • Karma: +111/-17
    • View Profile
Re: Simple config file for demo playback
« Reply #1 on: September 14, 2011, 09:46:08 pm »
Thanks Rex!!!

Honestly, I didn't tested it yet :S

El Charly

  • Member
  • Sr. Member
  • *****
  • Posts: 287
  • Karma: +9/-0
    • View Profile
Re: Simple config file for demo playback
« Reply #2 on: September 15, 2011, 01:35:38 am »
Nice! Thanks!

ubernoob

  • adminserver
  • Hero Member
  • *****
  • Posts: 1246
  • Karma: +56/-4
    • View Profile
Re: Simple config file for demo playback
« Reply #3 on: September 18, 2011, 12:42:22 pm »
hey

awesome thing, helps a lot

just a question: is there a way to let the demo be played again after being finished?, something like a repeat-button?

RexGoodthings

  • adminserver
  • Sr. Member
  • *****
  • Posts: 347
  • Karma: +20/-2
    • View Profile
Re: Simple config file for demo playback
« Reply #4 on: September 18, 2011, 10:49:16 pm »
just a question: is there a way to let the demo be played again after being finished?, something like a repeat-button?

No, unfortunately there is no rewind or automatic replay.  Rewind would be mighty handy.
The reverend don't tell me his business, so I don't see any reason to tell him mine.

Spade

  • Newbie
  • *
  • Posts: 38
  • Karma: +3/-0
    • View Profile
Re: Simple config file for demo playback
« Reply #5 on: December 26, 2012, 09:59:16 am »
Below are mine ("softcore" and "hardcore"). Note that you you want to use "hardcore", it will overwrite your default config so back that up first and put back afterwards.
"softcore";
Code: [Select]
//In this file you can do settings that will be executed everytime Urban Terror is started. It will not get overwritten.
//Lines starting with // are ignored.
//Example1: exec yourconfig.cfg
//Example2: set cg_fov "110"
//Example3: bind x ut_weaptoggle knife

//========== TimeScale Slider v1.1 ============= by  <taggedzi>
com_cameramode 1

set speed_00    "cl_freezeDemo 1; wait 15; ut_echo "TimeScale: x^60.0";set set_speed_plus "vstr speed_01"; set set_speed_minus “vstr speed_00”;"
set speed_01    "cl_freezeDemo 0; timescale 0.1; wait 15; ut_echo "TimeScale: x^60.1";set set_speed_plus "vstr speed_02"; set set_speed_minus “vstr speed_00”;"
set speed_02    "timescale 0.25; wait 15; ut_echo "TimeScale: x^60.25";set set_speed_plus "vstr speed_03"; set set_speed_minus “vstr speed_01”;"
set speed_03    "timescale 0.50; wait 15; ut_echo "TimeScale: x^60.50";set set_speed_plus "vstr speed_04"; set set_speed_minus “vstr speed_02”;"
set speed_04    "timescale 0.75; wait 15; ut_echo "TimeScale: x^60.75";set set_speed_plus "vstr speed_05"; set set_speed_minus “vstr speed_03”;"
set speed_05    "timescale 1.0; wait 15; ut_echo "TimeScale: x^61.0";set set_speed_plus "vstr speed_06"; set set_speed_minus “vstr speed_04”;"
set speed_06    "timescale 1.25; wait 15; ut_echo "TimeScale: x^61.25";set set_speed_plus "vstr speed_07"; set set_speed_minus “vstr speed_05”;"
set speed_07    "timescale 1.5; wait 15; ut_echo "TimeScale: x^61.50";set set_speed_plus "vstr speed_08"; set set_speed_minus “vstr speed_06”;"
set speed_08    "timescale 2.0; wait 15; ut_echo "TimeScale: x^62.0";set set_speed_plus "vstr speed_09"; set set_speed_minus “vstr speed_07”;"
set speed_09    "timescale 4.0; wait 15; ut_echo "TimeScale: ^64.0";set set_speed_plus "vstr speed_10"; set set_speed_minus “vstr speed_08”;"
set speed_10    "timescale 8.0; wait 15; ut_echo "TimeScale: ^68.0";set set_speed_plus "vstr speed_10"; set set_speed_minus “vstr speed_09”;"
set set_speed_plus "vstr speed_06"
set set_speed_minus "vstr speed_04"

bind KP_PLUS "vstr set_speed_plus"
bind KP_MINUS "vstr set_speed_minus"

// Toggle shownormals on and off
bind KP_SLASH "seta r_shownormals 0"
bind KP_STAR "seta r_shownormals 1"
and "hardcore" is attached since it's too long to post.

The "softcore" uses only numeric keypad ("/" and "*" for shownormals and 1-0 and "+" & "-" for speed adjustment)
« Last Edit: December 26, 2012, 10:06:14 am by Spade »

hunter08

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Simple config file for demo playback
« Reply #6 on: August 20, 2013, 02:40:41 pm »
thank you
google.com