Community Forums

Go Back   Enemy Territory: QUAKE Wars Official Community Site > Enemy Territory: QUAKE Wars Game Forums > QUAKE Wars Tips, Tricks & Strategies

QUAKE Wars Tips, Tricks & Strategies Share your favorite Enemy Territory: QUAKE Wars tips and strategies with your fellow soldiers.

Reply
 
Thread Tools
Old 08-04-2007, 12:38 PM   #1
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default Demo Playback

in case you haven't noticed, demo playback works in this build

i've created a quick & dirty demo playback control config which will be extended in time, but here's a start in case someone wants to use it as well:

Code:
writeconfig backupconfig
unbindall

bind "w" "_forward" "" "default"
bind "s" "_back" "" "default"
bind "a" "_moveleft" "" "default"
bind "d" "_moveright" "" "default"
bind "SPACE" "_moveup" "" "default"

bind "SHIFT" "_sprint" "" "default"
bind "CTRL" "_speed" "" "default"

bind "F7" "screenshot 4096 2304 64" "" "default"
bind "F8" "screenshot 2048 1152 64" "" "default"
bind "F11" "screenshot" "" "default"


bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0" "" "default"
bind "KP_5" "pausenetdemo" "" "default"
bind "KP_5" "demo_scale 1.0" "CTRL" "default"
check out the pausenetdemo command, it's very awesome
Joe999 is offline   Reply With Quote
Old 08-04-2007, 05:57 PM   #2
doson
First Sergeant
 
Join Date: Jun 2007
Location: Italy
Default

bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0" "" "default"

what are this commands for ? Fastforward and reverse ?
doson is offline   Reply With Quote
Old 08-04-2007, 06:43 PM   #3
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default

those are for chaning the speed of demo playback. 1.0 is normal speed, rest is faster or slower
Joe999 is offline   Reply With Quote
Old 08-04-2007, 08:27 PM   #4
doson
First Sergeant
 
Join Date: Jun 2007
Location: Italy
Default

ok thanks, pausenetdemo is awesome lol
doson is offline   Reply With Quote
Old 08-04-2007, 08:59 PM   #5
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default

updated the config:

Code:
writeconfig backupconfig
unbindall

bind "w" "_forward" "" "default"
bind "s" "_back" "" "default"
bind "a" "_moveleft" "" "default"
bind "d" "_moveright" "" "default"
bind "SPACE" "_moveup" "" "default"

bind "SHIFT" "_sprint" "" "default"
bind "CTRL" "_speed" "" "default"

bind "F7" "screenshot 4096 2304 64" "" "default"
bind "F8" "screenshot 2048 1152 64" "" "default"
bind "F11" "screenshot" "" "default"

bind "MOUSE2" "pausenetdemo" "" "default"

bind "KP_5" "demo_scale 1.0" "" "default"
bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0" "" "default"

bind "KP_ENTER" "toggle demo_noclip 1 0" "" "default"
bind "KP_INS" "toggle g_showhud 0 1" "" "default"
pausenetdemo is better on mouse2 where it's quickly accessible. changes are in italic
Joe999 is offline   Reply With Quote
Old 08-05-2007, 05:17 AM   #6
dommafia
Colonel
 
Join Date: May 2007
Location: New Jersey
Default

nice config
dommafia is offline   Reply With Quote
Old 08-05-2007, 01:48 PM   #7
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default

here's an update. lots of changes, i tried to get rid of the numeric keypad and instead bind everything on mouse/mousewheel/wsad-key-environment

Code:
// ====================================================================================
// movement
// ====================================================================================
bind "w" "_forward" "" "default"
bind "s" "_back" "" "default"
bind "a" "_moveleft" "" "default"
bind "d" "_moveright" "" "default"
bind "SPACE" "_moveup" "" "default"

bind "SHIFT" "_sprint" "" "default"
bind "CTRL" "_speed" "" "default"


// ====================================================================================
// screenshot binds
// ====================================================================================
bind "1" "screenshot" "" "default"
bind "2" "screenshot 2048 1152 64" "" "default"
bind "3" "screenshot 4096 2304 64" "" "default"


// ====================================================================================
// demo playback speed
// ------------------------------------------------------------------------------------
// mouse wheel:
//   click: normal playback speed
//   up/down: add +/- 1 to playback speed
//   up/down with ctrl pressed: add +/- 0.1 to playback speed
// ------------------------------------------------------------------------------------
// keypad:
//   up arrow: add 1.0 to playback speed
//   down arrow: add -1.0 to playback speed
//   left arrow: add 0.1 to playback speed
//   right arrow: add -0.1 to playback speed
// ====================================================================================
seta writeDemoScaleInfo "addchatline $demo_scale"

