Woof! is a continuation of Lee Killough's Doom source port MBF targeted at modern systems.
MBF stands for "Marine's Best Friend" and is widely regarded the successor of the Boom source port by TeamTNT. It serves as the code base for popular Doom source ports such as PrBoom+/DSDA-Doom or The Eternity Engine. As the original engine was limited to run only under MS-DOS, it has been ported to Windows by Team Eternity under the name WinMBF in 2004. Woof! is developed based on the WinMBF code with the aim to make MBF more widely available and convenient to use on modern systems.
To achieve this goal, this source port is less strict regarding its faithfulness to the original MBF. It is focused on quality-of-life enhancements, bug fixes and compatibility improvements. However, all changes have been introduced in good faith that they are in line with the original author's intentions and even for the trained eye, this source port should still look very familiar to the original MBF.
In summary, this project's goal is to forward-port MBF.EXE from DOS to 21st century and remove all the stumbling blocks on the way. Furthermore, just as MBF was ahead of its time, this project dedicates itself to early adoption of new modding features such as DEHEXTRA+DSDHacked, UMAPINFO and MBF21.
If you turn the Doom logo upside down it reads "Wood" - which would be a pretty stupid name for a source port. "Woof" is just as stupid a name for a source port, but at least it contains a reference to dogs - and dogs are the Marine's Best Friend. 😉
The following key features have been introduced in Woof! relative to MBF or WinMBF, respectively.
- The code has been made 64-bit and big-endian compatible.
- The code has been ported to SDL2, so the game scene is now rendered to screen using hardware acceleration if available.
- The build system has been ported to CMake with support for building on Linux and Windows, using either MSVC or MinGW and the latter either in a cross-compiling or a native MSYS2 environment.
- All non-free embedded lumps have been either removed or replaced.
- Support for "autoload" directories has been added, both for common ("doom-all") and per IWAD files. WAD files in these directories are loaded before those passed to the
-file
parameter, DEHACKED files in these directories are processed after those passed to the-deh
parameter and before those embedded into WAD files. Additionally, autoload directories for PWADs are also supported in a similar manner, but these directories will need to be created manually. - Savegame backward compatibility across different platforms and releases is maintained, so it is possible to restore savegames from previous versions and even MBF.EXE.
- Integration of the Chocolate Doom network code. Demo compatible multiplayer for all supported complevels allowing for cross-port network games with the Chocolate family of ports, e.g. Crispy Doom (remember to set
-complevel vanilla
for the server).
- The renderer has been made much more robust against common rendering bugs which were found especially in extremely huge levels and levels with extreme heights or height differences.
- Support for rendering with uncapped frame rate and frame interpolation has been added.
- A widescreen rendering mode has been added with proper support for the widescreen assets found e.g. in the Unity version of Doom.
- Screenshots are saved in PNG format and are actual representations of the game screen rendering.
- The port is able to play back SFX in any sound format supported by SDL2_Mixer and precaches them in memory at start up.
- The port provides several music backends: Digital music formats are played back with SDL2_Mixer, the "native" backend plays back MIDI music with with the native MIDI renderer on Windows and with SDL2_Mixer elsewhere, the "fluidsynth" backend plays back MIDI music with the fluidsynth renderer (if available) and the bundled SF2 soundfont, and the "OPL" backend plays back MIDI music with the built-in OPL3 emulator.
- The port allows to bind each action to multiple keys and mouse or joystick buttons, and unbind them using the Del key in the menu.
- The port provides modern gamepad support allowing to bind any action to shoulder triggers or analog sticks.
- The level building code has been upgraded to allow for loading maps in "extended nodes" format. Furthermore, maps using nodes in DeePBSP and (either compressed or uncompressed) ZDBSP formats can now be loaded.
- Support for tall textures and sprites in DeePsea format has been added.
- Support for unlimited extra states, sprites, mobjtypes and sounds has been added for use in Dehacked patches (supporting the "DEHEXTRA" and "DSDHacked" specs).
- Support for changing in-game music using the "MUSINFO" lump has been added.
- Support for the "UMAPINFO" lump has been added, compliant to Rev 2.0 of the spec.
- Support for the "MBF21" compatibility level has been added.
- All IWAD files since Doom 1.2 are supported, including Doom Shareware, The Ultimate Doom, Doom 2 and Final Doom. Furthermore, the IWAD files shipped with the "Doom 3: BFG Edition" and the ones published by the Freedoom project as well as Chex Quest, HACX and REKKR are supported.
- UMAPINFO lumps for MASTERLEVELS.WAD, NERVE.WAD, SIGIL_V1_21.WAD, E1M4B.WAD and E1M8B.WAD have been added which are meant to be autoloaded with the corresponding PWAD and change map title, level transitions, par times, music and skies accordingly.
- The concept of compatibility levels has been added, currently offering "Vanilla", "Boom", "MBF" and "MBF21" (default). The default compatibility level may be changed through the menu and overridden with the
-complevel
parameter, allowing for both numeric and named arguments, or theCOMPLVL
lump. Menu items in the Setup menu that don't apply to the current compatibility level are disabled and grayed out. - The project strives for full demo compatibility for all supported complevels.
- The SPECHITS, REJECT and INTERCEPTS overflow emulations have been ported over from Chocolate Doom / PrBoom+, allowing for some more obscure Vanilla demos to keep sync.
The Woof! source code is available at GitHub: https://github.com/fabiangreffrath/woof.
It can be cloned via
git clone https://github.com/fabiangreffrath/woof.git
On Linux, you will need to install the SDL2, SDL2_mixer and SDL2_net libraries. Usually your distribution should have the corresponding packages in its repositories, and if your distribution has "dev" versions of those libraries, those are the ones you'll need.
Once installed, compilation should be as simple as:
cd woof
mkdir build; cd build
cmake ..
make
After successful compilation the resulting binary can be found in the src/
directory.
Visual Studio 2019 comes with built-in support for CMake by opening the source tree as a folder. Otherwise, you should probably use the GUI tool included with CMake to set up the project and generate build files for your tool or IDE of choice.
It's worth noting that you do not need to download any dependencies. The build system will automatically download them for you.
You may want to cross-compile from Linux to Windows. First, make sure you have a reasonably recent version of the Mingw-w64 package installed. From there, cross-compiling should be as easy as:
cd woof
mkdir build; cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../CrossToWin64.cmake ..
make
Much like a native Windows build, you do not need to download any dependencies.
A complete changelog can be found in the Wiki or on the Releases page.
Woof! 10.0.0 is released on Jun 17, 2022.
Main Features
- Implement Crispy HUD as an alternative to Boom HUD.
- Add mouselook implementation.
- Stretch short skies (< 200 px height) optionally, else fill with a solid color (from Eternity Engine).
- More demo playback QOL features (progress bar,
-skipsec
, fast-forward key). - Smooth diminishing lightning from Crispy Doom.
- Gradual decrease/increase of gamma from Doom Retro (the old gamma levels are still available with the default F11 key).
- Brightmaps for textures and sprites from Crispy Doom.
- Add
woof-setup
multiplayer launcher with master server browser (from Chocolate Doom). - Add support for SMMU swirling flats.
- Strict mode (sets compatibility and cosmetic settings according to DSDA rules).
- Fix netgame level reload.
- Fix uncapped mode in netgame (needs more testing).
The canonical homepage for Woof! is https://github.com/fabiangreffrath/woof.
Woof! is maintained by Fabian Greffrath.
Please report any bugs, glitches or crashes that you encounter to the GitHub Issue Tracker.
MBF has always been a special Doom source port for me, as it tought me how to implement 640x400 resolution rendering which was the base for my own source port project Crispy Doom. As the original MBF was limited to run only under MS-DOS, I used its pure port WinMBF by Team Eternity to study and debug the code. Over time, I got increasingly frustrated that the code would only compile and run on 32-bit systems and still use the meanwhile outdated SDL-1 libraries. This is how this project was born.
Many additions and improvements to this source port were taken from fraggle's Chocolate Doom, taking advantage of its exceptional portability, accuracy and compatibility.
Files: *
Copyright:
© 1993-1996 Id Software, Inc.;
© 1993-2008 Raven Software;
© 1999 by id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman;
© 2004 James Haley;
© 2005-2018 Simon Howard;
© 2006 Ben Ryves;
© 2017 Christoph Oelckers;
© 2019 Fernando Carmona Varo;
© 2019 Jonathan Dowland;
© 2020-2022 Fabian Greffrath;
© 2020 Alex Mayfield;
© 2020-2022 Roman Fomin.
License: GPL-2.0+
Files: src/beta.h
Copyright: © 2001-2019 Contributors to the Freedoom project.
License: BSD-3-Clause
Files: src/dogs.h
Copyright:
© 2017 Nash Muhandes;
© apolloaiello;
© TobiasKosmos.
License: CC-BY-3.0 and CC0-1.0
Files: src/u_scanner.*
Copyright:
© 2010 Braden "Blzut3" Obrzut;
© 2019 Fernando Carmona Varo.
License: BSD-3-Clause
Files: cmake/FindFluidSynth.cmake
Copyright: © 2018 Christophe Giboudeaux.
License: BSD-3-Clause
Files: cmake/FindSDL2.cmake, cmake/FindSDL2_mixer.cmake, cmake/FindSDL2_net.cmake
Copyright: © 2018 Alex Mayfield.
License: BSD-3-Clause
Files: data/woof.ico, data/woof.png, data/woof8.ico, src/icon.c, data/setup.ico, data/woof-setup.png, data/setup8.ico, setup/setup_icon.c, src/thermo.h
Copyright: © 2020-2022 Julia Nechaevskaya.
License: CC-BY-3.0
Files: miniz/*
Copyright:
© 2010-2014 Rich Geldreich and Tenacious Software LLC;
© 2013-2014 RAD Game Tools and Valve Software.
License: MIT
Files: opl/*
Copyright:
© 2005-2014 Simon Howard;
© 2013-2018 Alexey Khokholov (Nuke.YKT).
License: GPL-2.0+
Files: soundfonts/TimGM6mb.sf2
Copyright:
© 2004 Tim Brechbill;
© 2010 David Bolton.
License: GPL-2.0
Files: textscreen/*
Copyright:
© 1993-1996 Id Software, Inc.;
© 1999 Thomas A. Fine;
© 2002-2004 The DOSBox Team;
© 2005-2017 Simon Howard.
License: GPL-2.0+
Files: win32/stdint.h
Copyright: © 2006-2008 Alexander Chemeris.
License: BSD-3-Clause
Files: win32/win_opendir.*
License: Public Domain