MPQ Archives

Overview



MPQ Archives

MPQ (MoPaQ) is an archive format developed by the Blizzard Entertainment company, intended for storing data files, images, sounds, music and videos for their games:

They are also used in games Lords of Magic and Hellfire from Sierra. Name MoPaQ comes from the author of the format, Mike O'Brien (Mike O'brien PaCK).

Previous versions of archives

Before the game of Diablo was released, Blizzard used WAR format (Warcraft ARchive) for their stuff. This format was used with the game of Warcraft II (maybe also Warcraft I). This format was very simple, and average hacker was able to hack it in quite short time. Although it was not so great problem in Warcraft II, the newly coming game of Diablo needed to use a better archive format.

Requirements

A few main requirements were given onto newly developed format:

MPQ archives can be stored also as part of EXE or other files. For example game patches are self-extracting MPQ archives.

MPQ patches

For the possibility of patching existing games, Blizzard does not change existing MPQ archives (which are on CD in some games). Instead of this, patching app creates a file Patch_rt.mpq (War3patch.mpq). When opening archive, the game first tries to open a file from the patch archive (Patch_rt.mpq). When it fails, the game looks for data in the original archive. With the Warcraft III game is also possible to make the game use, locally stored (unarchived) files when you change this setting in the registry:

REGEDIT4

[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III]
"Allow Local Files"=dword:00000001



Copyright (c) Ladislav Zezula 2003 - 2006