Warcraft III Library

Warcraft III Library supports displaying models, textures or even maps from Blizzard's game Warcraft III: Reign of Chaos and its expansion Warcraft III: The Frozen Throne. It provides a core layer consisting of sub libraries which support reading and writing of those formats and as well a display layer which is able to emulate parts of Warcraft's famous World Editor.

wc3lib is written in C/C++. While its core layer takes heavily use of the Boost C++ Libraries, the display layer is based on Qt, KDE SC and OGRE.


2016-10-14: The Qt based Object Editor allows compressing object data which means removing hidden fields from all objects. Besides it is planned to create an ObjectMerger emulator which fixes several bugs of the original ObjectMerger. wc3lib is also available on GitHub now.


For GNU/Linux distributions download the latest RPM here.
Most source code is put under the GPLv2 which guarantees you free usage.
It can be checked out using Git:

git clone git://wc3lib.org/wc3lib.git

and compiled creating a compile directory, running CMake and Make:

cd wc3lib
mkdir build
cd build
cmake ../
make -j4


make -j4 install

You can disable several options like "JASS" or "MDLX" using CMake if you want to reduce the compile time and don't need all the features. wc3lib depends on several libraries:

If the requiring components are not compiled, the dependencies are not required.


wc3lib does already offer a list of features:


wc3lib comes with some useful tools such as an MPQ extractor and a format converter:

mpq -t war3.mpq

lists all files contained in "war3.mpq"

mpq -g -f "SharedModels\LightningBall.tga" war3.mpq

Extracts "LightningBall.tga" into directory "./war3/SharedModels/LightningBall"

wc3converter . TestModel.mdx --oformat mdl

Converts "TextModel.mdx" into MDL file "TestModel.mdl".


BLP Icons in Gwenview Custom Model Editor for MDX and MDL files MPQ IO support in file manager Dolphin Warcraft III Trigger Editor Trigger action dialog Object Editor Abilities Weather Editor


Email: barade.barade [at] web.de