Crispy Doom

The Crispy Doom icon
DoomWiki.org
For more information on this article, visit the Crispy Doom page on the Doom Wiki.

Crispy Doom is a limit-removing enhanced-resolution Doom source port based on Chocolate Doom.
Its name means that 640x400 looks "crisp" and is also a slight reference to its origin.

SynopsisEdit

Crispy Doom is a friendly fork of Chocolate Doom that provides a higher display resolution, removes the static limits of the Doom engine and offers further optional visual, tactical and physical enhancements while remaining entirely config file, savegame, netplay and demo compatibile with the original.

Objectives and featuresEdit

Crispy Doom is a source port that aims to provide a faithful Doom gaming experience while also featuring some user-requested improvements and enhancements. It is forked off of Chocolate Doom to take advantage of its free and open-source code base, portability, accuracy and compatibility with Vanilla Doom.

Its core features are:

  • Enhanced 640x400 display resolution, with the original 320x200 resolution still available in the "Graphics Detail: Low" mode.
  • Removal of all static engine limits, or at least raising of the less crucial ones.
  • Full support for the "Doom Classic" WADs shipped with the "Doom 3: BFG Edition", especially the "No Rest For The Living" episode shipped in the NERVE.WAD file.

Furthermore, the following optional user-visible features are available:

  • Jumping.
  • Free vertical looking, including mouse look and vertical aiming.
  • A new minimal Crispy HUD, displaying only the status bar numbers.
  • Colorized status bar numbers, HUD texts and blood sprites for certain monsters.
  • Tranlucency for certain sprites and status bar elements in the Crispy HUD.
  • Randomly mirrored death animations and corpse sprites.
  • Players may walk over or under monsters and hanging corpses.
  • Aiming support by a crosshair that may get directly rendered into the game world.
  • Centered Weapons when firing, weapon recoil thrust and pitch.
  • Reports whenever a secret is revealed.
  • Level statistics in the Automap.

All of these features are disabled by default and need to get enabled either in the in-game "Crispness" menu or in the crispy-doom-setup tool. They are implemented in a way that preserves demo-compatibility with Vanilla Doom and network game compatibility with Chocolate Doom. Furthermore, Crispy Doom's savegames and config files are compatible, though not identical, to Vanilla Doom's.

Crispy Doom strives for maximum compatibility with all "limit-removing Vanilla" maps -- but not Boom or ZDoom maps. Many additional less user-visible features have been implemented, e.g. fixed engine limitations and crashes, fixed rendering bugs, fixed harmless game logic bugs, full support for DEHACKED files and lumps in BEX format, additional and improved cheat codes, an improved Automap, and many more! For a detailed list of features and changes please refer to the release notes below.

New command line parametersEdit

  • -mergedump <file> merges the PWAD file(s) given on the command line with the IWAD file and writes the resulting data into the <file> given as argument. Might be considered as a replacement for the DEUSF.EXE tool.
  • -fliplevels loads mirrored versions of the maps. WARNING: This is the default on April 1st!
  • -blockmap forces a (re-)building of the BLOCKMAP lumps for loaded maps.
  • -monosfx plays all sound effects in mono (new in 5.0).

New cheat codesEdit

  • TNTWEAP followed by a weapon number gives or removes this weapon (8 = Chainsaw, 9 = SSG). Try to load Doom 1 with DOOM2.WAD as a PWAD and type TNTWEAP9 to play the SSG in Doom 1.
  • TNTEM, KILLEM or FHHALL kill all monsters on the current map (and disables all cube spitters).
  • SPECHITS triggers all Linedef actions on a map at once, no matter if they are enabled by pushing, walking over or shooting or whether they require a key or not. It also triggers all boss monster and Commander Keen actions if possible.
  • NOTARGET or FHSHH toggle deaf and blind monsters that do not act until attacked.
  • TNTHOM toggles the flashing HOM indicator (disabled by default).
  • SHOWFPS or IDRATE toggle printing the FPS in the upper right corner.
  • NOMOMENTUM toggles a debug aid for pixel-perfect positioning on a map (not recommended to use in-game).
  • GOOBERS triggers an easter egg, i.e. an "homage to an old friend". ;-)
  • IDBEHOLD0 disables all currently active power-ups.
  • IDCLEV00 restarts the current level.
  • IDMUS00 restarts the current music (new in 5.1).
  • VERSION shows the engine version, build date and SDL version (new in 5.1).

