LEB: Difference between revisions

795 bytes added ,  2 years ago
→‎Actor Section: added info on last section of actor data
No edit summary
(→‎Actor Section: added info on last section of actor data)
Line 130: Line 130:
|-
|-
|0x38
|0x38
|u32[N]
|u32[16]
|'''Parameters'''. This section contains multiple u32's, which appear to be grouped into pairs of [parameter, parameter type]. For most actors, there are 8 parameters (and so this section is 64 bytes long).
|'''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).
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).


Line 142: Line 142:
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.
|-
|-
|0x38 + N*0x8
|0x78
|
|
|Exact formatting is still unknown, but in this section it lists the indices of game flags that this actor looks at. e.g. whether a chest is open, whether a door is open, whether a small key has fallen, etc.
|'''Control section.''' Used to define actor-specific behavior, including actors which appear from switches, enemy kill tags, etc., as well actors which use flags to mark a state, e.g. whether you've picked it up yet or not.
Every value in this section is a u32.
 
 
Actors affected by these (e.g. a chest that appears after killing enemies, or a door that opens when pressing a switch) have the value 0x0101.
 
Actors which control this behavior (e.g. the switch, enemy kill tag, etc.) have the value 0x0201.
 
Actors not intended to be a part of this behavior omit this value. Other values have been observed here but aren't yet understood. (e.g. 0x0202)
 
 
Following this value, or immediately after the parameters if it hasn't been used, holds the value 0x0404.
 
 
Following that is a list of game flag indices.
 
Listed first, if applicable, is the flag for whether the actor has been made to appear (for falling keys/spawn chests).
 
Next, if applicable, is the flag for whether the actor has been picked up/opened (for fallen keys, chests, doors, etc).
 
 
The rest of the section will be 0 if not used.
|}
|}
=====Notes on Parameters for Specific Actors=====
=====Notes on Parameters for Specific Actors=====
39

edits