Skip to content

Esteban795/WAD-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAD-reader

A C program that lets you read a DOOM WAD file and displays the structure of the map accordingly.

What does it do ?

  • It takes a .WAD filepath as an input, reads it and attempts to display the result of what it just read, as a 2D map of points and linedefs (that represent the vertexes and linedefs that are part of the Doom structure of sectors and subsectors).

Requirements

  • C compiler (gcc or clang worked juste fine for me), and the standard lib that goes with it.
  • SDL2 library. You can install it using :
sudo apt install libsdl2-dev

How to install it on your computer ?

  • Just clone it wherever you want in your computer, using :
git clone https://github.com/Esteban795/WAD-reader.git
  • When inside the folder, you can run
make all

to have the program display an example for you. If everything goes finek, you should get this on your screen :

doom1WADread

If it doesn't work for some reason, open an issue and I'll look into it as much as possible.

How to use it ?

  • From the folder, just
make build

and then go ahead using either

make run

to display a file example, or use

./bin/wad_reader <yourfilepathhere>

if you prefer to use a custom file.

/!\ Warning :

  • Because DOOM changed its way of formatting between the original DOOM and the second, and basically the others, to display the other files, make sure you changed the line E1M1 to MAP01, MAP02 or anything.I'll try working on that to autodetect with parsing arguments.

About

A C program that lets you read a WAD file and displays the structure of the map accordingly.

Topics

Resources

License

Stars

Watchers

Forks