CompatibilityEdit

  • Savegames saved by Crispy Doom are still compatible with Vanilla Doom, but are not identical anymore to the files that Vanilla Doom would have saved. This is caused by several reasons:
    • In order to distinguish the NRFTL levels from the regular Doom 2 levels, Crispy Doom uses the gameepisode variable, which is used in Doom 1 to distinguish between the game episodes but is hitherto unused in Doom 2 (e.g. Chocolate Doom ignores the gameepisode variable in Doom 2). Consequently, savegames that have been recorded playing NRFTL in Crispy Doom can be loaded in Chocolate Doom if the latter is invoked with "-file nerve.wad". On the other hand, savegames that are recorded in Chocolate Doom with the "-file nerve.wad" parameter cannot immediately be loaded in Crispy Doom without the "-file nerve.wad" parameter. In order to "convert" savegames to Crispy Doom, run it with the "-file nerve.wad" parameter, load the savegames and save them again. It should then be possible to load them without the "-file nerve.wad" parameter in Crispy Doom.
    • Crispy Doom preserves the mobj->target and mobj->tracers fields when saving a game by replacing their contents with specific indices. These indices are then converted back into the corresponding pointers in Crispy Doom when the game is loaded again. In Vanilla Doom, however, the contents of the mobj->target and mobj->tracers fields are disregarded and get overwritten with NULL when loading the game. Games saved in Vanilla Doom, on the other hand, still contain pointers in the mobj->target and mobj->tracers fields, but these will not match any of the indices expected by Crispy Doom and will thus get overwritten with NULL as in Vanilla Doom.
  • If you are going to share savegames between Crispy Doom and Chocolate Doom, make sure to load all PWADs with the -merge parameter in the latter.
  • The Crispy HUD is displayed when blocksize == 12, which isn't supported by Chocolate Doom. To retain config file compatibility, quit the game with any other view size.
  • The "flipped levels" and "SSG available in Doom 1" features introduced in Crispy Doom 1.3 are considered strictly experimental! They may produce savegames, demo files or netgames that are not compatible with Chocolate Doom, Vanilla Doom or previous versions of Crispy Doom at all. Furthermore, the SPECHITS cheat introduced in Crispy Doom 1.5 may leave a map in a completely inconsistent state and games saved after using it may even cause Vanilla to crash by exceeding static limits.

DownloadEdit

Binaries for Windows XP / Vista / 7 / 8.1 / 10 (both x86 and x64 editions) are available here:
http://www.greffrath.com/~fabian/crispy-doom_5.0.zip

A supplementary Music Pack that contains the fluidsynth library and a freely-available soundfont is available here:
http://www.greffrath.com/~fabian/crispy-doom-music-pack_5.0.zip

Crispy Doom can play nearly all variants of Doom. If you don't own any, you may download the Shareware version of Doom, extract it and copy the DOOM1.WAD file into your Crispy Doom directory. Alternatively, you may want to play Crispy Doom with Freedoom and a MegaWAD.

SourcesEdit

The Crispy Doom source code is available at GitHub: https://github.com/fabiangreffrath/crispy-doom. It can be downloaded in either ZIP or TAR.GZ format or cloned via

git clone https://github.com/fabiangreffrath/crispy-doom.git

Compilation on Debian/Ubuntu systems should be as simple as

sudo apt-get install build-essential automake
sudo apt-get build-dep chocolate-doom

to install the prerequisites and then

cd crispy-doom
autoreconf -vif
./configure
make

After successful compilation the resulting binaries can be found in the src/ directory.

History of changesEdit

Changes of Crispy Doom 5.1 from Crispy Doom 5.0Edit

Crispy Doom 5.1 has been released on November XX, 2017.

Crispy Doom 5.1 is going to have the new Music Pack adapted to SDL2 version and be supplemented by some new features and improvements, most of them requested by JNechaevsky.

Features

  • Demo desyncing cheats are now disallowed during demo recording or playback per Zodomaniac's request.
  • The option for bobbing with half amplitude during firing has been added.
  • Combined card and skull keys are now supported (if provided by PWAD).
  • VERSION cheat code showing engine version, build date and SDL version has been introduced.

