Actions

Documentation:Doors

From LMHack

Author

weirdboo, opeyx

Description

A list of all doors and viewports in the game. Since the game must load certain rooms in advance before Luigi opens a door to travel to them, the same logic can be applied to viewports. They act as a way to "link" rooms together visibly, such that if many rooms are loaded (like in the Area 2 Hallway), the viewports allow Luigi to see down them properly by drawing a viewing region for the other rooms to be seen from. Notably, most viewports are for hallways since quite a few rooms need to be linked together for Luigi to see. But also, they explain such oddities as being able to see the 2F Balcony from the Master Bedroom.

These doors and their data can be edited with Roomah or by opening Start.dol with a hex editor.

Door Information

Documentation of how each 28 byte long door entry is listed in Start.dol. Even if the entry is a door and not a viewport, the door will still need to draw a viewport for the previous/next rooms to be seen, hence why all doors have viewport size values.

Offset Size Type Field Name Description
-0x00 1 Byte Door Orientation 1 = front facing, 2 = side facing. 0 marks the end of the door list.
-0x01 1 Byte Door Type 0 = door, 1 = viewport, 2 = window.
-0x02 2 Byte[2] Padding Two bytes of padding.
-0x04 2 uShort JMP Door Number JMP Door number. This is the door number referenced in iteminfotable, objinfo, keyinfo, etc.
-0x06 1 Byte Model ID Door Models
-0x07 1 Byte Door Entry Number The number of the door in the door list. This is used to distinguish viewports from doors, but isn't referenced anywhere else important.
-0x08 4 Integer X Coordinates Permanent X spawn coordinates for the door or viewport.
-0x0C 4 Integer Y Coordinates Permanent Y spawn coordinates for the door or viewport. -400 = Basement, 150 = Floor 1, 700 = Floor 2, and 1250 = Floor 3.
-0x10 4 Integer Z Coordinates Permanent Z spawn coordinates for the door or viewport.
-0x14 2 Short Viewport X Size X size for the viewport drawn by a door or a normal viewport. Forward facing doors need a size of 200. Sideways facing doors need no X size.
-0x16 2 Short Viewport Y Size Y size for the viewport drawn by a door or a normal viewport. All doors use a size of 300.
-0x18 2 Short Viewport Z Size Z size for the viewport drawn by a door or a normal viewport. Forward facing doors need no Z size. Sideways facing doors need a size of 200.
-0x1A 1 Byte Next Escape For forward facing doors, next escape refers to the room to the south of the door. For sideways facing doors, next escape refers to the room to the west of the door. Refer to the Door Loading List for escape numbers.
-0x1B 1 Byte Current Escape For forward facing doors, current escape refers to the room to the north of the door. For sideways facing doors, current escape refers to the room to the east of the door. Refer to the Door Loading List for escape numbers.

Map0 (Test Map)

List of Map0 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x2FE214 Sideways Door 0 1 0 1025 150 1 0 300 200 1 2 Test Map east door.
1 0x2FE230 Forward Door 0 1 1 0 150 -750 400 300 0 1 3 Test Map north door.
2 0x2FE24C Sideways Door 0 1 2 -1025 150 1 0 300 200 0 1 Test Map west door.

Map2 (The Mansion)

