PAK (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
→Format
>Aruki |
>Aruki (→Format) |
||
Line 15: | Line 15: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Offset | ! Offset | ||
! | ! Type | ||
! | ! Name | ||
! Notes | |||
|- | |- | ||
| 0x0 | | 0x0 | ||
| | | int16 | ||
| '''Version | | '''Version Number Major''' | ||
| Always 3 | |||
|- | |||
| 0x2 | |||
| int16 | |||
| '''Version Number Minor''' | |||
| Always 5 | |||
|- | |- | ||
| 0x4 | | 0x4 | ||
| | | int32 | ||
| '''Unused''' | | '''Unused''' | ||
| Always 0 | |||
|- | |- | ||
| 0x8 | | 0x8 | ||
| colspan= | | colspan=3 {{unknown|End of header}} | ||
|} | |} | ||
Line 38: | Line 46: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Offset | ! Offset | ||
! | ! Type | ||
! | ! Count | ||
! Name | |||
! Notes | |||
|- | |- | ||
| 0x0 | | 0x0 | ||
| | | {{FourCC}} | ||
| ''' | | 1 | ||
| '''Asset Type''' | |||
| Indicates the type of asset (texture, model, area, etc) and usually doubles as the asset's cooked file extension. | |||
|- | |- | ||
| 0x4 | | 0x4 | ||
| | | int32 | ||
| ''' | | 1 | ||
| '''Asset ID''' | |||
| Unique identifier for this asset. | |||
|- | |- | ||
| 0x8 | | 0x8 | ||
| | | int32 | ||
| '''Name | | 1 | ||
| '''Name Length''' | |||
| Length of the name string | |||
|- | |- | ||
| 0xC | | 0xC | ||
| | | char | ||
| '''Name''' | | ''Name Length'' | ||
| '''Name String''' | |||
| Name of the asset. This name usually corresponds to a hardcoded string that the game uses to look up the asset, so this generally can't be changed. | |||
|- | |- | ||
| colspan=5 {{unknown|End of entry}} | |||
| colspan= | |||
|} | |} | ||
Line 67: | Line 84: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Offset | ! Offset | ||
! | ! Type | ||
! | ! Name | ||
! Notes | |||
|- | |- | ||
| 0x0 | | 0x0 | ||
| | | int32 | ||
| '''Compression | | '''Compression Flag''' | ||
| Value will be either 0 or 1, with 1 denoting that the asset is compressed. | |||
|- | |- | ||
| 0x4 | | 0x4 | ||
| | | {{FourCC}} | ||
| ''' | | '''Asset Type''' | ||
| Indicates the type of asset (texture, model, area, etc) and usually doubles as the asset's cooked file extension. | |||
|- | |- | ||
| 0x8 | | 0x8 | ||
| | | int32 | ||
| ''' | | '''Asset ID''' | ||
| Unique identifier for this asset. This ID is used by other assets to reference this one. | |||
|- | |- | ||
| 0xC | | 0xC | ||
| | | int32 | ||
| '''Size''' | | '''Size''' | ||
| Size of the asset data in the pak. This is always 32-byte-aligned. The end of the asset is padded with 0xFF. | |||
|- | |- | ||
| 0x10 | | 0x10 | ||
| | | int32 | ||
| '''Offset''' | | '''Offset''' | ||
| Offset of the asset data within the pak. This is an absolute offset. | |||
|- | |- | ||
| 0x14 | | 0x14 | ||
| colspan= | | colspan=4 {{unknown|End of entry}} | ||
|} | |} | ||