BCSAR: Difference between revisions

MarcusD (talk | contribs)
MarcusD (talk | contribs)
Line 201: Line 201:
|  0xC
|  0xC
|  0x4
|  0x4
|  String lookup table index
|  String lookup table index (-1 if unused)
|-
|-
|  0x10
|  0x10
|  0x3
|  0x3
|  3-byte Resource ID, Little Endian
|  3-byte Resource ID, Little Endian (-1 if unused)
|-
|-
|  0x13
|  0x13
|  0x1
|  0x1
|  Resource type (01=sound, 02=sound list, 03=sound bank, 04=sound player name?, 05=?, 06=sound group)
|  Resource type (01=sound, 02=sound list, 03=sound bank, 04=sound player name?, 06=sound group, FF=unused)
|-
|-
|}
|}
Line 218: Line 218:


For now I only know some information in the header for this partition, but I'm working on figuring the rest out.
For now I only know some information in the header for this partition, but I'm working on figuring the rest out.
==== Header ====


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 296: Line 298:
|  0x4
|  0x4
|  This + 8 points to unknown
|  This + 8 points to unknown
|-
|}
==== Blocks ====
Every offset in the header points to data similar to this:
* 4byte length
* length array of the below struct
** u32 type
** u32 offset relative to the address of the length field (beginning of the block)
The data the offset points to is dependent on the type of the above struct:
===== 0x2200 =====
{| class="wikitable" border="1"
|-
!  OFFSET
!  SIZE
!  DESCRIPTION
|-
|  0x0
|  0x4
|  Unknown
|-
|  0x4
|  0x4
|  Sound player ID
|-
|  0x8
|  0x4
|  Unknown
|-
|  0xC
|  0x4
|  Type of the extended info
|-
|  0x10
|  0x4
|  Offset to extended info *relative to the beginning of this struct*
|-
|  0x14
|  ???
|  Unknown...
|-
|}
===== 0x2204 =====
{| class="wikitable" border="1"
|-
!  OFFSET
!  SIZE
!  DESCRIPTION
|-
|  0x0
|  0x4
|  Sound ID
|-
|  0x4
|  0x4
|  Another Sound ID
|-
|  0x8
|  0x4
|  Type of the extended info
|-
|  0xC
|  0x4
|  Offset to extended info *relative to the beginning of this struct*
|-
|  0x10
|  0x4
|  Type of the extended info
|-
|  0x14
|  0x4
|  Offset to extended info *relative to the beginning of this struct*
|-
|  0x18
|  0x4
|  Unknown
|-
|  0x1C
|  0x4
|  Unknown
|-
|}
===== 0x2206 =====
{| class="wikitable" border="1"
|-
!  OFFSET
!  SIZE
!  DESCRIPTION
|-
|  0x0
|  0x4
|  Unknown
|-
|  0x4
|  0x4
|  Type of the extended info
|-
|  0x8
|  0x4
|  Offset to extended info *relative to the beginning of this struct*
|-
|  0xC
|  0x4
|  Unknown
|-
|  0x10
|  0x4
|  Unknown
|-
|-
|}
|}