User:Pkmnfrk/.T (new)
###.t holds the tilemap for a map. It it comprised of two sections: A header, and a body. The header is in the Standard Header format, where as the body is simply a flat array of tiles, size width * height (with each type consisting of 2 bytes). Each layer has such an array, so the final lump size will be 2 * width * height * layers + header.
Formal Specs[edit]
Header:
Data | Offset | Meaning |
---|---|---|
INT | 0 | Standard Header Magic Number (0x1234) |
INT | 2 | Header Size (0x8, but may vary in future versions.) |
INT | 4 | Map width |
INT | 6 | Map height |
Body:
Each tile's position can be defined using this formula: 2 * (layer * width * height + y * width + x), where x and y are the tile's co-ordinates, width and height are the size of the map, and layer is which layer the tile is on (0-2). Thus, the offsets listed below are relative to this formula.
Data | Offset | Meaning |
---|---|---|
BYTE | 0 | Tile ID |
BYTE | 1 | Flags (TBD) |
ARCHINYM.LMP
. ATTACK.BIN
. BINSIZE.BIN
. BROWSE.TXT
. DEFPAL#.BIN
. DEFPASS.BIN
. distrib.reld
. FIXBITS.BIN
. general.reld
. heroes.reld
. heroform.reld
. LOOKUP1.BIN
. MENUITEM.BIN
. MENUS.BIN
. PALETTES.BIN
. PLOTSCR.LST
. SFXDATA.BIN
. SLICELOOKUP.TXT
. slicetree_#_#.reld
. SONGDATA.BIN
. UICOLORS.BIN
Map Format :
E
. D
. L
. N
. P
. T
. Z
BAM
. DOR
. DOX
. DT0
. DT1
. DT6
. EFS
. FNT
. FOR
. GEN
. HSP
. HSZ
. ITM
. MAP
. MAS
. MN
. MXS
. PAL
. PT0 ... PT8
. RGFX
. SAY
. SHO
. SNG
. STF
. STT
. TAP
. TIL
. TMN
. VEH