WadMaker - a command-line wad-making tool Created 4 weeks ago2021-05-16 22:05:58 UTC by Captain P Captain P

Created 4 weeks ago2021-05-16 22:05:58 UTC by Captain P Captain P

Posted 4 weeks ago2021-05-16 22:05:58 UTC Post #345618
WadMaker is finally finished!
It can be downloaded here. For more information, see the readme.

This command-line tool can turn a directory full of images into a Half-Life wad file - just drag the directory onto the tool. It can also extract textures from wad and bsp files, or remove embedded textures from bsp files.

WadMaker directly supports png, jpg, gif, bmp and tga files, and can be configured to call external conversion tools for other formats. It will automatically create a suitable 256-color palette for each image. It will also apply a limited form of dithering, which can be disabled if necessary. For transparent textures, the alpha channel of the input image is compared against a configurable threshold, but it is also possible to treat a specific input color as transparent. For water textures, the fog color and intensity are derived from the image itself, but they can also be specified explicitly. All these texture-specific settings can be overridden with a plain-text wadmaker.config file in the images directory.

Why did I make this tool? First, I was investigating the various Half-Life file formats anyway. Second, I wanted a faster workflow than Wally (for me, running a batch file is faster than opening a GUI tool, dragging files around, saving a wad file, and closing the GUI tool). And finally, investigating various approaches to color quantization and dithering, and reading up on color spaces and color perception turned out to be very interesting.
Changes in v1.1:
New features:
  • Added support for Photoshop files (.psd, .psb) that have been saved with 'maximize compatibility' enabled.
  • Added support for Krita (.kra) and OpenRaster (.ora) files.
  • Added support for creating and extracting decal wad files (decals.wad).
  • Updated the wadmaker.config system to apply all matching rules (with more specific rules overriding less specific ones).
  • Console output is now logged to a file (only in create-wad mode). This can be disabled with a command-line option.
Bugfixes:
  • Fixed that removing an image with an uppercase name would cause updating a wad file to fail.
  • Fixed that water color was accidentally black by default.
Posted 4 weeks ago2021-05-16 22:42:00 UTC Post #345619
You're making such cool stuff, Cap'n!! Awesome
Archie ArchieGoodbye Moonmen
Posted 3 weeks ago2021-05-18 05:23:22 UTC Post #345630
That's great! I actually long longed for such a tool, good job Captain!
Posted 3 weeks ago2021-05-18 19:58:37 UTC Post #345631
Posted 3 weeks ago2021-05-19 00:13:40 UTC Post #345633
Thanks! Don't hesitate to ask if you have questions or feedback. :)
Posted 3 weeks ago2021-05-19 11:52:31 UTC Post #345635
sound like a boon for big projects
Posted 3 weeks ago2021-05-19 13:09:24 UTC Post #345638
Nice, sounds very useful.
Posted 2 weeks ago2021-05-30 23:41:52 UTC Post #345668
WadMaker 1.1 is now available!
It can be downloaded here. For more information, see the readme.

New features:
  • Added support for Photoshop files (.psd, .psb) that have been saved with 'maximize compatibility' enabled.
  • Added support for Krita (.kra) and OpenRaster (.ora) files.
  • Added support for creating and extracting decal wad files (decals.wad).
  • Updated the wadmaker.config system to apply all matching rules (with more specific rules overriding less specific ones).
  • Console output is now logged to a file (only in create-wad mode). This can be disabled with a command-line option.
Bugfixes:
  • Fixed that removing an image with an uppercase name would cause updating a wad file to fail.
  • Fixed that water color was accidentally black by default.

WadMaker will automatically switch to decal mode when the ouput wad file name is 'decals.wad', and it expects input images to have an alpha channel - which it will use to create the decal texture. The average color of the input image is used as decal color. If you're not sure what format is expected, then first try extracting a decals.wad file, and take a look at the extracted images. It's also possible to enable grayscale input with a wadmaker.config setting - in that case you should also specify the decal color in the settings file.

As for Photoshop files, not all compression methods are supported because I could only find test files with raw and RLE compressed composite images. So please let me know if certain files don't work. I can add support as soon as I get some files to test with.
You must be logged in to post a response.