7DTD Map File

Map files are binary files that contain image data for the player's map in the game 7 Days to Die.

Format
The map data stored is only what the player has explored so far. The file contains tile segments, each being 16x16 tiles. Each tile has color data attached to it.

char[4] header uint32 version uint32 number_of_segments

struct coordinates[number_of_segments] int16 x   int16 y

seek 524300

struct tile_segments[number_of_segments] struct rows[16] struct tiles[16] uint16 tile_color_data

Each tiles color on the map is represented by a 16 bit number where each color is 5 bits and the MSB is meaningless:

MSB         LSB 0001000101000101 | r || g || b | 32  80   40