LEB: Difference between revisions

(→‎Actor Section: More info on some sections)
Line 95: Line 95:
|0x0
|0x0
|u64
|u64
|'''Actor key'''. This value must match the hex value of the corresponding actor label in the names section.
|'''Actor key'''. This value must match the hex value of the corresponding actor label in the (top-level) names section.
|-
|-
|0x8
|0x8
|u32
|u32
|'''Names section offset'''. This stores the offset in the names section for the start of the label that corresponds to this actor.
|'''Names section offset'''. This stores the offset in the (top-level) names section for the start of the label that corresponds to this actor.
|-
|-
|0xC
|0xC
Line 157: Line 157:


*0x0, which indicates the parameter is not used?
*0x0, which indicates the parameter is not used?
*0x2, unknown purpose. Observable on the small key in Lv04AnglersTunnel_06A, but the parameters appear to not do anything.
*0x2, unknown purpose. Observable on the small key in Lv04AnglersTunnel_06A among other rooms, but the parameters appear to not do anything.
*0x3, which indicates that the parameter is a direct parameter. e.g., the parameter 0x1 is used to indicate being able to push a block actor.
*0x3, which indicates that the parameter is an integer parameter, taken as just the value of the first u32.
*0x4, which indicates that the parameter is a plaintext parameter specified in the names section. The value in the previous u32 is the offset in the names section for this parameter.
*0x4, which indicates that the parameter is a string parameter specified in the names section. The value in the previous u32 is the offset in the names section for this parameter.


Most actors have "blank " parameters filled in as offsets to the 2nd null byte after the first label in the names section; however, this seems to be functionally equivalent to leaving the parameter as 0.
Most actors have "blank " parameters filled in as offsets to the 2nd null byte after the first label in the names section; however, this seems to be functionally equivalent to leaving the parameter as 0.
39

edits