AI Sections: Difference between revisions

Added infobox and normalized some content.
(I have 8 and 0x20 the other way round than what was originally here? Might need to check)
(Added infobox and normalized some content.)
 
(2 intermediate revisions by one other user not shown)
Line 1:
{{ParadiseResourceTypeInfobox
| name = AISections
| othernames = AIMapData
| resourcenames = WorldMapData
| id = 0x10001
| category = Game-specific<br />(Burnout Paradise)
| memdist = Main Memory only
}}
 
{{subpage|Development|text=Information on versions of the AI sections resource type used during development.}}
 
The AI sections resource encompasses the routes the AI takes along with details on each section such as speed and shortcut information.
 
Line 7 ⟶ 18:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || [[#BrnAI::AISection | AISection]]* || mpaSections || ||
|-
| 0x4 || 0x4 || [[#BrnAI::SectionResetPair | SectionResetPair]]* || mpaSectionResetPairs || ||
|-
| 0x8 || 0x14 || float32_t[5] || mafSectionMinSpeeds || ||
Line 28 ⟶ 39:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x8 || [[#BrnAI::AISection | AISection]]* || mpaSections || ||
|-
| 0x8 || 0x8 || [[#BrnAI::SectionResetPair | SectionResetPair]]* || mpaSectionResetPairs || ||
|-
| 0x10 || 0x14 || float32_t[5] || mafSectionMinSpeeds || ||
Line 50 ⟶ 61:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || [[#BrnAI::Portal | Portal]]* || mpaPortals || ||
|-
| 0x4 || 0x4 || [[#BrnAI::BoundaryLine | BoundaryLine]]* || mpaNoGoLines || ||
|-
| 0x8 || 0x4 || [[Vector2]]* || mpaCorners || ||
|-
| 0xC || 0x4 || [[#BrnAI::AISection::AISectionId | AISectionId]] || mId || Section GameDB ID ||
|-
| 0x10 || 0x2 || [[#BrnStreetData::Road::SpanIndex | SpanIndex]] || miSpanIndex || ||
|-
| 0x12 || 0x2 || uint16_t || muNumNoGoLines || || Maximum of 200 walls
Line 64 ⟶ 75:
| 0x14 || 0x1 || uint8_t || mu8NumPortals || || Maximum of 32
|-
| 0x15 || 0x1 || uint8_t || muSpeed || SectionSpeed || See [[#BrnAI::SectionSpeed | SectionSpeed]]
|-
| 0x16 || 0x1 || uint8_t || mu8eDistrict || District || Always null
|-
| 0x17 || 0x1 || uint8_t || mx8Flags || Flags || See [[#AISection flags | flags]]
|}
 
Line 75 ⟶ 86:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x8 || [[#BrnAI::Portal | Portal]]* || mpaPortals || ||
|-
| 0x8 || 0x8 || [[#BrnAI::BoundaryLine | BoundaryLine]]* || mpaNoGoLines || ||
|-
| 0x10 || 0x8 || [[Vector2]]* || mpaCorners || ||
|-
| 0x18 || 0x4 || [[#BrnAI::AISection::AISectionId | AISectionId]] || mId || Section GameDB ID ||
|-
| 0x1C || 0x2 || [[#BrnStreetData::Road::SpanIndex | SpanIndex]] || miSpanIndex || ||
|-
| 0x1E || 0x2 || uint16_t || muNumNoGoLines || ||
Line 89 ⟶ 100:
| 0x20 || 0x1 || uint8_t || mu8NumPortals || ||
|-
| 0x21 || 0x1 || uint8_t || muSpeed || SectionSpeed || See [[#BrnAI::SectionSpeed | SectionSpeed]]
|-
| 0x22 || 0x1 || uint8_t || mu8eDistrict || District || Always null
|-
| 0x23 || 0x1 || uint8_t || mx8Flags || Flags || See [[#AISection flags | flags]]
|-
| 0x24 || 0x4 || || || paddingPadding ||
|}
 
Line 109 ⟶ 120:
| 0x8 || 0x4 || float32_t || mPositionZ || ||
|-
| 0xC || 0x4 || [[#BrnAI::BoundaryLine | BoundaryLine]]* || mpaBoundaryLines || ||
|-
| 0x10 || 0x2 || uint16_t || mu16LinkSection || Section index ||
Line 115 ⟶ 126:
| 0x12 || 0x1 || uint8_t || mu8NumBoundaryLines || ||
|-
| 0x13 || 0x1 || uint8_t[1] || mau8Pad || paddingPadding ||
|}
 
Line 128 ⟶ 139:
| 0x8 || 0x4 || float32_t || mPositionZ || ||
|-
| 0xC || 0x4 || || || paddingPadding ||
|-
| 0x10 || 0x8 || [[#BrnAI::BoundaryLine | BoundaryLine]]* || mpaBoundaryLines || ||
|-
| 0x18 || 0x2 || uint16_t || mu16LinkSection || Section index ||
Line 136 ⟶ 147:
| 0x1A || 0x1 || uint8_t || mu8NumBoundaryLines || ||
|-
| 0x1B || 0x1 || uint8_t[1] || mau8Pad || paddingPadding ||
|-
| 0x1C || 0x4 || || || paddingPadding ||
|}
 
Line 152 ⟶ 163:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || uint32_t || meResetSpeed || || See [[#BrnAI::EResetSpeedType | EResetSpeedType]]
|-
| 0x4 || 0x2 || uint16_t || muStartSectionIndex || ||
Line 162 ⟶ 173:
=== BrnAI::AISection::AISectionId ===
{| class="wikitable"
|-
! Name !! Type !! Length !! Comments
|-
Line 170 ⟶ 180:
=== BrnStreetData::Road::SpanIndex ===
{| class="wikitable"
|-
! Name !! Type !! Length !! Comments
|-
| SpanIndex || int16_t || 0x40x2 ||
|}
 
Line 179 ⟶ 188:
=== BrnAI::SectionSpeed ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 197 ⟶ 205:
=== AISection flags ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 219 ⟶ 226:
=== BrnAI::EResetSpeedType ===
{| class="wikitable"
|-
! Name !! Value !! Comments
|-