List of Map2 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
2 0x2FFFB8 Forward Door 72 14 0 2300 -400 -5460 200 300 0 71 73 Secret Altar door. This door's JMP number of 72 is hardcoded to have spikes on it until Area 4 is "cleared" (by defeating Van Gore) and the eldoor forcefield is removed with the boss key. Notably, event16 will prevent Luigi from even approaching this door until he collects at least 40 Boos (45 on PAL Hidden Mansion).
3 0x2FFFD4 Sideways Door 69 9 1 2025 -400 -1810 0 200 300 68 70 Pipe Room door
4 0x2FFFF0 Forward Door 70 10 2 2300 -400 -2360 200 300 0 70 71 Basement Hallway C (Secret Altar) door
5 0x30000C Forward Door 71 9 3 2900 -400 -1260 200 300 0 67 69 Breaker Room door
7 0x300044 Forward Door 68 9 4 2900 -400 -710 200 300 0 66 67 Cellar – north door
8 0x300060 Sideways Door 67 9 5 2575 -400 -210 0 300 200 65 66 Cellar – west door
9 0x30007C Sideways Door 65 9 6 2025 -400 -210 0 300 200 64 65 Cold Storage door
10 0x300098 Sideways Door 63 9 7 2075 1250 -1810 0 300 200 61 60 Artist's Studio door
11 0x3000B4 Forward Door 62 9 8 1800 1250 -2835 200 300 0 61 62 Balcony 3F - east door
12 0x3000D0 Forward Door 59 13 9 -1800 1250 -2835 200 300 0 57 62 Balcony 3F - west door. This door's JMP number of 59 is hardcoded to have spikes on it until Area 3 is cleared and the eldoor forcefield is removed with the boss key. This door, once the forcefield is removed, will also turn on Flag 194 which will activate event44 to start the Blackout.
16 0x300140 Forward Door 56 9 10 2400 1250 -710 200 300 0 55 56 Safari Room – north door
17 0x30015C Sideways Door 55 9 11 2075 1250 -210 0 300 200 54 55 Safari Room – west door
18 0x300178 Forward Door 53 9 12 1150 1250 -1260 200 300 0 53 59 Clockwork Room door
19 0x300194 Sideways Door 52 9 13 -1525 1250 -210 0 300 200 52 53 Telephone Room door
20 0x3001B0 Sideways Door 51 9 14 -2075 1250 -210 0 300 200 51 52 Armory door
21 0x3001CC Forward Door 50 9 15 -2400 1250 -1260 200 300 0 51 58 Ceramics Studio door
22 0x3001E8 Sideways Door 49 1 16 -975 700 -4940 0 300 200 47 49 Nana's Room door
23 0x300204 Sideways Door 48 1 17 -1525 700 -4940 0 300 200 48 47 Bathroom 2F door
25 0x30023C Sideways Door 75 1 18 2270 700 -4165 0 300 200 46 18 1F <-> 2F Stairwell - upper door
26 0x300258 Forward Door 47 1 19 2780 700 -4410 200 300 0 18 50 Tea Room door
27 0x300274 Sideways Door 45 1 20 -1525 700 -4160 0 300 200 45 46 Washroom 2F door
29 0x3002AC Sideways Door 44 1 21 1575 700 -3360 0 300 200 39 43 Astral Hall door
30 0x3002C8 Sideways Door 43 1 22 -1025 700 -3360 0 300 200 41 42 Wardrobe Room door
31 0x3002E4 Sideways Door 41 1 23 -2575 700 -3160 0 300 200 40 41 Balcony 2F door
32 0x300300 Sideways Door 40 1 24 3125 700 -3360 0 300 200 43 44 Observatory door
35 0x300354 Forward Door 38 4 25 625 700 -2810 200 300 0 36 42 Anteroom door
38 0x3003A8 Forward Door 34 3 26 0 700 -1260 400 300 0 31 36 Parlor double doors
39 0x3003C4 Sideways Door 33 1 27 -1025 700 -1010 0 300 200 30 31 2F Foyer - west door
40 0x3003E0 Forward Door 32 1 28 -1435 700 -1260 200 300 0 30 35 Study door
41 0x3003FC Forward Door 31 1 29 -3703 700 -1260 200 300 0 30 34 Master Bedroom door
43 0x300434 Sideways Door 30 1 30 2575 700 -210 0 300 200 28 29 Guest Room door
44 0x300450 Forward Door 29 1 31 2250 700 -710 200 300 0 28 32 Sitting Room door
45 0x30046C Forward Door 28 1 32 -2190 700 -710 200 300 0 27 30 Twin's Room door
46 0x300488 Forward Door 27 1 33 -3005 700 -710 200 300 0 26 30 Nursery door
48 0x3004C0 Forward Door 25 1 34 3800 150 -5460 200 300 0 23 24 Rec Room – north door
49 0x3004DC Sideways Door 23 1 35 -1525 150 -4950 0 300 200 21 20 Bathroom 1F door
50 0x3004F8 Forward Door 21 1 36 -525 150 -4410 200 300 0 17 22 Conservatory door
51 0x300514 Forward Door 42 12 37 -1250 150 -5460 200 300 0 20 24 Courtyard door. This door's JMP number of 42 is hardcoded to have spikes on it until Area 2 is cleared and the eldoor forcefield is removed with the boss key.
54 0x300568 Sideways Door 74 1 38 2270 150 -4165 0 300 200 17 18 1F <-> 2F Stairwell - lower door
55 0x300584 Forward Door 24 1 39 2780 150 -4410 200 300 0 18 23 Rec Room – south door
56 0x3005A0 Sideways Door 20 1 40 -1525 150 -4165 0 300 200 16 17 Washroom 1F door
58 0x3005D8 Sideways Door 18 1 41 -525 150 -3220 0 300 200 12 13 Projection Room door
59 0x3005F4 Forward Door 17 1 42 -930 150 -3860 200 300 0 12 17 Billiards Room door
60 0x300610 Sideways Door 11 3 43 -1775 150 -1810 0 300 400 7 8 Kitchen door
61 0x30062C Forward Door 16 2 44 3785 150 -2810 200 300 0 9 14 Storage Room door
62 0x300648 Forward Door 10 2 45 -3800 150 -2310 200 300 0 7 11 Boneyard door
64 0x300680 Sideways Door 15 2 46 1575 150 -1685 0 300 200 10 9 Ball Room door
65 0x30069C Sideways Door 9 1 47 2575 150 -1010 0 300 200 6 67 1F <-> B1 Stairwell - upper door
66 0x3006B8 Sideways Door 7 1 48 -2575 150 -1010 0 300 200 5 6 Laundry Room door
67 0x3006D4 Sideways Door 14 1 49 1025 150 -1810 0 300 200 8 10 Dining Room door
68 0x3006F0 Sideways Door 5 1 50 2575 150 -210 0 300 200 3 4 Mirror Room door
69 0x30070C Forward Door 4 1 51 2050 150 -710 200 300 0 3 6 Fortune-teller's Room door
70 0x300728 Forward Door 1 1 52 -3150 150 -710 200 300 0 0 5 Butler's Room door
71 0x300744 Forward Door 3 11 53 0 150 -710 400 300 0 2 6 Foyer 1F double doors. This door's JMP number of 3 is hardcoded to have spikes on it until Area 1 is cleared and the eldoor forcefield is removed with the boss key.

