PAK (ARC extension)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(2 intermediate revisions by one user not shown)
Line 7: Line 7:
 
'''PAK''' is a DOS utility for managing compressed archive files, developed by NoGate Consulting. It is also the name of one of the file formats it supports: .PAK format.
 
'''PAK''' is a DOS utility for managing compressed archive files, developed by NoGate Consulting. It is also the name of one of the file formats it supports: .PAK format.
  
PAK format is an extension of [[ARC (compression format)|ARC]] format. The differences are that it may use some PAK-specific compression methods (#10 "crushed", and #11 "distilled"), and that it has some features made possible by "extended records" stored after the end-of-archive marker.
+
PAK format is an extension of [[ARC (compression format)|ARC]] format. The differences are that it may use some PAK-specific compression methods (see below), and that it has some features made possible by "extended records" stored after the end-of-archive marker.
  
 
PAK was originally named '''GSARC''' (and used filename extension .ARC), but was quickly renamed to PAK (and the default extension changed to .PAK).
 
PAK was originally named '''GSARC''' (and used filename extension .ARC), but was quickly renamed to PAK (and the default extension changed to .PAK).
Line 15: Line 15:
 
== Disambiguation ==
 
== Disambiguation ==
 
See [[PAK]] for more formats named PAK.
 
See [[PAK]] for more formats named PAK.
 +
 +
== Format details ==
 +
 +
=== Compression methods ===
 +
ARC compression methods unique to PAK:
 +
 +
{| class="wikitable"
 +
! ID !! Name !! Description and remarks
 +
|-
 +
|10 || Crushed || [[RLE90]] + [[LZW]] (or [[LZMW]]?)
 +
|-
 +
|11 || Distilled || [[LZ77 with Huffman coding|LZ77 + static Huffman coding]]. Introduced in PAK v2.0.
 +
|}
 +
 +
For other ARC compression methods, see [[ARC (compression format)#Compression methods]].
 +
 +
== Self-extracting archives ==
 +
All versions of PAK and GSARC can create self-extracting [[MS-DOS EXE|EXE]] archives, either with the <code>/EXE</code> option, or the included EXEMAKE.EXE utility. The original distribution files (e.g. PAK251.EXE) use this format.
 +
 +
Such archives contain an embedded PAK file, with apparently one special case: PAK v1.6 (and only that version) when the file includes remarks (comments). In that case, the remarks are interleaved with the member files in a way that is not normal for PAK format.
 +
 +
== Identification ==
 +
 +
PAK format files made by PAK/GSARC v1.0 typically start with bytes <code>00x1a 0x0a</code>, and end with <code>00x1a 0x00</code>.
 +
 +
Files made by PAK v1.5–1.6 typically start with <code>00x1a 0x0a</code>, and end with <code>00xfe 0x00</code>.
 +
 +
Files made by PAK v2.0+ typically start with <code>00x1a 0x0b</code>, and end with <code>00xfe 0x00</code>.
 +
 +
A file that ends with <code>0xfe 0x00</code> could also be identifiable as PAK format if the first byte is <code>0x1a</code> and the second is <code>0x02</code>, <code>00x08</code>, or <code>00x09</code>. That could happen if the first member file was not compressible, or was compressed with non-default options.
  
 
== Specifications ==
 
== Specifications ==
Line 32: Line 62:
 
== Sample files ==
 
== Sample files ==
 
* {{CdTextfiles|carousel/ATARI/ARC2PAK1.PAK|ARC2PAK1.PAK}}
 
* {{CdTextfiles|carousel/ATARI/ARC2PAK1.PAK|ARC2PAK1.PAK}}
 +
* [{{SACFTPURL|utiltext|asa57.zip}} asa57.zip] → ASA57U.EXE - Example of a self-extracting PAK archive

Revision as of 21:38, 10 July 2022

File Format
Name PAK (ARC extension)
Ontology
Extension(s) .pak, .sdn
Released 1988

PAK is a DOS utility for managing compressed archive files, developed by NoGate Consulting. It is also the name of one of the file formats it supports: .PAK format.

PAK format is an extension of ARC format. The differences are that it may use some PAK-specific compression methods (see below), and that it has some features made possible by "extended records" stored after the end-of-archive marker.

PAK was originally named GSARC (and used filename extension .ARC), but was quickly renamed to PAK (and the default extension changed to .PAK).

See ARC for more information relevant to PAK format. See also SDN (SDN Project).

Contents

Disambiguation

See PAK for more formats named PAK.

Format details

Compression methods

ARC compression methods unique to PAK:

ID Name Description and remarks
10 Crushed RLE90 + LZW (or LZMW?)
11 Distilled LZ77 + static Huffman coding. Introduced in PAK v2.0.

For other ARC compression methods, see ARC (compression format)#Compression methods.

Self-extracting archives

All versions of PAK and GSARC can create self-extracting EXE archives, either with the /EXE option, or the included EXEMAKE.EXE utility. The original distribution files (e.g. PAK251.EXE) use this format.

Such archives contain an embedded PAK file, with apparently one special case: PAK v1.6 (and only that version) when the file includes remarks (comments). In that case, the remarks are interleaved with the member files in a way that is not normal for PAK format.

Identification

PAK format files made by PAK/GSARC v1.0 typically start with bytes 00x1a 0x0a, and end with 00x1a 0x00.

Files made by PAK v1.5–1.6 typically start with 00x1a 0x0a, and end with 00xfe 0x00.

Files made by PAK v2.0+ typically start with 00x1a 0x0b, and end with 00xfe 0x00.

A file that ends with 0xfe 0x00 could also be identifiable as PAK format if the first byte is 0x1a and the second is 0x02, 00x08, or 00x09. That could happen if the first member file was not compressible, or was compressed with non-default options.

Specifications

The PAK.DOC file contained in the v2.51 distribution includes basic information about .PAK/.ARC format, including the extended records. It does not document the compression schemes in detail.

Software

Sample files

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox