Rewinding and Fast-forwarding Demos

General discussion of the port and Doom-related chat.
Post Reply
Nautilus
 
Posts: 31
Joined: Wed Jan 23, 2013 3:38 pm
Location: Having dinner with your family

Rewinding and Fast-forwarding Demos

#1

Post by Nautilus » Mon Feb 04, 2013 6:00 pm

Gotta have this. Gotta move back and forth through the tics for maximum entertainment, baby. Let's get this done. Chop chop.


(Odamex is way ahead...)

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

RE: Rewinding and Fast-forwarding Demos

#2

Post by Ænima » Mon Feb 04, 2013 6:34 pm

IIRC, Zandro already supports skipping ahead in demos by x amount of tics. I forgot what the CCMD was though.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Rewinding and Fast-forwarding Demos

#3

Post by Qent » Mon Feb 04, 2013 6:40 pm

Rewinding is hard with the way demos work now: Zandronum would have to restart the whole demo and skip ahead to wherever you wanted to back up. If you try using demo_skiptonextmap, you'll see that this would take forever. Dunno what Odamex did, but it looks like they might have had to make a new demo format.
Last edited by Qent on Mon Feb 04, 2013 6:42 pm, edited 1 time in total.

Yellowtail
Forum Regular
Posts: 152
Joined: Tue Jun 19, 2012 1:02 pm

RE: Rewinding and Fast-forwarding Demos

#4

Post by Yellowtail » Mon Feb 04, 2013 6:51 pm

Ænima wrote: IIRC, Zandro already supports skipping ahead in demos by x amount of tics. I forgot what the CCMD was though.
"demo_skiptics" is the command.

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Rewinding and Fast-forwarding Demos

#5

Post by one_Two » Mon Feb 04, 2013 6:53 pm

Yeah a negative skip tics crashes zandro, but I think water started a ticket for this, dunno where that got.

User avatar
Medicris
Forum Regular
Posts: 614
Joined: Mon Jun 04, 2012 5:29 am

RE: Rewinding and Fast-forwarding Demos

#6

Post by Medicris » Mon Feb 04, 2013 8:34 pm

If that's the case, what's the format for Odamex's demo files? An alternative source of information would be to analyze Source Engine demos, which to my knowledge use a similar demo recording method (just saving a string of packets sent and recieved directly into a file) and yet allows full editing capabilities.

Amount of labour to capture a moment can really change how much user-made content is put out there, such as frag videos, clips, and archives. Given a large and creative enough playerbase, it can drastically change the amount of exposure we all get.

On a barely related note I support a simple "demo_skipseconds" and "demo_skipminutes" coded as simple multipliers for demo_skiptics.
Last edited by Medicris on Mon Feb 04, 2013 8:34 pm, edited 1 time in total.

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Rewinding and Fast-forwarding Demos

#7

Post by one_Two » Mon Feb 04, 2013 8:42 pm

I have demo_skiptics binds for a second and a minute, pretty useful.

User avatar
Medicris
Forum Regular
Posts: 614
Joined: Mon Jun 04, 2012 5:29 am

RE: Rewinding and Fast-forwarding Demos

#8

Post by Medicris » Mon Feb 04, 2013 8:44 pm

one_Two wrote: I have demo_skiptics binds for a second and a minute, pretty useful.
So do I, but it's something you just expect to be there in the first place.

Catastrophe
Retired Staff / Community Team Member
Posts: 2571
Joined: Sat Jun 02, 2012 2:44 am

RE: Rewinding and Fast-forwarding Demos

#9

Post by Catastrophe » Mon Feb 04, 2013 10:12 pm

demo_skiptics xx
35 tics = 1 sec

I THINK on the latest zandronum developer build, putting a negative number for tics will rewind it. (Correct me if I'm wrong)

Konar6
Retired Staff / Community Team Member
Posts: 455
Joined: Sun May 27, 2012 9:38 am

RE: Rewinding and Fast-forwarding Demos

#10

Post by Konar6 » Mon Feb 04, 2013 11:29 pm

You are wrong.
In the next version it just won't crash if you try negative number.


For rewinding demos, would it be solved by having a LIFO type buffer where the demo data would be stored and could be accessed for getting back the recent data in reversed order?
Ijon Tichy wrote:I like how your first responses to concerns being raised was to start insulting people, accusing random people on the Internet of being Shadowfox, and digging up irrelevant shit from the past. It really inspires confidence in me that you guys are level-headed and rational folks.


<BlueCool> you guys IQ is the same as my IP, Dynamic

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Rewinding and Fast-forwarding Demos

#11

Post by Watermelon » Tue Feb 05, 2013 12:13 am

Would adding a LIFO type buffer be something easy to implement or require a ton of work? If the latter, I sadly don't see it getting in.

The demo rewind feature is quite awesome IMO. I hope it's considerable to get deployed

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Rewinding and Fast-forwarding Demos

#12

Post by Llewellyn » Tue Feb 05, 2013 4:49 pm

Medicris wrote: If that's the case, what's the format for Odamex's demo files? An alternative source of information would be to analyze Source Engine demos, which to my knowledge use a similar demo recording method (just saving a string of packets sent and recieved directly into a file) and yet allows full editing capabilities.
You cannot rewind Source demos. It simply restarts the demo and plays until it gets to the tic you specified.
(Source: Recording videos from demos in Source for ages.)
Last edited by Llewellyn on Tue Feb 05, 2013 4:50 pm, edited 1 time in total.

User avatar
Medicris
Forum Regular
Posts: 614
Joined: Mon Jun 04, 2012 5:29 am

RE: Rewinding and Fast-forwarding Demos

#13

Post by Medicris » Tue Feb 05, 2013 8:42 pm

Llewellyn wrote:
Medicris wrote: If that's the case, what's the format for Odamex's demo files? An alternative source of information would be to analyze Source Engine demos, which to my knowledge use a similar demo recording method (just saving a string of packets sent and recieved directly into a file) and yet allows full editing capabilities.
You cannot rewind Source demos. It simply restarts the demo and plays until it gets to the tic you specified.
(Source: Recording videos from demos in Source for ages.)
News to me. I stand corrected.

Wonder how TF2 demos can smoothly move frame-by-frame, even backwards. Does it really restart the demo and plays up to each frame every time it displays a frame? If so... I guess there's nothing too wrong with doing the same, as long as it's efficient enough.
Last edited by Medicris on Tue Feb 05, 2013 8:43 pm, edited 1 time in total.

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Rewinding and Fast-forwarding Demos

#14

Post by Llewellyn » Wed Feb 06, 2013 12:47 am

Medicris wrote: News to me. I stand corrected.

Wonder how TF2 demos can smoothly move frame-by-frame, even backwards. Does it really restart the demo and plays up to each frame every time it displays a frame? If so... I guess there's nothing too wrong with doing the same, as long as it's efficient enough.
I dunno about TF2, it uses a different source branch than the other games... they might have modified demo playback, but I doubt it.
You can't rewind demos in HL2, GMOD, C:SS, CS:GO, so I don't know if they've done something in TF2 with the playback that essentially caches keyframes for quick playback, even in reverse (this is how most new games do it.) If you view a game like Halo, they made their demos cache keyframes that can be skipped back to instantly. Apply this all the way through and it allows you to play your demo backwords because the keyframes are close enough that you can jump backwords and then forwards quick enough for retrograde playback. I'm not aware that TF2 has a modified demo playback mode, but I've not played TF2 since the big "hat" update way back when.
Last edited by Llewellyn on Wed Feb 06, 2013 12:56 am, edited 1 time in total.

Post Reply