Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

MPQEditor

ChiefOfGxBxL edited this page Oct 27, 2017 · 1 revision

Ladik's MPQ Editor 3.5.1.820

Launch into console mode by using MPQEditor.exe /console, and then get help by help

Common commands

New

Creates a new MPQ. If the file already exists, it will be converted to MPQ.
new MpqFile [MaxFileCount]

  • MpqFile Name of the MPQ to be used for this operation.
  • MaxFileCount File limit. Can be a dec or hex number. Default is 0x1000.

Open

Opens an existing MPQ. If the file doesn't exist, the function fails.
open MpqFile [ListFile]

  • MpqFile Name of the MPQ to be used for this operation.
  • ListFile Name of the listfile to be used on open operation

Add

Adds one or more files into the MPQ. Replaces existing files.
add MpqFile [SourceFile] [TargetName] [/wav] [/c] [/auto] [/r]

  • MpqFile Name of the MPQ to be used for this operation.
  • SourceFile Name of source file. Can contain wildcards.
  • TargetName Target file name (or directory name) in MPQ.
  • /wave Add the file as WAVE file
  • /c Use data file compression
  • /auto Choose compression by file type
  • /r Recurse subdirectories

Rename

Renames a file within MPQ.
rename MpqFile OldFileName NewFileName

  • MpqFile Name of the MPQ to be used for this operation.
  • OldFileName Name of file to be renamed.
  • NewFileName New name of the file

Move

Moves a file within MPQ into another dir.
move MpqFile FileName NewDirectory

  • MpqFile Name of the MPQ to be used for this operation.
  • FileName Name of file to be moved.
  • NewDirectory Target directory within MPQ to move the file to

Delete

Deletes a file within MPQ.
delete MpqFile FileName

  • MpqFile Name of the MPQ to be used for this operation.
  • FileName Name of file to be deleted

Flush

Compacts the MPQ, removing all empty space.
flush MpqFile [ListFile]

  • MpqFile Name of the MPQ to be used for this operation.
  • ListFile Listfile name. If none, the internal listfile is used.

Close

Closes currently open MPQ.
close

General

Features

Community

  • Conduct
  • Contributing
  • Support
  • Hive

Extensions

  • Getting Started
  • References
  • Checklist
  • NPM/Publishing

Clone this wiki locally