Talk:DEM (file format): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Pee moved page Talk:DEM Format to Talk:.dem: standardizing file type page name format)
Line 13: Line 13:


But I don't really see this anywhere, or it is too difficult to find without additional information.  Any help out there? [[User:Mdrowber|Mdrowber]] 13:55, 3 October 2009 (UTC)
But I don't really see this anywhere, or it is too difficult to find without additional information.  Any help out there? [[User:Mdrowber|Mdrowber]] 13:55, 3 October 2009 (UTC)
== Header Format is wrong. ==
Hello I tried to inspect a replay of a match of Dota2, downloaded using the link found in the opendota API (Precisely using the /matches endpoint). But when I tried to analize it using the demoinfo2.exe for analizing the .dem file I get the an error saying that it cannot open the file. At this point I tried to open the .dem file using an Hex visualizer, and found out that the Header is not "HL2DEMO" but "PBDEMS", what am i missing here?
Also where can I find the .proto for the .dem?
Thanks for the time

Revision as of 06:36, 6 April 2023

Control of "demoui" via console commands.

I need to find out which commands are tied to the buttons of the player "demoui", I want to make it possible to control the demo using the arrow keys, up - speed higher, down - lower, left - frame back, right frame forward. If someone knows, help me. Vi 19:01, 11.06.2022 (UTC)

Broken time

For some reason, when the demo is ended by the changelevel, the demo time and ticks show a negative value (both in console and demoui). Is there any way to fix it? --Execut4ble 04:35, 30 January 2013 (PST)

File format question

Anyone know why there is a secondary set of sign on data in the demo file for Demo format 3/Protocol 15 of roughly 196,000 bytes? It's full of art and sound asset caching as far as I can tell. Then it starts into the sound set up console commands ("dsp_..."), but then the format wacky. How does the engine parse the frame commands structure at the start of a frame?

The article implies something like:

{ Frame Command Index [ Len1 CMDData1 ] [ Len2 CMDData2 ] [ ... ] [ LenN CMDDataN ] }

But I don't really see this anywhere, or it is too difficult to find without additional information. Any help out there? Mdrowber 13:55, 3 October 2009 (UTC)

Header Format is wrong.

Hello I tried to inspect a replay of a match of Dota2, downloaded using the link found in the opendota API (Precisely using the /matches endpoint). But when I tried to analize it using the demoinfo2.exe for analizing the .dem file I get the an error saying that it cannot open the file. At this point I tried to open the .dem file using an Hex visualizer, and found out that the Header is not "HL2DEMO" but "PBDEMS", what am i missing here?

Also where can I find the .proto for the .dem?

Thanks for the time