Loop Model: Difference between revisions
Content added Content deleted
m (Burninrubber0 moved page LoopModel (Burnout Paradise) to Loop Model) |
m (Updated common data type links.) |
||
Line 42: | Line 42: | ||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x4 || [[ |
| 0x0 || 0x4 || [[Sound hash | Name]] || mWaveName || Name hash || |
||
|- |
|- |
||
| 0x4 || 0x4 || [[#BrnSound::Vehicles::Engines::Graph | Graph]]* || mpaGraphs || || |
| 0x4 || 0x4 || [[#BrnSound::Vehicles::Engines::Graph | Graph]]* || mpaGraphs || || |
||
Line 57: | Line 57: | ||
| 0x0 || 0x8 || [[#BrnSound::Vehicles::Engines::Graph | Graph]]* || mpaGraphs || || |
| 0x0 || 0x8 || [[#BrnSound::Vehicles::Engines::Graph | Graph]]* || mpaGraphs || || |
||
|- |
|- |
||
| 0x8 || 0x4 || [[ |
| 0x8 || 0x4 || [[Sound hash | Name]] || mWaveName || Name hash || |
||
|- |
|- |
||
| 0xC || 0x1 || uint8_t || mu8NumOfGraphs || || |
| 0xC || 0x1 || uint8_t || mu8NumOfGraphs || || |
Revision as of 23:22, 13 September 2022
Loop models match engine RPM to sounds via a graph.
Structures
Note: PC (Remastered) loop models are 64-bit, unlike with other resource types.
BrnSound::Vehicles::Engines::LoopModelData
32-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersion | Version number | 7 in all known versions |
0x4 | 0x4 | uint32_t | muSignature | Magic | YDNA |
0x8 | 0x4 | Partial* | mpaPartials | ||
0xC | 0x4 | uint32_t | muNumOfPartials | ||
0x10 | 0x4 | uint32_t | muSizeInBytes | Resource size |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersion | Version number | 7 in all known versions |
0x4 | 0x4 | uint32_t | muSignature | Magic | YDNA |
0x8 | 0x8 | Partial* | mpaPartials | ||
0x10 | 0x4 | uint32_t | muNumOfPartials | ||
0x14 | 0x4 | uint32_t | muSizeInBytes | Resource size |
BrnSound::Vehicles::Engines::Partial
Note: Field order changes between 32 and 64 bit, unlike with other resource types.
32-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | Name | mWaveName | Name hash | |
0x4 | 0x4 | Graph* | mpaGraphs | ||
0x8 | 0x1 | uint8_t | mu8NumOfGraphs | ||
0x9 | 0x3 | padding |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | Graph* | mpaGraphs | ||
0x8 | 0x4 | Name | mWaveName | Name hash | |
0xC | 0x1 | uint8_t | mu8NumOfGraphs | ||
0xD | 0x3 | padding |
BrnSound::Vehicles::Engines::Graph
32-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | Point* | mpaPoints | Points on graph | |
0x4 | 0x1 | uint8_t | mu8NumOfPoints | ||
0x5 | 0x1 | int8_t | mi8XAxis | ||
0x6 | 0x1 | int8_t | mi8YAxis | ||
0x7 | 0x1 | int8_t | mPad |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | Point* | mpaPoints | Points on graph | |
0x8 | 0x1 | uint8_t | mu8NumOfPoints | ||
0x9 | 0x1 | int8_t | mi8XAxis | ||
0xA | 0x1 | int8_t | mi8YAxis | ||
0xB | 0x1 | int8_t | mPad | ||
0xC | 0x4 | padding |
BrnSound::Vehicles::Engines::Point
Offset | Size | Type | Name | Description | More Information | Comments |
---|---|---|---|---|---|---|
0x0 | 0x4 | float32_t | mfXpos | X position on graph | ||
0x4 | 0x4 | float32_t | mfYpos | Y position on graph |