Improvements

  • Demo version mismatch has been made non-fatal for in-game demos, the demo just doesn't play if its version differs from the IWAD version. On deliberate launch of a wrong version demo the game still exits with a 'Demo is from a different game version!' error window.
  • 'A secret is revealed!' message isn't shown when the menu is active.
  • Current music now restarts if IDMUS00 is entered.
  • If D_INTRO is from a PWAD, and D_INTROA is from a different WAD file, the former is played, as galileo31dos01 pointed out.
  • INTERCEPTS limit has been removed.
  • Line breaks in HUD messages are now supported.
  • Inverted palette effect is removed when the player dies (e.g. when telefragged having Invulnerability power-up).
  • Yellow bonus palette is reset and never shown for the dead player.

Bug Fixes

  • Missing line at bottom when drawing fuzzed sprites has been fixed.
  • VSYNC is disabled if software rendering is enforced.

Crispy Doom 5.1 has merged all changes to the Chocolate Doom sdl2-branch up to commit 413f4ecd

Changes of Crispy Doom 5.0 from Crispy Doom 4.3Edit

Crispy Doom 5.0 has been released on November 04, 2017.

This is the first release based on SDL2, merging Chocolate Doom's SDL2-branch which has yet to see its own release.

Besides this major transition, it features the following changes and fixes:

  • The NUMCMAPS variable is now initialized to 32 to fix the missing "Finished" and "Now Entering" lines on the intermission screens for Doom 1 (bug introduced in Crispy 4.2).
  • Joystick look up/down (which has been introduced for the three non-Doom games in Choco's SDL2-branch) has been adapted to Doom.
  • Smooth scaling of the framebuffer content to the game window (which is the only choice in Choco's SDL2-branch) has been made optional with plain nearest interpolation as the other alternative.
  • The 60FPS and 70FPS rendering modes have been removed in favor of proper VSYNC.
  • DOS references in the game quit confirmation dialogs have been replaced with the name of the actual operating system.
  • A new -monosfx command line parameter has been introduced to play all sound effects in mono. Inspired by other Choco derivatives like Russian Doom and Riscos Doom.
  • Resolutions above 1920x1200 are now properly supported.

Crispy Doom 5.0 has merged all changes to the Chocolate Doom sdl2-branch up to commit 413f4ecd

Changes of Crispy Doom 4.3 from Crispy Doom 4.2Edit

Crispy Doom 4.3 has been released on September 19, 2017.

This quick fix release introduces improvements requested by ZeroMaster010 and is supposed to be the last release based on SDL1.

Improvements

  • The sector->soundtarget element is now saved in extended savegames.
  • The -shorttics command line option has been added to force low-resolution turning even when not recording a demo which is useful for demo run practice.
  • Smoother fake contrasts are disabled again as they disturb pixel perfect alignment for speedrunners.

Changes of Crispy Doom 4.2 from Crispy Doom 4.1Edit

Crispy Doom 4.2 has been released on September 15, 2017.

The changes since 4.1 are mostly polish of previously introduced features.

Improvements

  • DOS references have been removed from the game quit confirmation dialogs on Zodomaniac's request inspired by Doom Retro, now they say:
    Press Y to quit.
    I wouldn't leave if i were you. Your desktop is much worse.
    You're trying to say you like your desktop better than me, right? and
    Don't go now, there's a dimensional shambler waiting at the command prompt!
    Note: When switching to SDL2, the desktop references will be replaced by the platform name detected by SDL2 ;)
  • "Screen shot" message doesn't get burned into the screenshots anymore when they are taken one after another on Zodomaniac's report.
  • Map coordinates enabled by the IDMYPOS cheat are now persistent, i.e. they don't automatically disappear anymore after a few seconds.
  • The (sprframe->rotate == -1) case is handled since it has been made non-fatal.
  • Interpolation of player missiles for the first tic is suppressed.
  • Different spellings of similar cheats in other engines are now supported:
    Kill all monsters and disable all cube spitters: TNTEM (PrBoom+), KILLEM (MBF), FHHALL (Doom95)
    Toggle monsters being deaf and blind until attacked: NOTARGET (PrBoom+), FHSHH (Doom95)
    Display framerate: SHOWFPS, IDRATE (PrBoom+)
  • Higher scaling video modes up to 3200x2400/3200x2000 are supported on Calinou's request.
  • Crashes with maps with unusual map numbers are prevented.
  • Music number under- and overflows for both Doom 1 and 2 are prevented.
  • Negative ammo values are not allowed anymore thanks to the report by Zodomaniac and AnotherLife.
  • Evil grin is now triggered when IDFA/IDKFA is used which is 1) rather reasonable by itself as ID(K)FA gives weapons and items and 2) prevents the grin triggering when the next random item is picked up that AnotherLife noticed.
  • The first extra state is explicitly set to 1089 and the first extra mapthing to 150 to remain in sync with Doom Retro.
  • Weapon sprite is removed from clean screenshots only in maximized screen (no HUD) mode now, it was awkward before when the status bar was rendered but the weapon wasn't.
  • Calling pspr action pointers from mobj states and vice versa won't crash the game anymore after Zodomaniac's and JNechaevsky's investigation.
  • Menu messages are always printed with shadows regardless of which menu is the current one. Thanks to JNechaevsly for spotting this.