List of Map2 Viewports

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x2FFF80 Sideways Viewport N/A N/A N/A 1525 -400 -5955 0 300 200 72 73 Bottom of the Well <-> Secret Altar
1 0x2FFF9C Unknown Door N/A N/A N/A 745 -20 -5975 760 0 550 72 24 Bottom of the Well <-> Courtyard
6 0x300028 Forward Viewport N/A N/A N/A 2300 -275 -1260 500 550 0 65 70 Basement Hallway A (Cold Storage, Cellar) <-> Basement Hallway B (Pipe Room)
13 0x3000EC Sideways Viewport N/A N/A N/A 3180 1375 -985 0 550 550 56 33 2F to Attic Stairs <-> Attic Hallway A (Safari Room north side)
14 0x300108 Forward Viewport N/A N/A N/A 1800 1375 -1260 500 550 0 54 61 Attic Hallway B (Safari Room west side) <-> Attic Hallway C (Artist's Studio)
15 0x300124 Forward Viewport N/A N/A N/A -1800 1375 -1260 500 550 0 52 57 Attic Hallway E (Armory, Telephone Room) <-> Attic Hallway D (3F Balcony west side)
24 0x300220 Forward Viewport N/A N/A N/A -1250 825 -4410 500 550 0 46 47 2F Hallway B (Area 3 entrance, 2F Washroom) <-> 2F Hallway C (Nana's Room, 2F Bathroom)
28 0x300290 Forward Viewport N/A N/A N/A 1300 825 -3760 500 550 0 39 46 2F Hallway D (Astral Hall) <-> 2F Hallway B (Area 3 entrance, 2F Washroom)
33 0x30031C Forward Viewport N/A N/A N/A 1300 825 -2810 500 550 0 38 39 2F Hallway E (Sealed Room) <-> 2F Hallway D (Astral Hall)
34 0x300338 Forward Window N/A N/A N/A -3350 830 -2810 1300 280 0 34 40 Master Bedroom <-> 2F Balcony
36 0x300370 Sideways Viewport N/A N/A N/A 3180 825 -985 0 550 550 32 33 2F Hallway F (Sitting Room) <-> 2F to Attic Stairs
37 0x30038C Forward Viewport N/A N/A N/A 1300 825 -1260 500 550 0 32 38 2F Hallway E (Sealed Room) <-> 2F Hallway F (Sitting Room)
42 0x300418 Forward Door N/A N/A N/A 0 825 -710 2050 550 0 2 31 1F Foyer <-> 2F Foyer
47 0x3004A4 Sideways Viewport N/A N/A N/A 4150 275 -6025 0 550 500 24 25 Courtyard <-> The Mansion walls bordering the Courtyard
52 0x300530 Sideways Viewport N/A N/A N/A -4200 275 -4200 0 550 500 19 15 Graveyard <-> The Mansion walls bordering the Graveyard
53 0x30054C Forward Viewport N/A N/A N/A -1250 275 -4410 500 550 0 17 20 1F Hallway C (Conservatory, Billiards Room) <-> 1F Hallway D (Courtyard, Bathroom 1F)
57 0x3005BC Forward Viewport N/A N/A N/A 1300 275 -3760 500 550 0 10 17 1F Hallway B (Dining Room, Ball Room) <-> 1F Hallway C (Conservatory, Billiards Room)
63 0x300664 Forward Viewport N/A N/A N/A 1300 275 -1260 500 550 0 6 10 1F Hallway A (Laundry Room, Basement) <-> 1F Hallway B (Dining Room, Ball Room)

Map5 (Beta Gallery I - Short Hallways)

List of Map5 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x300A14 Forward Door 2 6 0 2818 150 -2547 200 300 0 2 3 The East Hallway door
1 0x300A30 Forward Door 1 6 1 2272 150 -2547 200 300 0 1 3 The West Hallway door

List of Map5 Viewports

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
2 0x300A4C Forward Viewport N/A N/A N/A 2819 252 -1051 494 505 0 0 2 The Main Room <-> East Hallway viewport
3 0x300A68 Forward Viewport N/A N/A N/A 2272 252 -1051 500 505 0 0 1 The Main Room <-> West Hallway viewport

Map6 (The Gallery)

List of Map6 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x300C50 Forward Door 2 6 0 2818 150 -3547 200 300 0 2 3 The East Hallway door
1 0x300C6C Forward Door 1 6 1 2272 150 -3547 200 300 0 1 3 The West Hallway door

List of Map6 Viewports

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
2 0x300C88 Forward Viewport N/A N/A N/A 2819 252 -1051 494 505 0 0 2 The Main Room <-> East Hallway viewport
3 0x300CA4 Forward Viewport N/A N/A N/A 2272 252 -1051 500 505 0 0 1 The Main Room <-> West Hallway viewport

Map7 (Beta Gallery II - Long Hallways)

List of Map7 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x300E68 Forward Door 2 6 0 2818 150 -4547 200 300 0 2 3 The East Hallway door
1 0x300E84 Forward Door 1 6 1 2272 150 -4547 200 300 0 1 3 The West Hallway door

List of Map7 Viewports

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
2 0x300EA0 Forward Viewport N/A N/A N/A 2819 252 -1051 494 505 0 0 2 The Main Room <-> East Hallway viewport
3 0x300EBC Forward Viewport N/A N/A N/A 2272 252 -1051 500 505 0 0 1 The Main Room <-> West Hallway viewport

Map8 (Beta Gallery III - Long Hallways w/ E. Gadd)

List of Map8 Doors

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
0 0x301080 Forward Door 2 6 0 2818 150 -6547 200 300 0 2 3 The East Hallway door
1 0x30109C Forward Door 1 6 1 2272 150 -6547 200 300 0 1 3 The West Hallway door

List of Map8 Viewports

Entry # Offset Orientation Type JMP Door # Model # Door List # X Position Y Position Z Position Viewport X Size Viewport Y Size Viewport Z Size Next Escape Current Escape Description
2 0x3010B8 Forward Viewport N/A N/A N/A 2819 252 -1051 494 505 0 0 2 The Main Room <-> East Hallway viewport
3 0x3010D4 Forward Viewport N/A N/A N/A 2272 252 -1051 500 505 0 0 1 The Main Room <-> West Hallway viewport