7DTD Map File

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Game data files |extensions={{ext|map}} }} Map files are binary files that contain image data for the player's map in the game [ht...")
 
m (added magic)
 
Line 11: Line 11:
  
 
<pre>
 
<pre>
char[4] header
+
char[4] header ("map" 0x00)
 
uint32 version
 
uint32 version
 
uint32 number_of_segments
 
uint32 number_of_segments

Latest revision as of 13:32, 12 April 2017

File Format
Name 7DTD Map File
Ontology
Extension(s) .map

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

[edit] 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 ("map" 0x00)
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

[edit] External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox