Talk:VPK (file format): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(→‎Assumptions: new section)
Line 5: Line 5:
Does anybody know whether the format is Big Endian or Little Endian?
Does anybody know whether the format is Big Endian or Little Endian?
Seems to be an important piece of info that has been overlooked.--[[User:Pharap|Pharap]] 16:42, 10 August 2013 (PDT)
Seems to be an important piece of info that has been overlooked.--[[User:Pharap|Pharap]] 16:42, 10 August 2013 (PDT)
== Assumptions ==
I've been doing some reverse engineering/code research and a few assumptions made in this article are incorrect:
*The ArchiveIndex, EntryOffset, and EntryLength fields of VPKDirectoryEntry can be repeated if a file has fragmented contents. This explains why there is a terminator at the end of the entry header.
*In CPackedStoreFileHandle (Alien Swarm SDK) the data referred to by the article as "Preload" is referred to as "Metadata" instead. The actual file data and the metadata are never mixed, so the comment about vmt files being stored entirely in the directory is incorrect.
--[[User:BenLubar|BenLubar]] ([[User talk:BenLubar|talk]]) 13:05, 6 August 2022 (PDT)

Revision as of 13:05, 6 August 2022

I think the bit ShaRose added about skipping refers to the same thing as the following sentence:

Each tree node begins with a null terminated ASCII string and empty strings are used to signify the end of a parent node.

Perhaps I should have been clear the leaf nodes were exempt from this; nonetheless, the pseudo-code covers it. --Nem 06:44, 5 August 2009 (UTC)

Does anybody know whether the format is Big Endian or Little Endian? Seems to be an important piece of info that has been overlooked.--Pharap 16:42, 10 August 2013 (PDT)

Assumptions

I've been doing some reverse engineering/code research and a few assumptions made in this article are incorrect:

  • The ArchiveIndex, EntryOffset, and EntryLength fields of VPKDirectoryEntry can be repeated if a file has fragmented contents. This explains why there is a terminator at the end of the entry header.
  • In CPackedStoreFileHandle (Alien Swarm SDK) the data referred to by the article as "Preload" is referred to as "Metadata" instead. The actual file data and the metadata are never mixed, so the comment about vmt files being stored entirely in the directory is incorrect.

--BenLubar (talk) 13:05, 6 August 2022 (PDT)