Scroll to navigation

SMPQ(1) General Commands Manual SMPQ(1)

SYNOPSIS

smpq [action] [options] [archive] [files]

NAME

SMPQ - StormLib MPQ archiving utility, version 1.6

Action

Create new archive with file(s)
Append file(s) to archive
Remove file(s) from archive
Rename file in archive
List file(s) of archive
Extract file(s) from archive
Show info about archive
Show this help/usage information
Show version license information

Options

Additional external listfile (not used when appending file)
Do not load system listfile(s) (not used when appending file)
Do not use/create archive listfile (file names will not be read/stored)
Do not allow using file attributes (time, checksum, hash)
Specify MPQ archive version: (default: use new version 4)

1 support up to 4GB size of archive

2 support greater then 4GB size of archive (Introduced in World of Warcraft: The Burning Crusade)

3 (Introduced in World of Warcraft: Cataclysm Beta)

4 (Introduced in World of Warcraft: Cataclysm)

Store/Check CRC for each sector, ignored if file has none compression or is single unit
Be quiet, do not show any output
Enable overwrite file(s)
Enable verbose output
Set locale id (default: neutral=0)

For all locale id see: http://msdn.microsoft.com/en-us/library/ms912047(WinEmbedded.10).aspx

Options for appending file(s) to archive

Set maximum file count of archive (power of 2, 0 - autodetect) (default: 0)
Store as encrypted
Encryption key will be adjusted according to file size in the archive (need -E)
Set deletion marker
Add file as single unit, cannot be encrypted
Compression method: (default: ZLIB)

none None compression

IMPLODE Pkware Data Compression IMPLODE method - OBSOLETE (It was used only in Diablo I)

PKWARE Pkware Data compression

HUFFMANN Huffmann compression (Introduced in Starcraft I)

ADPCM_MONO IMA ADPCM compression for 1-channel (mono) WAVE files - Lossy compression, only for WAVE files (Now it is not used)

ADPCM_STEREO IMA ADPCM compression for 2-channel (stereo) WAVE files - Lossy compression, only for WAVE files (Now it is not used)

ZLIB ZLIB compression (Introduced in Warcraft III)

BZIP2 BZIP2 compression (Introduced in World of Warcraft: The Burning Crusade)

SPARSE SPARSE compression (Introduced in Starcraft II)

LZMA LZMA compression (Introduced in Starcraft II)

HUFFMANN+ADPCM_MONO Together Huffmann and IMA ADPCM compression for 1-channel (mono) WAVE files

HUFFMANN+ADPCM_STEREO Together Huffmann and IMA ADPCM compression for 2-channel (stereo) WAVE files

ZLIB+PKWARE Together ZLIB and Pkware Data compression

BZIP2+PKWARE Together BZIP2 and Pkware Data compression

SPARSE+ZLIB Together SPARSE and ZLIB compression

SPARSE+PKWARE Together SPARSE and Pkware Data compression

SPARSE+BZIP2 Together SPARSE and BZIP2 compression

SPARSE+ZLIB+PKWARE Together SPARSE, ZLIB and Pkware Data compression

SPARSE+BZIP2+PKWARE Together SPARSE, BZIP2 and Pkware Data compression

Options for extracting file(s) from archive

Archive is partial (default: autodetect) (Partial archives were used by trial version of World of Warcraft)
Archive is not encrypted (default: autodetect) (Encrypted archives have Starcraft II installation)
Open more (patched) archives with directory prefix (prefix:archive), when file is in more archives, will be extracted from last

Usage with more (patched) archives

smpq -l|-x [options] [archive] -p [prefix1:archive1] [prefix2:archive2] ... -- [files]

Examples

smpq -c archive.mpq

smpq -c archive.mpq file1.txt file2.txt

smpq -x archive.mpq

smpq -x archive.mpq '*.txt'

smpq -i archive.mpq

AUTHOR

SMPQ is written by Pali Rohár <pali.rohar@gmail.com>

LICENSE

SMPQ is distributed under GNU GPL v3

Jul 8 2018 SMPQ - StormLib MPQ archiving utility, version 1.6