FF9/File/Data

From Final Fantasy Inside
< FF9
Revision as of 21:38, 7 November 2008 by my_wiki>Zidane

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 bytes
Pointers count 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.