// control playback speed with mouse wheel
bind "MOUSE3" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELUP" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELUP" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"

// control playback speed with keypad
bind "KP_5" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"


// ====================================================================================
// camera speed
// ------------------------------------------------------------------------------------
// mouse wheel:
//   shift pressed + mouse wheel click: normal camera speed (200)
//   shift pressed + mouse wheel up/down: add +/- 30 to camera speed
// ====================================================================================
seta writeDemoCamSpeed "addchatline $pm_democamspeed"

bind "MOUSE3" "pm_democamspeed 200; vstr writeDemoCamSpeed" "SHIFT" "default"
bind "MWHEELUP" "cvaradd pm_democamspeed 30; vstr writeDemoCamSpeed" "SHIFT" "default"
bind "MWHEELDOWN" "cvaradd pm_democamspeed -30; vstr writeDemoCamSpeed" "SHIFT" "default"


// ====================================================================================
// misc binds
// ====================================================================================

// pause current playback and switch to free-fly mode. this one is most awesome :)
bind "MOUSE2" "pausenetdemo" "" "default"

// toggle player view / spectator view
bind "c"        "toggle demo_noclip 1 0" "" "default"
bind "KP_ENTER" "toggle demo_noclip 1 0" "" "default"

// toggle demo hud
bind "e"       "toggle g_showdemohud 1 0" "" "default"
bind "KP_HOME" "toggle g_showdemohud 1 0" "" "default"

// toggle hud
bind "q"      "toggle g_showhud 0 1" "" "default"
bind "KP_INS" "toggle g_showhud 0 1" "" "default"

Last edited by Joe999 : 08-05-2007 at 02:20 PM.
Joe999 is offline   Reply With Quote
Old 08-05-2007, 06:11 PM   #8
taken
Global Volunteer Force
 
Join Date: May 2007
Default

Great work Joe!
__________________
H2k-Gaming.com - #H2k @ quakenet.org
taken is offline   Reply With Quote
Old 08-06-2007, 09:45 AM   #9
hannes
Lieutenant Major
 
Join Date: May 2007
Location: Germany
Send a message via MSN to hannes
Default

/me says thx a lot!
hannes is offline   Reply With Quote
Old 08-07-2007, 06:32 PM   #10
101uk
Gunnery Sergeant
 
Join Date: May 2007
Default

sorry im a noob to this coding business, how do i implement these features?
101uk is offline   Reply With Quote
Old 08-08-2007, 06:14 PM   #11
[]v[]
Lieutenant Commander
 
Join Date: May 2007
Location: deep, deep in the lancashire ghetto
Default

When pause and free fly while in the third-eye-camera, you then fly around inside the third-eye-camera.
I notice that these demos record everything and not just within sight, so a great way to see what was happening on the rest of the map.
I also tried some of Darkangels_ETpro_MovieMaking scripts which slightly changed seem to work ok'ish. Like the matrix cameras.
__________________
[]v[] is offline   Reply With Quote
Old 08-08-2007, 08:05 PM   #12
RR2DO2
Technical Director
 
Join Date: Apr 2007
Default

