logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Action

-c,--create
              Create new archive with file(s)

       -a,--append,--add
              Append file(s) to archive

       -d,-r,--delete,--remove
              Remove file(s) from archive

       -R,--rename
              Rename file in archive

       -l,--list
              List file(s) of archive

       -e,-x,--extract
              Extract file(s) from archive

       -i,--info
              Show info about archive

       -h,-u,--help,--usage
              Show this help/usage information

       -V,--license,--version
              Show version license information

Author

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

Examples

Createemptyarchive`archive.mpq'

              smpq -c archive.mpq

       Createarchive`archive.mpq'withtwofiles`file1.txt'and`file2.txt'

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

       Extractallfilesfromarchive`archive.mpq'tocurrentdirectory

              smpq -x archive.mpq

       Extractfileswithextension.txtfromarchive`archive.mpq'

              smpq -x archive.mpq '*.txt'

       Showinformationaboutarchive`archive.mpq'

              smpq -i archive.mpq

License

       SMPQ is distributed under GNU GPL v3

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

Name

       SMPQ - StormLib MPQ archiving utility, version 1.6

Options

-L,--listfile<file>
              Additional external listfile (not used when appending file)

       -n,--no-system-listfiles
              Do not load system listfile(s) (not used when appending file)

       -N,--no-archive-listfile
              Do not use/create archive listfile (file names will not be read/stored)

       -A,--no-attributes
              Do not allow using file attributes (time, checksum, hash)

       -M,--mpq-version<version>
              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)

       -S,--sector-crc
              Store/Check CRC for each sector, ignored if file has none compression or is single unit

       -q,--quiet
              Be quiet, do not show any output

       -f,-o,--force,--overwrite
              Enable overwrite file(s)

       -v,--verbose
              Enable verbose output

       -O,--locale<id>
              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

-m,--max-file-count<count>
              Set maximum file count of archive (power of 2, 0 - autodetect) (default: 0)

       -E,--encrypt
              Store as encrypted

       -F,--fix-key
              Encryption key will be adjusted according to file size in the archive (need -E)

       -D,--deletion-marker
              Set deletion marker

       -U,--single-unit
              Add file as single unit, cannot be encrypted

       -C,--compression<method>
              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

-P,--partial
              Archive  is partial (default: autodetect) (Partial archives were used by trial version of World of
              Warcraft)

       -X,--not-encrypted
              Archive is not encrypted (default: autodetect) (Encrypted archives have Starcraft II installation)

       -p     Open more (patched) archives  with  directory  prefix  (prefix:archive),  when  file  is  in  more
              archives, will be extracted from last

Synopsis

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

Usage With More (Patched) Archives

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

See Also