Difference between revisions of "FF7/Field/FIELD.TDB"
Jump to navigation
Jump to search
my_wiki>Cyberman |
m (4 revisions imported) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | ==Format for Field.TDB== | + | == Format for Field.TDB == |
− | Field.TDB is an [[FF7/ | + | |
+ | [[User:Cyberman|Cyberman]] 21:45, 10 Jan 2007 (CST) Field.TDB is an [[FF7/LZS_format|LZS compressed]] file the first DWORD of which is it's compressed size. | ||
After decompression the file contains the following header | After decompression the file contains the following header | ||
− | {| border="1" cellspacing="1" cellpadding="3 | + | {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" |
− | |+ FILED.TDB header | + | |+ FILED.TDB header |
|- | |- | ||
− | ! | + | ! Size |
− | ! | + | ! Type |
− | ! | + | ! Description |
|- | |- | ||
− | | 4 | + | | 4 |
| uint32 | | uint32 | ||
| Total Data Size | | Total Data Size | ||
Line 41: | Line 42: | ||
} TDB_TextureHeader; | } TDB_TextureHeader; | ||
− | Images follow they are 32x32x 4 bits (or 512 bytes each) | + | Images follow they are 32x32x 4 bits (or 512 bytes each) Palettes are next, which are B5G5R5 format, uint16 format. 16 colors per palette. Therefore each palette is 32bytes in length. |
− | Palettes are next, which are B5G5R5 format, uint16 format. 16 colors per palette. Therefore each palette is 32bytes in length. | ||
Palettes are not selected from this file but from the BSX files for models. | Palettes are not selected from this file but from the BSX files for models. |
Latest revision as of 05:14, 23 May 2019
Format for Field.TDB
Cyberman 21:45, 10 Jan 2007 (CST) Field.TDB is an LZS compressed file the first DWORD of which is it's compressed size.
After decompression the file contains the following header
Size | Type | Description |
---|---|---|
4 | uint32 | Total Data Size |
2 | uint16 | Image Count |
2 | uint16 | Palette Count |
4 | uint32 | Image Offset |
4 | uint32 | Palette Offset |
typedef struct { uint32 FileSize; uint16 ImageCount; uint16 PaletteCount; uint32 ImageOffset; uint32 PaletteOffset; } TDB_TextureHeader;
Images follow they are 32x32x 4 bits (or 512 bytes each) Palettes are next, which are B5G5R5 format, uint16 format. 16 colors per palette. Therefore each palette is 32bytes in length.
Palettes are not selected from this file but from the BSX files for models.