-
Notifications
You must be signed in to change notification settings - Fork 0
Format: BLK editor blocks
Robert Jordan edited this page Oct 8, 2021
·
6 revisions
An older format for level editor block icons, that was replaced in favor of BLX files.
Byte Order: Little Endian
Off/Len | Type | Value | Description |
---|---|---|---|
0,4 |
char[4] |
"INDX" | File signature |
4,4 |
uint32 |
Unknown |
PREDUG.BLK: 12 , TERRAIN.BLK: 32 , HEIGHT.BLK: 68
|
8,4 |
uint32 |
Count | Number of icons PREDUG.BLK: 02 , TERRAIN.BLK: 07 , HEIGHT.BLK: 16
|
c,4N |
uint32[N] |
Offsets | Icon offsets, relative to end of this table (first should be 0 ) |
10,*N |
Icon[N] | Icons | Region of icons data. Refer to offsets, over reading without seeking |
Off/Len | Type | Value | Description |
---|---|---|---|
0,4 |
uint32 |
Size | Size of structure (everything after this field) |
4,4 |
uint32 |
Unknown1 | 0 |
8,4 |
uint32 |
Unknown2 | 8 |
c,4 |
uint32 |
Unknown3 | 0 |
10,4 |
char[4] |
Format |
"64K " Designated output format after reading the icon?
|
14,4 |
char[4] |
Compression |
"RAW " Method for reading the icon data?
|
18,4 |
uint32 |
PackSize | Storage size of icon data payload (everything after this field) |
1c,4 |
char[4] |
PackFormat |
"64K " Storage format of icon data being read?(same as Format since Compression == "RAW "?) |
20,4 |
uint32 |
Width | Icon pixel width |
24,4 |
uint32 |
Height | Icon pixel height |
28,2N |
uint16[w*h] |
Pixels | Pixels stored in true 16-bit colour, lines are not vertically flipped. |
channel: RRRR RGGG GGGB BBBB
bit: 31 0