Talk:DEM (file format)

From Valve Developer Community
Revision as of 06:55, 3 October 2009 by Mdrowber (talk | contribs) (File format question)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)