Talk:DEM Format

From Valve Developer Community
Jump to: navigation, search

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)