LUA List: Difference between revisions

Renamed variables to modifiers. Added infobox and normalized some content.
(Fix section links.)
(Renamed variables to modifiers. Added infobox and normalized some content.)
 
Line 1:
{{ParadiseResourceTypeInfobox
| name = LUAList
| othernames = LUAInst
| resourcenames = Dev<br />IslandPack<br />PassThePad
| id = 0x10025
| category = Game-specific<br />(Burnout Paradise)
| memdist = Main Memory only
}}
 
The LUA List resource type contains binary data detailing the challenges in individual [[LUA Script]] resources. It is used in scripted challenges such as Party Pack challenges.
 
The information held includes details of the challenge itself, such as its name and goal, as well as modifiers such as the variables.
 
= Structures =
Some names are given for clarity and are not official Criterion identifiers.
 
=== BrnLUA::LUAListResource ===
==== 32-bit ====
Line 10 ⟶ 20:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || int32_t || ? || Version number || 1
|-
| 0x4 || 0x4 || || || paddingPadding ||
|-
| 0x8 || 0x8 || [[CgsID]] || ? || List ID || Encoded
|-
| 0x10 || 0x4 || [[#BrnLUA::LUAListEntry|LUAListEntry]]* || ? || Entry data start ||
|-
| 0x14 || 0x4 || char** || ? || Types || See [[#Challenge type|challenge type]]
|-
| 0x18 || 0x4 || char** || ? || VariablesModifiers || See [[#VariablesModifiers|variablesmodifiers]]
|-
| 0x1C || 0x4 || uint32_t || ? || NumNumber of scripts ||
|-
| 0x20 || 0x4 || uint32_t || ? || DataResource lengthsize || Not including padding to end
|-
| 0x24 || 0x80 || char[128] || ? || List title ||
|-
| 0xA4 || 0x1 || uint8_t || ? || NumNumber of types ||
|-
| 0xA5 || 0x1 || uint8_t || ? || NumNumber variablesof modifiers ||
|}
 
Line 37 ⟶ 47:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x4 || int32_t || ? || Version number || 1
|-
| 0x4 || 0x4 || || || paddingPadding ||
|-
| 0x8 || 0x8 || [[CgsID]] || ? || List ID || Encoded
|-
| 0x10 || 0x8 || [[#BrnLUA::LUAListEntry|LUAListEntry]]* || ? || Entry data start ||
|-
| 0x18 || 0x8 || char** || ? || Types || See [[#Challenge type|challenge types]]
|-
| 0x20 || 0x8 || char** || ? || VariablesModifiers || See [[#VariablesModifiers|variablesmodifiers]]
|-
| 0x28 || 0x4 || uint32_t || ? || NumNumber of scripts ||
|-
| 0x2C || 0x4 || uint32_t || ? || DataResource lengthsize || Not including padding to end
|-
| 0x30 || 0x80 || char[128] || ? || List title ||
|-
| 0xB0 || 0x1 || uint8_t || ? || NumNumber of types ||
|-
| 0xB1 || 0x1 || uint8_t || ? || NumNumber variablesof modifiers ||
|}
 
Line 64 ⟶ 74:
! Offset !! Length !! Type !! Name !! Description !! Comments
|-
| 0x0 || 0x8 || [[CgsID]] || ? || Script ID || Encoded
|-
| 0x8 || 0x80 || char[128] || ? || Name || Non-zeroed padding in all strings
|-
| 0x88 || 0x80 || char[128] || ? || Goal ||
|-
| 0x108 || 0x100 || char[256] || ? || Description ||
|-
| 0x208 || 0x4 || uint32_t || ? || Score multiplier || See [[#Score multiplier|score multiplier]]
|-
| 0x20C || 0x4 || uint32_t || ? || Scoring method || See [[#Scoring method|scoring method]]
|-
| 0x210 || 0x4 || uint32_t || ? || Type ||
|-
| 0x214 || 0x4 || uint32_t || ? || VariablesModifiers ||
|-
| 0x218 || 0x8 || || || paddingPadding ||
|}
 
Line 86 ⟶ 96:
=== Challenge type ===
PASSTHEPAD is the only list to contain challenge types.
 
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 97 ⟶ 107:
|}
 
=== VariablesModifer ===
PASSTHEPAD is the only list to contain variablesmodifiers.
 
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 118 ⟶ 128:
=== Score multiplier ===
PASSTHEPAD is the only list to use multipliers, and only on Stunt challenges.
 
{| class="wikitable"
|-
! Name !! Value !! Comments
|-
Line 131 ⟶ 141:
=== Scoring method ===
PASSTHEPAD is the only list to use success/fail scoring, and only on Stunt challenges. All Stunt challenges use this.
 
{| class="wikitable"
|-
! Name !! Value !! Comments
|-