LEB: Difference between revisions

501 bytes removed ,  2 years ago
(→‎Actor Section: Update relationship section)
Line 131: Line 131:
|u32[16]
|u32[16]
|'''Parameters'''. This section contains 16 u32's, which are grouped into 8 pairs of [parameter, parameter type].
|'''Parameters'''. This section contains 16 u32's, which are grouped into 8 pairs of [parameter, parameter type].
For any pair, the first 4 bytes make up the value of the parameter. This can be basically anything (will include some known parameters for certain actor types below).
The types are as follows:


The second 4 bytes indicate what the purpose of the parameter is. There are only 3 observed values so far:
*0: the parameter is not used? Mainly observable in lighting actors.
*2: Float
*3: Unsigned integer (u32)
*4: String, where the parameter value define the offset of the string in the top-level names section.


*0, which indicates the parameter is not used?
Unused parameters are generally entered as offsets to a null byte in the names section, as a type 4 parameter.
*2, unknown purpose. Observable on the small key in Lv04AnglersTunnel_06A among other rooms, but the parameters appear to not do anything.
*3, which indicates that the parameter is an integer parameter, taken as just the value of the first u32.
*4, 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.
 
Unused parameters are entered as offsets to a null byte in the names section, as a type 4 parameter.
|-
|-
|0x78
|0x78
39

edits