Assets.bin (File Format): Difference between revisions

From Wexos's Wiki
Jump to navigationJump to search
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
! Offset !! Type !! Description
! Offset !! Type !! Description
|-
|-
| 0x00 || UInt16 || '''Number of assets (N)'''. The value is 0x910 (2320).
| 0x00 || UInt16 || '''Number of assets (N)'''. The value is 0x901 (2305).
|-
|-
| 0x02 || Byte[2] || Padding.
| 0x02 || Byte[2] || Padding.
|-
|-
| 0x08 || colspan=2 {{unknown|End of header, start of Asset ID List}}
| 0x04 || colspan=2 {{unknown|End of header, start of Asset ID List}}
|}
|}


== Asset ID List ==
== Asset ID List ==
This is a list of all the asset IDs from the game. The purpose of indexing them is because that's how they're linked on [[LEV (File Format)|LEV]] files and other internal files.
This is a list of all the asset IDs from the game. The purpose of indexing them is because that's how they're linked in [[LEV (File Format)|LEV]] files and other internal files.


{|class=wikitable
{|class=wikitable
Line 41: Line 41:
| 0x00  || Int32 || '''Offset to asset data'''.
| 0x00  || Int32 || '''Offset to asset data'''.
|-
|-
| 0x02 || Int32 || '''Asset size'''.
| 0x04 || Int32 || '''Asset size'''.
|}
|}



Latest revision as of 18:37, 17 June 2026

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

assets.bin is a file from Diddy Kong Racing DS that contains all the game's models and textures.

File Format

The file byte order is always little endian.

Header

The file starts with a header that is 4 bytes long.

Offset Type Description
0x00 UInt16 Number of assets (N). The value is 0x901 (2305).
0x02 Byte[2] Padding.
0x04 End of header, start of Asset ID List

Asset ID List

This is a list of all the asset IDs from the game. The purpose of indexing them is because that's how they're linked in LEV files and other internal files.

Offset Type Description
0x00 UInt16[N] Asset IDs.
0x00 + 2 * N Byte[2] Padding.
0x02 + 2 * N End of this section, start of Entry List

Entry List

Followed by the Asset ID List, there's a list of offsets and sizes for each of the assets. All offsets are absolute.

Format of an asset.bin entry
Offset Type Description
0x00 Int32 Offset to asset data.
0x04 Int32 Asset size.

Asset Data

Each asset consists of a header with some information and the file data.

Format of an asset.bin entry
Offset Type Description
0x00 Byte Compression type:
  • 0 = No compression
  • 1 = Huffman
  • 2 = LZ77
  • 3 = Unknown
  • 4 = RunLength
0x01 Byte[3] Unknown flags. It is only known that they contain information about what type of data is stored.
0x04 Int32 Uncompressed size.
0x08 End of this section, start of file data

Tools

The following tools can handle assets.bin:

  • (none)