Any way to know which version was used to record a demo?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Guest

Any way to know which version was used to record a demo?

Post by Guest »

Well, that. Is there any way to know which version of GZDoom was used to record a demo? I found some that I recorded a couple years ago and I don't remember which version I used to record them. It seems a bit time consuming to go around downloading every single version and trying to play the demos with it. I figure the demo has that information somewhere, as it has to know somehow what version to expect to not show the desync warning message. Maybe a hex string?

Any help would be welcome, thanks!
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Any way to know which version was used to record a demo?

Post by Kappes Buur »

In general, I do not believe that versioning was included in demo recordings.
So, that would be a bust.

However, the demo demo3.lmp of Ancient Aliens has this string at the end

[imgur]https://i.imgur.com/GZR2tP1[/imgur]

How that got embedded, I do not know. I never used PrBoom.

Other than that, the only thing I can suggest is to look at the timestamp of the demo and try to correlate with the GZDoom timestamp. But, I guess, you already tried that.
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Any way to know which version was used to record a demo?

Post by InsanityBringer »

okay but literally none of that is relevant to gzdoom? (vanilla does version demos, anyways, at least since 1.2)

in any case, GZDoom does version demos, it needs to in order to determine if a demo can be played back. You'll need some sort of file viewer or hex editor to look at it though. you'll find a "ZDHD" marker in the file, followed by 4 bytes for the size, and then the next two bytes should be the version. A hex editor like xvi32 (and probably a million better ones, but frustratingly enough not hxd) will usually have an option to automatically convert that number into a readable base 10 number. The only trouble is that I don't fully know how demo versions map into game versions, all I can say at the moment is that the current demo version is 0x221 (545 decimal)
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Any way to know which version was used to record a demo?

Post by Kappes Buur »

InsanityBringer wrote:... all I can say at the moment is that the current demo version is 0x221 (545 decimal)
That is all well and good and interesting, but kind of useless if there is no correlation to the GZDoom version used to record the demo.
Post Reply

Return to “General”