Client demos record everything that the client gets. Keep in mind that due to the AOR, data further away from the recording client in a network demo is less accurate. (Server demos don't have this problem, they just record the entire game.)
RR2DO2 is offline   Reply With Quote
Old 08-09-2007, 03:53 PM   #13
Decon89
Corporal
 
Join Date: Jun 2007
Default

So how do you make these binds work ? Do you have to change your bind config everytime you need to watch one :/?
__________________
Acc-name @ QW: decon89
CaK|decon - http://www.team-cak.dk
Decon89 is offline   Reply With Quote
Old 08-10-2007, 06:47 PM   #14
tsp
Lance Corporal
 
Join Date: Jun 2007
Default

Joe999
Excellent script, but why you don't want to include demo markers? it's very nice feature imo. something like this:
Code:
// ====================================================================================
// demo cut markers
// set markers and then use "cutNetdemo <input_demoname> <output_demoname>"
// ====================================================================================
bind "LEFTARROW" "placeDemoCutEndMarker; addchatline '^1END ^7marker is set'" "" "default"
bind "RIGHTARROW" "placeDemoCutStartMarker; addchatline '^2START ^7marker is set'" "" "default"
I've modified your script slightly to add FOV changer at mouse wheel during pause, it looks very useful for screenshots: http://community.enemyterritory.com/...ead.php?t=6620
Code:
// ====================================================================================
// pause current playback and switch mouse wheel to the "FOV changer"
// ------------------------------------------------------------------------------------
// mouse wheel (in "pause" mode):
//   up/down: add +/- ~10% to FOV
//   click: set original FOV value
// ====================================================================================
set writeFOVInfo "echo $g_FOV"
set gFOV_backup $g_FOV
set RestoreDefaultFOV "set g_FOV $gFOV_backup; vstr writeFOVInfo"
set ZOOM_UP "set gFOV_float $g_FOV; cvarMultiply gFOV_float 1.1; cvaradd gFOV_float 0.5; set g_FOV $gFOV_float; set gFOV_float $g_FOV; vstr writeFOVInfo"
set ZOOM_DWN "set gFOV_float $g_FOV; cvarMultiply gFOV_float 0.91; cvaradd gFOV_float 0.5; set g_FOV $gFOV_float; set gFOV_float $g_FOV; vstr writeFOVInfo"

set DEMO_PAUSE "pausenetdemo; bind MWHEELUP $ZOOM_UP; bind MWHEELDOWN $ZOOM_DWN; bind MOUSE3 $RestoreDefaultFOV; bind MOUSE2 $DEMO_UNPAUSE"
set DEMO_UNPAUSE "pausenetdemo; bind MWHEELUP $DEMOSCALE_UP; bind MWHEELDOWN $DEMOSCALE_DWN; bind MOUSE3 $SetNormalSpeed; bind MOUSE2 $DEMO_PAUSE"

bind MOUSE2 $DEMO_PAUSE
and microscopic changes in original binds:
Code:
set  SetNormalSpeed "demo_scale 1.0; vstr writeDemoScaleInfo"
bind MOUSE3 $SetNormalSpeed

set DEMOSCALE_UP "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo"
set DEMOSCALE_DWN "cvaradd demo_scale -1.0'; vstr writeDemoScaleInfo"
bind MWHEELUP $DEMOSCALE_UP
bind MWHEELDOWN $DEMOSCALE_DWN
here is some simple math with gFOV_float to reduce round error and prevent zero value for g_FOV that causes game crash.

btw, maybe it's better to save original crouch bind (bind "c" "_movedown" "" "default") to keep a possibility of vertical freecam moving
tsp is offline   Reply With Quote
Old 08-11-2007, 03:57 PM   #15
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default

Quote:
Originally Posted by tsp View Post
Excellent script, but why you don't want to include demo markers? it's very nice feature imo.
i tried it and the feature didn't work on my machine, i. e. seemed to be bugged, so i didn't think it's relevant currently. does this work on your machine?

nice additions btw
Joe999 is offline   Reply With Quote
Old 08-11-2007, 11:54 PM   #16
tsp
Lance Corporal
 
Join Date: Jun 2007
Default

Quote:
does this work on your machine?
yes, it works perfectly for me
tsp is offline   Reply With Quote
Old 08-12-2007, 02:18 AM   #17
HeiNRicH
Gunnery Sergeant
 
Join Date: May 2007
Default

Ok, so you use -1(or any negative value) to rewind? I tryed that and it locked up the game.
HeiNRicH is offline   Reply With Quote
Old 08-12-2007, 11:10 PM   #18
Ragenowski
Group Captain
 
Join Date: May 2007
Location: ATX area
Default

Joe999......THANKS


Nice work. My gaming background doesn't include much scripting, using autoexecs and things like that, but once I read, re-read, and re-re-read your script until I understood it I was able to figure out which of these I wanted to use and which ones I didn't want to use. I then was able to make a quick auto-exec (Thanks to Iffy's ETQW4newbies for that ) with my changes and it's working like a charm. I did have to go in and change net demo pause from my right mouse button though because it didn't allow me to use alt fire ingame, but that was probably my fault.

Thanks again, to both of you! I've made several kewl demos and eventually hope to get some sweet screens from them once I'm able to stop playing.....the game should be named "Enemy Territory: Crack Wars" btw.
__________________
Drunk And Disorderly Member.......And proud of it!
Please join us in the fun on any of our FOUR ranked ETQW servers!
Drunk and Disorderly RANKED North #1 and #2
Drunk and Disorderly RANKED South
And NOW PRESENTING: Drunk and Disorderly Ranked WEST
Ragenowski is offline   Reply With Quote
Old 08-13-2007, 08:15 PM   #19
dommafia
Colonel
 
Join Date: May 2007
Location: New Jersey
Default

Quote:
Originally Posted by tsp View Post
yes, it works perfectly for me
what do the demo markers do? this wasn't avaible on wolf:et
dommafia is offline   Reply With Quote
Old 08-13-2007, 08:49 PM   #20
Joe999
Global Volunteer Force
 
Join Date: Apr 2007
Location: Austria
Default

* placeDemoCutStartMarker: places start marker for demo cutting
* placeDemoCutEndMarker: places end marker for demo cutting
* cutnetdemo: cuts a network demo if valid markers are set, usage: cutnetdemo <demo name> <cut output name>
Joe999 is offline   Reply With Quote
Old 08-13-2007, 09:31 PM   #21
Ragenowski
Group Captain
 
Join Date: May 2007
Location: ATX area
Default

Here's a noobish question for someone to answer......uhm, please. If you don't mind

Is there any way that I could rewind the demo? Or is there no command available for that? Kinda like with BF2 demos not being able to be rewound...

I only ask because there's so much going on at times that it'd be a lot easier if I could rewind parts of the video and look at them from a different place. It'd save me a lot of time rather than having to start it over.
__________________
Drunk And Disorderly Member.......And proud of it!
Please join us in the fun on any of our FOUR ranked ETQW servers!
Drunk and Disorderly RANKED North #1 and #2
Drunk and Disorderly RANKED South
And NOW PRESENTING: Drunk and Disorderly Ranked WEST
Ragenowski is offline   Reply With Quote
Old 08-13-2007, 09:36 PM   #22
Ifurita
Global Volunteer Force
 
Join Date: Apr 2007
Send a message via AIM to Ifurita Send a message via MSN to Ifurita
Default

Code:
// control playback speed with mouse wheel
bind "MOUSE3" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELUP" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELUP" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"

// control playback speed with keypad
bind "KP_5" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"
have you tried changing demo scale to a negative value??
Ifurita is offline   Reply With Quote
Old 08-13-2007, 09:51 PM   #23
Ragenowski
Group Captain
 
Join Date: May 2007
Location: ATX area
Default

Quote:
Originally Posted by Ifurita View Post
Code:
// control playback speed with mouse wheel
bind "MOUSE3" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELUP" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "CTRL" "default"
bind "MWHEELUP" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "MWHEELDOWN" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"

// control playback speed with keypad
bind "KP_5" "demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_RIGHTARROW" "cvaradd demo_scale 0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_LEFTARROW" "cvaradd demo_scale -0.1; vstr writeDemoScaleInfo" "" "default"
bind "KP_UPARROW" "cvaradd demo_scale 1.0; vstr writeDemoScaleInfo" "" "default"
bind "KP_DOWNARROW" "cvaradd demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"
have you tried changing demo scale to a negative value??


By that I assume you mean changing the binding on KP_5 to a negative value? (obviously I'd bind it to another key so as not to lose the ability to go back to my default playback speed, I just used kp_5 to show where I was talking about.)

So lemme type this out to see if I understand correctly...

bind "KP_9" "demo_scale -1.0; vstr writeDemoScaleInfo" "" "default"

Would that work? Can I also make the demo scale something like " -0.5" for half speed reverse playback? Sorry for the noobness of the question, I haven't done this a lot.

If you simply mean the -1 and -0.1 binds, then yes I've got those bound but I haven't been able to reverse playback using those...maybe I'm just not hitting -1 enough.


Oh, and BTW thanks for all the help you've been. Both to myself and the rest of the community, I appreciate it.
/end arse kissing
__________________
Drunk And Disorderly Member.......And proud of it!
Please join us in the fun on any of our FOUR ranked ETQW servers!
Drunk and Disorderly RANKED North #1 and #2
Drunk and Disorderly RANKED South
And NOW PRESENTING: Drunk and Disorderly Ranked WEST

Last edited by Ragenowski : 08-13-2007 at 09:55 PM.
Ragenowski is offline   Reply With Quote
Old 08-14-2007, 12:54 AM   #24
tsp
Lance Corporal
 
Join Date: Jun 2007
Default

Quote:
Originally Posted by cvars.html
demo_scale speed scaling of demo replays
type: float [0.01, 100]
you can't set negative value for this cvar, so you can't rewind the demo.
tsp is offline   Reply With Quote
Old 08-14-2007, 01:12 AM   #25
Ragenowski
Group Captain
 
Join Date: May 2007
Location: ATX area
Default

Quote:
Originally Posted by tsp View Post
you can't set negative value for this cvar, so you can't rewind the demo.
Darn...
That bites, guess I'll just have to continue to do it the hard way. Thanks for the info though.
__________________
Drunk And Disorderly Member.......And proud of it!
Please join us in the fun on any of our FOUR ranked ETQW servers!
Drunk and Disorderly RANKED North #1 and #2
Drunk and Disorderly RANKED South
And NOW PRESENTING: Drunk and Disorderly Ranked WEST
Ragenowski is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:02 AM.