Bundle (original)

The Bundle container is the core file format used in development builds of Burnout 5/Paradise, Black (Xbox 360), and Black 2 (Xbox 360). It is not used in any retail titles. Each Bundle holds one or more resources (assets) and contains information about each resource, such as its size, type, compression, alignment, and so on.

The Bundle format underwent at least five iterations during its use from early 2006 to early-mid 2007. At present, only files using Bundle version 3, 4, and 5 have been discovered. It was succeeded by the Bundle 2 container.

= Overview = Bundles are used for nearly every asset in Burnout Paradise. This makes it one of the most important formats to understand when attempting to parse assets.

While the header contains some valuable data, such as the flags and chunk offsets, the majority of relevant information is in resource entries, which store the size, alignment, offset, and type of each resource in each chunk. These also store the import offsets, which enable importing specific data from other resources.

Bundle debug data is also important to understand. Sometimes called Bundle imports, it consists of XML data headed by the  element and contains the ID, name, and type name of every resource in a respective bundle. This means that where debug data is present, every resource name is known. Despite this, the resource names given by the debug data sometimes do not match the hash when encoded. In some cases, such as with Registry resources, this means the name is hardcoded.

= Memory types = Across all Bundle versions, a common theme is the use of separate data chunks to define what memory type resources are loaded into. These chunks on Xbox 360 are as follows:


 * 1) Main Memory
 * 2) Disposable
 * 3) Physical
 * 4) Uninitialized
 * 5) Disposable uninitialized

Keep these in mind when viewing the structures.

= Structures = The original Bundle format's versions were treated more like additions to the previous version. Thus, rather than a full structure for each, only their additions are described here.

Imports
This is not a structure as such; rather, it is  followed by four bytes of padding, then a set of import entries of an amount defined by the aforementioned count.

Size and alignment
This structure contains fields for size and alignment, though alignment sometimes goes unused. Real name is not known.

Bundle (Additions)
= Enumerations =

ResourceType
See Resource Types.