Skip to content

sleibrock/wad2map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wad2map - Maps for WADs

wad2map is a Rust program written to convert Doom maps into Scalable Vector Graphic files. Credits to jasonsperske's Python script for the inspiration.

Installation

To install, use the following set of instructions:

git clone https://github.com/sleibrock/wad2map && cd wad2map
cargo install

You need to use Rust's Cargo tool, so make sure you install Rust with Rustup.

Instructions

wad2map accepts a path to a WAD file and will render all maps in the WAD into a new folder the same name as the WAD. wad2map also accepts multiple WADs at once for batch rendering.

If you wanted to generate all of Doom 1's maps into SVG format, simply call the following instruction:

wad2map doom.wad

To run wad2map on a list of files, simply list each file sequentially.

wad2map doom.wad doom2.wad heretic.wad ...

Converting SVGs to PNG

wad2map exports all levels in Scalable Vector Graphics format to preserve quality when scaling the image upwards. In order to convert the SVG to something like Portable Network Graphics (PNG), you can use the standard Linux tool convert to convert a map to PNG format.

$ convert doom.wad.maps/E1M1.svg ./E1M1.png

Optionally you can use GIMP or Inkscape to also do similar things.

Examples

You can see examples in the examples directory which contains different wads that I've tested (all IWADs, some PWADs).

Doom's E1M1 "Hangar" Doom E1M1

Doom II's MAP01 "Entryway" Doom 2 MAP01

Heretic's E1M1 "The Docks" Heretic E1M1

Tested WADs

Here is a list of all the wads that I've tested wad2map against. The list includes IWADs (id Software or otherwise created wads) and PWADs (player-made wads). In order to load PWADs like aoddoom2 or scythe2, you need the core DOOM2.WAD file, or you need to use the total replacement FreeDoom wad. Links are included to the store pages for purchasing the games.