Anonymous

Changes

From Final Fantasy Inside

FF8/Menu sp2

1,261 bytes added, 01:15, 15 July 2019
no edit summary
by MaKi<br/>
updated by Sebanisu
== Layout of '''icon.sp1''': ==
=== Header ===
'''(4 x (PointerCount + 1))''' bytes
{| class="wikitable"
! Offset
| Seek locations for entry groups
|}
 
=== Pointer ===
'''4''' bytes
{| class="wikitable"
! Offset
| Number of entries in group
|}
 
=== Entry Group ===
'''(8 x Count)''' bytes <br/>At pointer's location there will be '''Struct Entry[Count]'''. Example of an entry group is the direction pad is in eight pieces. Four of them are unpressed and four are pressed versions. It has about five four entries for the direction pad depending on the directions it is highlighting.
=== Entry ===
'''8 ''' bytes
{| class="wikitable"
! Offset
Everything at and beyond file pointer '''4272 {0x10C0}''' appears to be garbage.
== Layout of '''face.sp2''' and '''cardanm.sp2''': == Both '''face.sp2''' and '''cardanm.sp2''' have the same layout. Main difference is '''face.sp2''' has '''32''' valid and '''64''' total entries. '''cardanm.sp2''' only has '''11''' valid entries and '''1''' invalid, as it has no dims. In each of the card texture files the final slot is the '''Triple Triad''' card back. If the entry had dims they would be X='''192''',Y='''128''', W='''64''', H='''64'''.
=== Header ===
| Number of entries
Count can be more than the actual images in the texture.<br/>
'''face.sp2''': There are 16 8 images per texture in each of the 2 textures, and there are 32/64 valid entries. 1 is blank.<br/>'''cardanm.sp2''': There are 11 images pre texture in 10 textures, and there are 11/12 valid entries. The 12th entry is the card back but it's missing dims.
|-
|}
=== Entry ===
'''16 ''' bytes
{| class="wikitable"
| yPos
| Pixel Y coordinate in image atlas
'''face.sp2''': Invalid entries seem to have '''yPos>=Texture.Height'''.<br />
Detected switch from '''face1.tex''' to '''face2.tex''' when '''yPos<previous.yPos'''.
|-
| UNK
| Unknown
'''face.sp2''': '''{0x20,0x36}''' on the valid entries. '''{0x60,0x36}''' on invalid entries.<br />'''cardanm.sp2''': '''{0x20,0xB6}''' on the valid entries. '''{0x00,0x00}''' on the invalid entry.
|-
| 8
| Width
| Width of entry in pixels
Possible this is really a '''byte''' with a '''0 x -offset'''.
|-
| 10
| Height
| Height of entry in pixels
Possible this is really a '''byte''' with a '''0 y -offset'''.
|-
| 12
| UNK
| Unknown
'''face.sp2''': '''{0x00,0x00,0x8E,0x00}''' on most. Last one has all '''{0x00}'''<br />'''cardanm.sp2''': '''{0x00,0x00,0xAE,0x00}''' on most. Last one has all '''{0x00}'''
|}
=== End of file ===
'''face.sp2'''File ends with '''byte[16] ''' of '''{0x00}'''
=== Content of '''face1.tex''' and '''face2.tex''' ===
|}
There is one blank space in '''face1.tex''', I skipped that entry.
=== Content of '''mc00.tex'''-'''mc09.tex''' ===
Each level on the [https://finalfantasy.fandom.com/wiki/Final_Fantasy_VIII_Triple_Triad_cards fandom wiki page]is in the same order of the contents of the tex files. The cardback is always the bottom right of each texture.