A WAD reader and extracting CLI tool using Golang.
Invoke WadToGo from the command line referencing the executable and passing the filename of the WAD you want to read as a parameter.
./wadtogo [options] <WAD Filename>
// Available WAD info options
-musicinfo Print the songs names and format contained within the WAD file.
-mapsinfo Print the map names within the WAD file.
-lumpsinfo-dump <filename> Dumps the WAD lumps list to the specified filename.
-musicinfo-dump <filename> Dumps the songs names and format to the specified filename
-mapsinfo-dump <filename> Dumps the map names to the specified filename
// Available export options
-music-export <folder name> Dumps the MIDI/MUS files from the WAD into the specified folder
-sprite-export <folder name> Dumps the sprites from the WAD into the specified folder as PNG's
Example:
$ ./wadtogo -musicinfo-dump musicinfo.txt DOOM.WAD
WAD Filename: DOOM.WAD
WAD Type: IWAD
Lumps: 2306
--------------------------
[Info] Song list dumped into musicinfo.txt
Create an executable binary for your machine using the following command:
go build .
You can use the following command to quickly run the program without generating a binary.
go run . <WAD Filename>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.