Changes

Jump to navigation Jump to search

FF8/FileFormat PAK

1,462 bytes added, 20:38, 31 December 2020
CAM files: adding the bit about 3 unknown bytes in cam header.
|-
| 0 || 3 bytes || 0x463850 "F8P"
|-
| 3 || 3 bytes || Unknown
|-
| 6 || 2 bytes (uint16) || Approx number of frames. There can be extra data.
|-
| 20
| 2 4 bytes
| Camera Space X position
|-
| 22
| 2 bytes
| Unknown (usually 0 or -1)
|-
| 24
| 2 4 bytes
| Camera Space Y position
|-
| 2628| 4 bytes| Camera Space Z position|-| 32
| 2 bytes
| Unknown (usually 0 or -1)Camera Pan X
|-
| 2834
| 2 bytes
| Camera Space Z position|-| 30| 6 bytes| UnknownPan Y
|-
| 36
| 40
| 1 byte
| UnknownRender Mode ('08','10','11' or '50')
|-
| 41
|}
The last unknown byte 4 Render mode seems to be these :   -8 ('08') = render characters over FMV and masks meshes over characters (hiding/masking them)  -16('10') = render characters over FMV (not masked)  -17('11') = don't render characters over FMV  -80('50) = End Transition? (not sure what's this exactly but for some reasons in blank animation data often changes sure the character are not rendered with this on)  the 80 mode (when used) is active for the last 4 framesframe only and seems like it's not used when the fmv transition to the field at the end (eg.attack on Dollet landing or Galbadia Garden intro)
The camera data is really similar to the Field one contained in the .CA files.
 
Thanks to TrueOdin that bringed them to my attention it looks like beta PC version for FF7 had some cam files too but they were slightly different:
 
-each frame sector is 40byte size with no 'END' marker
 
-there is no header so if you want to know the frame count you have to divide the filesize by 40
 
-Zoom is not repeated
 
 
The structure for FF7 .cam sector is something like this :
 
{| class="wikitable"
! Offset
! Size
! Description
|-
| 0
| 6 bytes
| Camera Vector X axis
|-
| 6
| 6 bytes
| Camera Vector Y axis
|-
| 12
| 6 bytes
| Camera Vector Z axis
|-
| 18
| 2 bytes
| Camera Vector Z.z (copy)
|-
| 20
| 4 bytes
| Camera Space X position
|-
| 24
| 4 bytes
| Camera Space Y position
|-
| 28
| 4 bytes
| Camera Space Z position
|-
| 32
| 2 bytes
| Camera Pan X
|-
| 34
| 2 bytes
| Camera Pan Y
|-
| 36
| 2 bytes
| Zoom
|-
| 38
| 2 bytes
| Unknown (Xx Repeated? not sure, need check)
|}
 
If someone is willing to create a ff7 wiki page for this feel free to move this last part there.
== Pak File Details ==
27
edits

Navigation menu