Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Edit Door & Key IDs (Manual): Difference between revisions

From LMHack
Added information about the other highlighted values.
m CoNesTra moved page Edit Door/Key ID's (Manual) to Edit Door & Key IDs (Manual): Slash messed with the link
(No difference)

Revision as of 14:16, 9 October 2024

Original Author(s)

weirdboo


Tutorial

In this tutorial, we will learn how to edit door entries.

All of the door entries are in start.dol and start at offset 0x002FFF84 in the NTSC-U / US version, and offset 0x003050A4 in the PAL / European version.

The image seen to the right should be how that area of the dol generally looks. Each color represents a different value used to place the door.


The values highlighted in cyan correspond to a Key ID for each door, which can be declared in treasuretable and keyinfo in game\map2.szp\jmp


The values highlighted in yellow correspond to a door model found in the folder game\game_X.szp\iwamoto\door\. A list of door models can be found here.


The values highlighted in orange determine whether or not the following value is interpreted as a positive or negative number. If the value is 00, the number is positive, and if it's instead FF, the number is negative.


The values highlighted in green correspond to each door's position on the X-axis.


The values highlighted in red correspond to each door's position on the Y-axis.


The values highlighted in blue correspond to each door's position on the Z-axis.


(NOTE: The door frames are not a part of the doors' model themselves, they're a part of the rooms model. Therefore, if you'd like to add a door frame, you will have to modify the room's model.)