Form Descriptor (Tropical Freeze): Difference between revisions

From Retro Modding Wiki
Jump to navigation Jump to search
>Aruki
>Aruki
No edit summary
Line 6: Line 6:


== Format ==
== Format ==
The descriptor is always 0x20 bytes large.


{| class="wikitable"
{| class="wikitable"
! Offset
! Offset
! Size
! Type
! Name
! Name
! Notes
! Notes
|-
|-
| 0x0
| 0x0
| 4
| {{FourCC}}
| '''Magic'''
| '''Magic'''
| Always <code>RFRM</code>
| Always <code>RFRM</code>
|-
|-
| 0x4
| 0x4
| 8
| u64
| '''Form Size'''
| '''Form Size'''
|  
| The size does not include the form descriptor itself.
|-
|-
| 0xC
| 0xC
| 8
| u64
| {{unknown|'''Unknown'''}}
| {{unknown}}
| Always 0?
| Always 0?
|-
|-
| 0x14
| 0x14
| 4
| {{FourCC}}
| '''Data Type FourCC'''
| '''Form ID'''
|  
| Identifier for the data contained in the form. For forms that appear at the beginning of a file, this usually matches the file extension.
|-
|-
| 0x18
| 0x18
| 4
| u32
| '''Data Version'''
| '''Form Version'''
|  
| Version number for the form data. For forms that appear at the beginning of a file, this will match the file's asset header (if it has one).
|-
|-
| 0x1C
| 0x1C
| 4
| 4
| {{unknown|'''Also Data Version?'''}}
| {{unknown|Also Data Version?}}
| Always matches the previous value, not sure why it's here twice.
| Always matches the previous value, not sure why it's here twice.
|-
|-
| 0x20
| 0x20
| colspan=3 {{unknown|End of descriptor}}
| colspan=3 {{unknown|End of Form Descriptor}}
|}
|}


[[Category:File Formats]]
[[Category:File Formats]]
[[Category:Donkey Kong Country: Tropical Freeze]]
[[Category:Donkey Kong Country: Tropical Freeze]]

Revision as of 14:00, 14 November 2016

The form descriptor is a common header located in most Donkey Kong Country: Tropical Freeze formats, and serves as a container for most data in the game.


This file format needs more research
Some unknown values.


Format

Offset Type Name Notes
0x0 FourCC Magic Always RFRM
0x4 u64 Form Size The size does not include the form descriptor itself.
0xC u64 Unknown Always 0?
0x14 FourCC Form ID Identifier for the data contained in the form. For forms that appear at the beginning of a file, this usually matches the file extension.
0x18 u32 Form Version Version number for the form data. For forms that appear at the beginning of a file, this will match the file's asset header (if it has one).
0x1C 4 Also Data Version? Always matches the previous value, not sure why it's here twice.
0x20 End of Form Descriptor