Adding Actors to Majora's Mask for Tiny Brain Gamers
Channel: purple tissue box
Date: 2019-09-03

-Look up relevant actor information on https://wiki.cloudmodding.com/mm/Actor_List .
-Use SceneTatl to find the starting address for the room you want to edit.
-In a hex editor, go to that location in memory and look for the 0x0B command and 0x01 command.
-In those commands, note the size and offset for the two tables: objects for 0B and actors for 01.
-If your object does not exist already in the object table, check to see if there are blank bytes after it that you can steal.
-If there is room to put a new object, you can just type it in and update the 0B command by increasing the size by one.
-If there is no room to put a new object, OR there is no room to put a new actor in the actor list, you will need to move the actor list to the end of the file.
-Go to the DMA table at 0x1A500 and search for the room's starting address. The very next number in the table is the room's ending address.
-Copy the actor table and paste it at the end of file location.
-Now, we have extra room for both actors (end of file) AND extra room for objects (where the actors used to be)
-Update the 0B and 01 commands to reflect their new size/position.
-Update the DMA table to include the extra data that we added at the end of the file.
-Search the rom for additional copies of the room's starting address. These can be other scenes that use the same map, such as a cutscene setup.
-Change them just like you did with the DMA table so your new actor list gets loaded by the game.
-If you had to update the DMA table at any point, use rn64crc with command line option -u to update your rom's CRC value
-Feast your eyes on the glory of your new bk chest with quiver 50 in it!