Crispy Doom 4.3 and 4.2 have merged all changes to the Chocolate Doom master branch up to commit 83a71dd8.

Previous changes

VersioningEdit

Crispy Doom maintains a major and a minor version number. The major version number is increased whenever a new official version of Chocolate Doom is released and the changes merged into Crispy Doom. The minor version number is increased whenever changes have been applied that are not part of an official Chocolate Doom release or do only affect Crispy Doom.

ContactEdit

The canonical homepage for Crispy Doom is https://fabiangreffrath.github.io/crispy-doom.
Crispy Doom is maintained by Fabian Greffrath.

Please report any bugs, glitches or crashes that you encounter to the GitHub Issue Tracker.

AcknowledgementEdit

Although I have played the thought of hacking on Chocolate Doom's renderer for quite some time already, it was Brad Harding's Doom Retro that provided the incentive to finally do it. However, his fork aims at a different direction and I did not take a single line of code from it. Lee Killough's MBF was studied and used to debug the code, especially in the form of Team Eternity's WinMBF source port, which made it easier to compile and run on my machine. And of course there is fraggle's Chocolate Doom with its exceptionally clean and legible source code. Please let me take this opportunity to appreciate all these authors for their work!

Also, thanks plums of the Doomworld forums for beta testing, Zodomaniac and JNechaevsky for the continuous flow of support and inspiration during the 3.x/4.x development phase and (last but not the least) Cacodemon9000 for his Infested Outpost map that helped to track down quite a few bugs!

LegaleseEdit

Doom is © 1993-1996 Id Software, Inc.;
Boom 2.02 is © 1999 id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman;
PrBoom+ is © 1999 id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman, © 1999-2000 Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze, © 2005-2006 Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko;
Chocolate Doom is © 1993-1996 Id Software, Inc., © 2005 Simon Howard; Chocolate Hexen is © 1993-1996 Id Software, Inc., © 1993-2008 Raven Software, © 2008 Simon Howard;
Strawberry Doom is © 1993-1996 Id Software, Inc., © 2005 Simon Howard, © 2008-2010 GhostlyDeath;
Crispy Doom is additionally © 2014-2017 Fabian Greffrath; all of the above are released under the GPL-2+.

SDL 2.0, SDL_mixer 2.0 and SDL_net 2.0 are © 1997-2016 Sam Lantinga and are released under the zlib license.

Secret Rabbit Code (libsamplerate) is © 2002-2011 Erik de Castro Lopo and is released under the GPL-2+.
Libpng is © 1998-2014 Glenn Randers-Pehrson, © 1996-1997 Andreas Dilger, © 1995-1996 Guy Eric Schalnat, Group 42, Inc. and is released under the libpng license.
Zlib is © 1995-2013 Jean-loup Gailly and Mark Adler and is released under the zlib license.

The Crispy Doom icon (as shown at the top right of this page) is composed of the Chocolate Doom icon and a photo of potato crisps (Utz-brand, grandma's kettle-cooked style) by Evan-Amos who kindly released it into the public domain. The current high-resolution version of this icon has been contributed by JNechaevsky (formerly by Zodomaniac).