Jump to content

MM-only Header Command Documentation


43512
 Share

Recommended Posts

With the reliable HxD hex editor (I can't believe I used XVI32 over this for so long) and the handy-dandy Yaz0 encoding program, I've been working at deciphering the apparently undocumented -- I couldn't find anything about them on the wiki, at least -- scene header commands for Majora's Mask.  I apologize ahead of time if any of the below turns out to be inaccurate; I did my best to be meticulous with everything.

 

 

0x1B command:

 

  Reveal hidden contents

 

 

This header command controls the behavior of small cutscenes, such as when hitting the bell in the Laundry Pool, drinking a potion, or warping somewhere with the Song of Soaring.  From what I could gather, all of the scenes in MM have at least the same nine entries, which involve universal actions (i.e. actions that Link can perform in any area); they seem to be required, as the level won't load if those entries aren't present.  These data are typically listed at the top of the segment pointed to by the command offset, and usually occur in the following order:

 

  Reveal hidden contents

 

 

Although these are by default the same from area to area, they can be set to different configurations for different levels and it'll still work perfectly fine.

 

 

0x02 command:

 

  Reveal hidden contents

 

 

The 0x02 header command specifies the position of, rotation of, and effects applied to the camera for 0x1B-defined cutscenes.  The entries control whether the camera teleports to the given position or visibly moves there and how zoomed-in or zoomed-out the view is.

 

 

Those two are the only ones I've figured out thus far.  I'll update this post with any other information I can find.  Also, by all means double-check this documentation and make sure that it's correct, and please do what you can fill the holes I left in it if you feel motivated to do so.

  • Like 2
Link to comment
Share on other sites

  • 3 months later...

Related: I recently modified VerboseOcarina to print out stats on scenes and rooms, and I discovered weird actor numbers within the actor list.

 

What I think is happening is that the first 4 bits for what should be part of an actor's number are used for something else. For example, pots in the final fight scene have a number of 2082 rather than 0082.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.