ZIP: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''ZIP''' is an archive file format with optional lossless compression. It is used in {{src|4.1}} for the [[BSP (Source)#Pakfile|pakfile lump in BSP files]], as well as for bonus map [[BMZ]] files. The ZIP file format supports several different compression format, although Source only supports uncompressed and, in some engine branches, {{wiki|LZMA}}.
'''ZIP''' is an archive file format with optional lossless [[compression]]. It is used in {{src|4.1}} for the [[BSP (Source)#Pakfile|pakfile lump in BSP files]], as well as for bonus map [[BMZ]] files. It is also most likely used to store game data for the {{360|4}} (or other consoles) version of {{source|4}} games{{Cite|1}}. The ZIP file format supports several different compression format, although Source only supports uncompressed and, in some engine branches, {{wiki|LZMA}}. Note that this is different from the more widely-supported {{w|Deflate}}.


{{warning|Only certain engine branches and BSP versions support compressed pakfiles; {{src13mp}} and {{jbep3}} do, but {{src13sp}} and {{Csgobranch}} do not!}}
{{warning|Only certain engine branches support compressed pakfiles; {{src13mp}} and {{jbep3}} do, but {{src13sp}} and {{Csgobranch}} do not!}}
 
<!-- PK3 redirects here, as linked from some tool software pages-->
Additionally, the ZIP file format is used for the '''PK3''' and '''PK4''' files used by {{quake3|4.1|nt=3}} and {{idtech4|4.1}}, respectively, which use the standard {{wiki|Deflate}} compression instead.


== Structs ==
== Structs ==
{{todo}}
{{todo|See [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/zip_uncompressed.h Source 2013 Multiplayer] and [https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/public/zip_uncompressed.h Source 2013 Singleplayer] versions of {{file|zip_uncompressed|h}}, containing the [[struct]]s used by Source to load ZIP files }}
[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/zip_uncompressed.h Source 2013 Multiplayer] and [https://github.com/ValveSoftware/source-sdk-2013/blob/master/sp/src/public/zip_uncompressed.h Source 2013 Singleplayer] versions of {{file|zip_uncompressed|h}}, containing the [[struct]]s used by Source to load ZIP files
Unlike most file formats, a ZIP file's header is near the ''end'' of the file, meaning that if, for example, a ZIP file is concatenated to the end of a [[PAK]] file, the resulting file will be both a valid PAK file and a valid ZIP file.


== See also ==
== See also ==
* [[PAK]], uncompressed archive format used by {{idtech2|4}} and {{goldsrc|4}}
* [[PAK]], uncompressed archive format used by {{idtech2|4}} and {{gldsrc|4}}
* [[VPK (file format)|VPK]], uncompressed archive format used by {{src|4}} and {{src2|4}}
* [[VPK (file format)|VPK]], uncompressed archive format used by {{src|4}} and {{src2|4}}
* [[GCF archive|GCF]], uncompressed archive format formerly used by {{steamicon|4}}, prior to the SteamPipe update.
* [[GCF archive|GCF]], uncompressed archive format formerly used by {{steamicon|4}}, prior to the SteamPipe update.
Line 19: Line 16:
* {{wiki|ZIP (file format)}} on Wikipedia
* {{wiki|ZIP (file format)}} on Wikipedia


[[category:files]]
{{references|1=
[[category:file formats]]
{{ref2|cite id=1|[[User:kr0tchet]] - Currently I only seen that from the {{p3|4}} leaked {{x360|4}} build (the zip file was named as {{file|zip0.360|zip}}), and can be only opened by using 7-Zip (WinRAR cause an error about unexpected end of archive), not sure if console's {{tob|4}} also store some it's game files to ZIP aswell.}}
}}
 
[[Category:files]]
[[Category:file formats]]

Latest revision as of 08:03, 26 March 2025

ZIP is an archive file format with optional lossless compression. It is used in Source Source for the pakfile lump in BSP files, as well as for bonus map BMZ files. It is also most likely used to store game data for the Xbox 360 Xbox 360 (or other consoles) version of Source Source games[1]. The ZIP file format supports several different compression format, although Source only supports uncompressed and, in some engine branches, Wikipedia icon LZMA. Note that this is different from the more widely-supported Wikipedia icon Deflate.

Warning.pngWarning:Only certain engine branches support compressed pakfiles; Source 2013 Multiplayer and Jabroni Brawl: Episode 3 do, but Source 2013 Singleplayer and CS:GO engine branch do not!

Structs

Todo: See Source 2013 Multiplayer and Source 2013 Singleplayer versions of 🖿zip_uncompressed.h, containing the structs used by Source to load ZIP files

Unlike most file formats, a ZIP file's header is near the end of the file, meaning that if, for example, a ZIP file is concatenated to the end of a PAK file, the resulting file will be both a valid PAK file and a valid ZIP file.

See also

  • PAK, uncompressed archive format used by id Tech 2 id Tech 2 and GoldSrc GoldSrc
  • VPK, uncompressed archive format used by Source Source and Source 2 Source 2
  • GCF, uncompressed archive format formerly used by Steam Steam, prior to the SteamPipe update.
  • BZ2, single-file compression format used by FastDL servers (only in Source)

External links

References

References
1. User:kr0tchet - Currently I only seen that from the Postal III Postal III leaked Xbox 360 Xbox 360 build (the zip file was named as 🖿zip0.360.zip), and can be only opened by using 7-Zip (WinRAR cause an error about unexpected end of archive), not sure if console's The Orange Box The Orange Box also store some it's game files to ZIP aswell..