Improved demo-control possible?

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Mon Sep 03, 2007 7:33 am

  • Is it possible to enhance the demo-control, so that it acts more like a demo-player?
    I would like be able to play the video backwards. Or start playing the demo at e. g. minute 5:00. At least i would like to be able to jump e. g. 30 seconds or 1 minute forward.

    These improvements would make it a lot easier to capture some scenes from a demo. And i would save lots of time. :)

    So how are the chances?
    User avatar
    Gut_Eater
    Alien
     
    Posts: 116
    Joined: Fri Apr 07, 2006 1:46 pm
    Location: Germany, NRW

Mon Sep 03, 2007 8:06 am

  • You could fast-forward by typing "slowmo #". Where the # is the number.
    1 is default, so anything below 1 is slow motion and anything above 1 is goes faster. Try slowmo 10 or something, then you can see the time (if you tab) go by and then type slowmo 1.

    Alternatively, instead of typing these, they are standard with the config file. Use the numpad keys. Where numpad 5 is default mode, 1, 2, 3, 4 are slowmo, while 6, 7, 8, and 9 are faster. Easy access to that. If still 10 isn't enough for you I bet you could write any kind of number there.
    With these things I don't think jumping 30 sec or a 1 min forward is necessary.
    User avatar
    ai
    Forum addon
     
    Posts: 2131
    Joined: Sun Mar 05, 2006 3:54 pm
    Location: Behind you

Mon Sep 03, 2007 8:20 am

  • Yeah, i knew that. I use esteels keybinds for watching demos.
    Nonetheless it would be more precise and faster to jump xxx seconds to come close to the wanted point of time and then to use "fast-forward" (slowmo xxx) for the rest.
    For me it is annoying to get to a special frag in the last moments of a 15-minutes 1o1-demo with slowmo xxx and find out, that i switched to slowmo 1 a tad too late.

    But slowmo xxx could really be enough, if i would be able to play backwards.

    :)
    User avatar
    Gut_Eater
    Alien
     
    Posts: 116
    Joined: Fri Apr 07, 2006 1:46 pm
    Location: Germany, NRW

Mon Sep 03, 2007 8:42 am

Mon Sep 03, 2007 10:27 am

  • I additionally request the possibility for the negative slowmo to be in effect during normal play as well.
    Now with new shiny avatar.
    User avatar
    PinkRobot
    Alien trapper
     
    Posts: 443
    Joined: Fri Jul 21, 2006 7:06 pm
    Location: #brlogetc

Mon Sep 03, 2007 12:48 pm

  • The technique of travelling back in time has not been invented yet ;P
    User avatar
    FruitieX
    Keyboard killer
     
    Posts: 588
    Joined: Mon Nov 13, 2006 4:47 pm
    Location: Finland

Mon Sep 03, 2007 3:55 pm

  • I've asked for this before too.
    Xeno
    peregrinus originis incognitae
     
    Posts: 396
    Joined: Wed Nov 15, 2006 10:42 pm

Mon Sep 03, 2007 6:57 pm

  • One approach that shouldn't be that difficult to implement is to fast forward from the start really fast by not rendering anything, until one reaches the desired point backwards from the current position.

    No backwards time travelling required...
    Whenever You go, then You aren't.
    kyre
    Alien
     
    Posts: 118
    Joined: Tue Jun 13, 2006 8:56 pm
    Location: Sweden

Mon Sep 03, 2007 7:45 pm

  • Since the demo format is basically a dump of all communications between client and server and the network protocol is delta compressed, there is no way to jump backwards in a demo without radical changes to the demo format (i.o.w.: larger demo files). Jumping forward would be possible with the workaround kyre mentioned, but it would be kinda slow, so i don't think that it would be much of an improvement over slowmo #...
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Mon Sep 03, 2007 9:01 pm

  • I'm not so sure it would be that slow - the main cost in demo playback is the rendering, skip that and you can get at least a thousand frames/s (watch out for clock precision though, step a fixed time slice between each frame).

    It's ok if it takes a few seconds to rewind, its still a heck of a lot faster than restarting manually.
    Whenever You go, then You aren't.
    kyre
    Alien
     
    Posts: 118
    Joined: Tue Jun 13, 2006 8:56 pm
    Location: Sweden

Mon Sep 03, 2007 9:34 pm

  • kyre wrote:I'm not so sure it would be that slow - the main cost in demo playback is the rendering, skip that and you can get at least a thousand frames/s (watch out for clock precision though, step a fixed time slice between each frame).

    But unless you use timedemo, the engine will also skip frames with slowmo if the hardware isn't fast enough...
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Sep 04, 2007 9:04 am

  • i want server side demo recording
    the spice extend life!
    the spice expand conciousness!
    the spice is vital to space travel!
    sooooo.. tell me what you want, waht you really-really want
    I will proceed directly to the intravenous injection of hard drugs, please.
    User avatar
    tChr
    Forum addon
     
    Posts: 1501
    Joined: Tue Feb 28, 2006 9:11 pm
    Location: Trondheim, Norway

Tue Sep 04, 2007 9:57 am

  • Me too, and I think I'll write it some time. It won't work completely though, that is, it will have lower quality than a client recorded demo, but it will be good enough for ladder purposes.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Sep 04, 2007 1:36 pm

  • I was discussing with doku a while back about a web-based nexuiz server frontend that would intergrate with the ladders, blah blah blah. Anyway I was thinking maybe I could just capture all the packets and throw them in a file, but I suppose that won't work... Anyway I'd really like server side demo recording in 2.4

    also, can we get a better stat logging format? xml maybe? json?
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Tue Sep 04, 2007 6:12 pm

  • It's working in my current code now... that is, ALMOST working :P

    Only stupid thing is that the file names can just get the IP address in their names, not the player name.


    And what is the problem with the current log output? No, certainly no XML. If there is no information missing, you should be able to convert from sv_eventlog to anything else.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Sep 05, 2007 12:22 pm

  • kyre wrote:One approach that shouldn't be that difficult to implement is to fast forward from the start really fast by not rendering anything, until one reaches the desired point backwards from the current position.

    No backwards time travelling required...


    So is it doable? And will it be done?
    User avatar
    Gut_Eater
    Alien
     
    Posts: 116
    Joined: Fri Apr 07, 2006 1:46 pm
    Location: Germany, NRW



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest