This repository contains tools to manipulate PUD files. PUDs are Warcraft II map files.
The build system used is cmake
:
mkdir -p build && cd build
cmake ..
, orcmake -DBUILD_TOOLS=ON ..
if you want to build development tools bundled with war2tools. You are probably not interested in them, and they will not be installed.cmake --build .
To install (as root):
cmake --build . --target install
- Possibly
ldconfig
on GNU/Linux (as root)
A C library to manipulate a PUD file:
- extract all data from it;
- generate a custom PUD file;
- generate a bitmap of the minimap.
A C library which aims at extracting data from Warcraft II data files to get:
- tilesets;
- units and buildings' sprites;
- musics and sounds;
- cinematics.
Graphical modules (optionals):
- libpng
- jpeglib
TODO:
- Musics
- Sounds
- Cinematics
A small tool that allows to interact with libpud
.
It allows to export the minimap of a PUD to an image. Supported formats:
- jpg
- png
- ppm
To disable the compilation of pud
, pass -DBUILD_PUD_UTIL=OFF
to cmake.
Those binaries are mostly helpers to create the libraries.
defaults_gen
: used to generate parts oflibpud/defaults.c
extract_tiles
: used to extract tiles from maindat.warextract_sprites
: used to extract units and buildings' sprites from maindat.warextract_icons
: used to extract icons' sprites from maindat.warppm_cmp
: makes adiff
between 2 ppm filestilemap
: used to generate parts oflibpud/tiles.c
tiler
: generates a map with all possible tilestiles
: used to generate parts oflibpud/tiles.c
To enable the compilation of the tools, pass -DBUILD_TOOLS=ON
to cmake.`
All resources (sprites, tiles, .PUD, .WAR) are property of Blizzard Entertainment. Documentation is taken from multiple internet sources, which are referenced when used.
war2tools source code (libpud, libwar2, include files, tools) are under the MIT license.
For more details, please refer to the LICENSE
file.