M
meesbaker
Guest
Hi everyone, I know that the file structure of field.tdb is explained on the wiki but I do not understand which faces belong to which palette.
In the model section of the .dat file of some field every model gets a face ID, 00 being Cloud's face. Now this id fully defines a face that is contained in field.tdb. A face consists of tim data for the shapes of the eyes and a color palette. Now every tim inside field.tdb is 512 bytes in size while the palettes at the end of the file are 32 bytes each.
Now if I want to extract Cloud's face I look at his ID=00. Means I copy the first face from 0x10-0x210 and the first palette at the end of the file. Comparing this to the face data found in wm0.bsz, Cloud's world model, i see that this data is correct.
It does not work for any other character though. The faces of tifa and cid are very deep in the file.The palette count always matches the face id but i do not understand how to calculate the location of the correct tim data. Cids id is 05 so he is the sixth face so it should be at 0xa10-0xc10 but it is somewhere around 0x5000 , completely different. Sephs face id is 0x15 so he is the 22nd face, in fact it is the 102nd face in field.tdb.
I dont get it. The palette is always correct but not the tim data. I must've known it because I have a field.tdb with seph and cloud's faces correctly swapped but I do not understand it anymore.
In the model section of the .dat file of some field every model gets a face ID, 00 being Cloud's face. Now this id fully defines a face that is contained in field.tdb. A face consists of tim data for the shapes of the eyes and a color palette. Now every tim inside field.tdb is 512 bytes in size while the palettes at the end of the file are 32 bytes each.
Now if I want to extract Cloud's face I look at his ID=00. Means I copy the first face from 0x10-0x210 and the first palette at the end of the file. Comparing this to the face data found in wm0.bsz, Cloud's world model, i see that this data is correct.
It does not work for any other character though. The faces of tifa and cid are very deep in the file.The palette count always matches the face id but i do not understand how to calculate the location of the correct tim data. Cids id is 05 so he is the sixth face so it should be at 0xa10-0xc10 but it is somewhere around 0x5000 , completely different. Sephs face id is 0x15 so he is the 22nd face, in fact it is the 102nd face in field.tdb.
I dont get it. The palette is always correct but not the tim data. I must've known it because I have a field.tdb with seph and cloud's faces correctly swapped but I do not understand it anymore.