Duke Nukem II Misc Files

From ModdingWiki
Jump to: navigation, search
Duke Nukem II Misc Files
Format typeSaved game and Configuration
StoringSound, Scores, Keys, Game speed
Save locationsReturned to level start
Elements savedLevel, Difficulty, Score, Ammo, Health, Weapon, Hints displayed
Games

NUKEM2.-GT

Stores game settings (controls, sound options etc...)

 0 | UINT16LE | iUpKey
 2 | UINT16LE | iDownKey
 4 | UINT16LE | iLeftKey
 6 | UINT16LE | iRightKey
 8 | UINT16LE | iJumpKey
10 | UINT16LE | iFireKey
12 | UINT16LE | iUnknown0 (always 0x0001 ?)
14 | UINT16LE | iSound_SoundBlaster (0..1)
16 | UINT16LE | iSound_AdLib        (0..1)
18 | UINT16LE | iSound_PCSpeaker    (0..1)
20 | UINT16LE | iMusic              (0..1)
22 | UINT16LE | iUnknown1 (always 0x0000 ?)
24 | UINT16LE | iUnknown2 (always 0x0104 ?)
26 | UINT16LE | iUnknown3 (always 0x0039 ?)
28 | UINT16LE | iUnknown4 (always 0x0104 ?)
30 | UINT16LE | iUnknown5 (always 0x0038 ?)
32 | UINT16LE | iUnknown6 (always 0x0001 ?)
34 | UINT16LE | iGameSpeed (1..7)

NUKEM2.-NM

Stores names of the saved games. Contains 8 strings with a fixed length of 18 chars each (padded with nulls, but not null-terminated).

NUKEM2.-S?

Stores savegames (? ranges from 1 to 8, plus "b" and "t" for temporary saves).

 0 | UINT16LE | iWeapon  (0..3) - 0=N, 1=L, 2=R, 3=F
 2 | UINT16LE | iHealth  (always 9)
 4 | UINT16LE | iAmmo
 6 | UINT16LE | iDifficulty (1..3)
 8 | UINT16LE | iEpisode (0..3)
10 | UINT16LE | iLevel   (0..7)
12 | BYTE[34] | bHintsDisplayed (0..1)
46 | UINT32LE | iScore

NUKEM2.-V?

Stores High Scores for each episode (? ranges from 1 to 4).

Contains 10 entries of the following structure:

CHAR[15] | cName (NOT null-terminated!)
UINT32LE | iScore

Credits

This file format was reverse engineered by K1n9_Duk3. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)