DMP Format

From ModdingWiki
Jump to navigation Jump to search
DMP Format
DMP Format.png
Format typeImage
HardwareVGA
Colour depth8-bit (VGA)
Minimum size (pixels)0×0
Maximum size (pixels)320×200
PaletteInternal or Shared
Plane count1
Transparent pixels?Palette-based
Hitmap pixels?No
Games

DMP is an image format used in the Interactive Girls Club series of adult games. They are uncompressed 8-bit images with an optional embedded palette.

In most cases, the format is used to store small sprites, but there is a format that combines four 320×200 images to a larger 640×400 one. One file, l2.dmp in the files of the Jo Guest In The Milk Round game, is used as panning image in the minigame Jo Guest Shaves, to complete the GX2 image at index #160 in the game's SHOWPART.SLB archive.

File format

The format has a header followed by simple uncompressed 8-bit image data. Unlike GX2 Format images, the embedded colour palette is 6-bit VGA, and not 8-bit.

Header

The file starts with the following header:

Offset Data type Name Description
0x00 BYTE Magic1 Magic number 0x01
0x01 BYTE PaletteIndicator 1 if the file has an embedded colour palette, otherwise 0.
0x02 UINT16LE Width Image width.
0x04 UINT16LE Height Image height.
0x06 UINT32LE Padding Padding (empty).
0x0A BYTE[0x300] Palette Color palette, in 6-bit RGB VGA format. Only present if PaletteIndicator is set to 1.

The image data follows this header, at index 0x0A if no palette is present, or 0x30A if there is a palette.

Combined Images

Even though the file format can technically save images up to 65535×65535, in reality it appears to be limited to 320×200. There are three 640×400 images used in the game Adult Film Camera Man, but they are built up from a set of four 320×200 .DMP files with suffixes "-tl", "-tr", "-bl" and "-br", indicating respectively "top left", "top right", "bottom left" and "bottom right". The "-tl" file in the set contains the colour palette for all four files; the other files contain no embedded palette.

Tools

The following tools are able to work with files in this format.

Name PlatformView images in this format? Convert/export to another file/format? Import from another file/format? Access hidden data? Edit metadata? Notes
Engie File Converter WindowsYesYesYesN/AN/A Can load and combine the sets of four, but to convert it back, it requires the user to split the 640×400 image into 320×200 frames and save these as separate files manually.