Skip to content

Map file

ProgSys edited this page Apr 17, 2020 · 44 revisions

This page is currently just has some unsorted thoughts.

Original findings: https://disgaea.rustedlogic.net/MPD_format

texdata

struct texdata textures[12]; 

There are two texture layers and one shadow map(?) layer.

[N, W, S, E, Top], [N, W, S, E, Top], [shadow mapA?, shadow mapB?]

Each tex cord:

typedef struct  { //8 bytes total
  unsigned char u, 
  unsigned char stretch; //?
  unsigned char v, 
  unsigned char width;
  unsigned char size_stretch; //?      
  unsigned char height;   
  unsigned char textureIndex; 
  unsigned char transform; //rotation(0b11) - mirrorX(0b100) - mirrorZ(0b1000) - decalMode(0b110000)   
} __attribute__((packed, aligned(1))) mpdfileTexdata;

Clone this wiki locally