Difference between revisions of "FF9/File/Data"
< FF9
Jump to navigation
Jump to search
my_wiki>Zidane |
my_wiki>Zidane |
||
Line 7: | Line 7: | ||
|- | |- | ||
|style="background:rgb(255,255,255)" | "DB" | |style="background:rgb(255,255,255)" | "DB" | ||
− | |style="background:rgb(255,255,255)" | 1 | + | |style="background:rgb(255,255,255)" | 1 byte |
|- | |- | ||
|style="background:rgb(255,255,255)" | Pointers count | |style="background:rgb(255,255,255)" | Pointers count | ||
+ | |style="background:rgb(255,255,255)" | 1 byte | ||
+ | |- | ||
+ | |style="background:rgb(255,255,255)" | 00 00 | ||
|style="background:rgb(255,255,255)" | 2 bytes | |style="background:rgb(255,255,255)" | 2 bytes | ||
|- | |- |
Revision as of 21:39, 7 November 2008
Almost all files in FF9 has structure, which starts from 2 bytes DB (hex numbers). This record points, that after we'll have pointer list, which points to different data sections in the file (data can be sounds, TIMs, models, etc).
DB Structure:
Data | Size |
---|---|
"DB" | 1 byte |
Pointers count | 1 byte |
00 00 | 2 bytes |
Pointer1, Pointer2,... | 4 bytes * Pointers count |
Pointer is a number, which represent how many bytes from current position there is target data. Current position in this case is first byte of this pointer.
Pointer structure:
Data | Size |
---|---|
Pointer | 3 bytes |
Data Type | 1 byte |
Data, where points this pointer begins with 2 bytes, first byte indicates, what data type we have, and second is count of objects of selected type.