Duke Nukem II

From ModdingWiki
Jump to navigation Jump to search
Duke Nukem II
Duke Nukem II.png
There is no image of a modified version of this game — upload one!
Levels?Tick.png Editable
Tiles?Tick.png Editable
Sprites?Tick.png Editable
Fullscreen?Tick.png Editable
Sound?Tick.png Editable
Music?Tick.png Editable
Text?Emblem-important.png Partially editable
Story/cutscenes?Tick.png Editable
UI/menus?Tick.png Editable
Demos?X mark.svg Not editable

Duke Nukem II is a 256-colour VGA game based on the Cosmo's Cosmic Adventures engine. Although the cutscenes are 256-colour, the game itself is only 16-colour and runs in an EGA video mode. It does however change the VGA palette such that the 16 colours in use are very different to those normally used by EGA games, successfully tricking most people into believing the game itself is 256 colour.

Reverse engineered source code is available, see below.


The following tools are able to work with this game.

Name PlatformGroup/archives Levels Graphics Music Sounds Text Saves .exe patch Notes
Camoto Linux/WindowsEditEditNoEditNoNoNoNo
Camoto/gamearchive.js AnyEditNoNoNoNoNoNoNo
Duke2Edit Windows GUIReadEditEditEditEditNoEditNo
Textract DOSReadNoNoNoNoNoNoNo
Wombat Windows GUIReadReadReadReadReadNoNoNo

File formats

The following file formats are used by this game.

Filename Format Details
*.bin B800 Text Text screens shown at exit
*.cmp CMP Format Archive file storing most of the game data
actrinfo.mni Duke Nukem II Actor Info Describes how the tiles in actors.mni should be arranged to create sprites.
Cosmo Tileset Format Sprites & background images stored as tilesets. The 16-color VGA palette found in the game's executable at offset 0x1B068 should be used when displaying these images. The palette in gamepal.pal can be used as an approximation, but is not 100% like the one used in-game. Also note that some of the images are used in story cutscenes or menus, and need different palettes to look correct.
AudioT Format PC Speaker & AdLib sounds. Warning: The game uses fixed-size buffers to read these files, so modded files must not exceed the original file sizes.
czone?.mni Duke Nukem II CZone Format Level-specific tilesets
[lmno]?.mni Duke Nukem II Map Format Game levels (LMNO for episode 1, 2, 3 and 4 respectively)
*.imf IMF Format Background music
VOC Format Digitised sound effects
*.pal Duke Nukem II Palette Formats Palettes
*.mni (32048 bytes) Duke Nukem II Full-screen Images 4bpp 320×200 images with 16-colour VGA palette
lcr.mni Duke Nukem II Full-screen Images 8bpp 320×200 images with 256-colour VGA palette
Duke Nukem II Demo Format Demo macros
nukem2.f? Duke Nukem II Animation Format Intro animations in FLIC format
nukem2.-?? Duke Nukem II Misc Files Files that are generated by the game

Many of these files are stored inside nukem2.cmp.

See also

  • Rigel Engine - an open source reimplementation of the game using the original data files
  • Duke2Reconstructed - reverse engineered source code which compiles into a 100%-identical EXE file