Interface Hacking

From z64 wiki
Jump to: navigation, search

How to hack the Interface

Button Sizes

Details 	        Code		Default     Debug Rom
A-Button Scale          811C7948 ????   FE84        812114C8 ???? 
B-Button Scale          811C76C0 0???   023F        81211240 0???
C-Down Scale 	        811C76C4 0??? 	026C        81211244 0???
C-Left Scale    	811C76C2 0??? 	026C        81211242 0???
C-Right Scale 	        811C76C6 0??? 	026C        81211246 0???

Button Locations: X Coordinate

Details 	        Code		Default Value   Debug Rom
A-Button 	        801C7947 00?? 	00BA            812114C6 ????
B-Button 	        801C76B1 00??   00A0            81211230 ????
C-Up                    801C76A1 00??   00FE            81211220 ????
C-Down                  801C76B5 00??   00F9            81211234 ????
C-Left                  801C76B3 00??   00E3            81211232 ????
C-Right 	        811C76B6 00?? 	010F            81211236 ????
Magic Bar 	        801C7987 00?? 	0012            81211506 ????
Magic Bar Border 	801C7987 00?? 	0012            81211506 ????
Rupee Counter Icon 	80075853 00?? 	001A            810BF3D2 ????
Rupee Counter Text 	80075AEB 00?? 	002A            810BF66A ????
Map* 	                801C7C5F 00?? 	00D8            802117DE ????
Map Arrows 	        811C7DC4 ???? 	04D8            81211944 ????

Button Locations: Y Coordinate

Details 		Code		Default Value   Debug Rom
A-Button 		801C7945 00??	0010            812114C4 ????
B-Button 		801C76B9 00??   0011            81211238 ????
C-Up          		801C76A3 00??   0010            81211222 ????
C-Down   		801C76BD 00??	0022            8121123C ????
C-Left   		801C76BB 00??	0012            8121123A ????
C-Right 		801C76BF 00??	0012            8121123E ????
Magic Bar 		801C7989 00??	002A            81211508 ????
Magic Bar Border	801C7989 00??	002A            81211508 ????
Rupee Counter Icon 	80075857 00??	00CE            810BF3D6 ????
Rupee Counter Text 	80075CEB 00??	00CE            810BF86A ????
Map* 			801C7C61 00??	009E            812117E0 ????
Map Arrows 		811C7DC6 ????	FD44            81211946 ????

Button Colours/Hue

Details 		Code		Default Value
A-Button 		801C7951 00??	005A
			801C7953 00??	005A
			801C7955 00??	00FF

B-Button 		801C767B 00??	0000
			801C767D 00??	0096
			801C767F 00??	0000


C-Buttons 		801C7673 00??	00FF
			801C7675 00??	00A0
			801C7677 00??	0000

Map			801C7DC9 00??	0000
			801C7DCB 00??	00FF
			801C7DCD 00??	00FF

Item Scale

Details 		Code		Default Value
A-Button 		801C794F 00??	0030
B-Button Item 		811C76D8 0???	0226
C-Down Item 		811C76DC 0???	02A8
C-Left Item 		811C76DA 0???	02A8
C-Right Item 		811C76DE 0???	02A8

Item Locations: X Coord

Details 		Code		Default Value  Debug ROM
A-Button               801C794D 00??	00BA           802114CD 00??
B-Button               801C76C9 00??	00A0           80211249 00??
C-Up                   801C73D5 00??	00F7           80210F55 00??
C-Down                 801C76CD 00??	00F9           8021124D 00??
C-Left                 801C76CB 00??	00E3           8021124B 00??
C-Right                811C76CE 0???	010F           8021124E 00??

Item Locations: Y Coord

Details 		Code		Default Value   Debug ROM
A-Button               801C794B 00??	0009            802114CB 00??
B-Button               801C76D1 00??	0011            80211251 00??
C-Up                   801C73D7 00??	0014            80210F57 00??
C-Down                 801C76D5 00??	0022            80211255 00??
C-Left                 801C76D3 00??	0012            80211253 00??
C-Right                801C76D7 00??	0012            80211257 00??

C-Button Numbers X Coord

Details 		Code            Default Value   Debug ROM
C-Left                 801C7E27 00??	00E3            802119A7 00??
C-Down                 801C7E29 00??	00FA            802119A9 00??
C-Right                811C7E2A 0???	0110            802119AA 00??

C-Button Numbers Y Coord

Details 		Code		Default Value   Debug ROM
C-Left                 801C7E2F 00??	0023            802119AF 00??
C-Down                 801C7E31 00??	0033            802119B1 00??
C-Right                801C7E33 00??	0023            802119B3 00??

A+B Reversed

An image of the code in action
This code, made by Cendamos early 2006, swaps around the HUD to make it resemble the beta version of the game. This was the first of many interface codes to come.
Legend of Zelda, Ocarina of Time (U) 1.0

801C7633 0020
801C7635 0016
801C767B 0050
801C767D 005F
801C767E 00FF
801C767F 00FF
801C7684 0004
801C768B 0030
801C768D 0010
801C76B1 00C1
801C76B3 00E3
801C76C9 00C0
801C7947 0098
801C794D 0099
801C7951 0000
801C7952 005C
801C7953 00A3
801C7955 0000
801C7956 00F0

A+C Interface

An image of the code in action
This code, made by TS_Death_Angel in early/mid 2006, emulates the second interface utilized by Ocarina of Time, where there only the C and A buttons are visible. There are textures which were created for use with this code (will upload later), and you can get them here.
Legend of Zelda, Ocarina of Time (U) 1.0

801C76B3 00E1
801C76BB 0025
801C7945 00FB
801C76BD 0034
811C76B6 0111
801C76BF 0025
801C76CB 00E1
801C76D3 0025
811C76CE 0111
801C76D7 0025
801C76CD 00F9
801C76D5 0034
801C76C9 00F7
801C76D1 000D
801C76B1 00F8
801C76B9 000F
801C794F 0000
801C767B 005A
801C767D 005A
801C767F 00FF
801C798A 00FF
801C7989 00FF
801C7673 00FF
801C7675 00C0
801C7677 0000
801C7E27 00EA
811C7E28 0100
811C7E2A 011B
801C7E2F 003D
801C7E31 004B
801C7E33 003D
811C76A0 FFFF
811C73D4 FFFF

A+B Interface

An image of the A+B code in action
This code, created by TS_Death_Angel in late 2006, emulates the initial interface Ocarina of Time utilized: A+B. Due to technical limitations of OoT, the interface is not 100% perfect, but it's damn near close.
Debug ROM

D015E6C9 0003
812114C6 0FF0
D015E6C9 0003
802114C5 0010
D015E6C9 0003
802111F3 0000
D015E6C9 0003
802111F5 0096
D015E6C9 0003
802111F7 0000
D015E6C9 0003
812114CC 0FFF
D015E6C9 0003
81211230 00F7
D015E6C9 0003
81211238 0020
D015E6C9 0003
81211240 0230
D015E6C9 0003
802111FB 005A
D015E6C9 0003
802111FD 005A
D015E6C9 0003
802111FF 00FF
D015E6C9 0003
81211248 01FF
D015E6C9 0003
80211251 0021
D015E6C9 0003
81211258 023F
D015E6C9 0003
80211233 00EF
D015E6C9 0003
8021123B 0018
D015E6C9 0003
81211242 0250
D015E6C9 0003
80211253 001A
D015E6C9 0003
8021124B 00F6
D015E6C9 0003
81211252 001F
D015E6C9 0003
81211234 0DFF
D015E6C9 0003
81211236 0DFF
D015E6C9 0003
8121124C 0DFF
D015E6C9 0003
8121124E 0DFF
D015E6C9 0003
812119A6 0DFF
D015E6C9 0003
812119A8 0DFF
D015E6C9 0003
812119AA 0DFF
D015E6C9 0003
81211506 0FFF
D015E6C9 0003
81211508 0CFF
D015E6C9 0003
812119A6 00FA
D015E6C9 0003
812119AE 0035
D215E6C9 0003
812114C6 0FFF
D215E6C9 0003
802114C5 0010
D215E6C9 0003
802111F3 0000
D215E6C9 0003
802111F5 0096
D215E6C9 0003
802111F7 0000
D215E6C9 0003
812114CC 0FFF
D215E6C9 0003
812114CC 0FFF
D215E6C9 0003
81211230 010C
D215E6C9 0003
81211238 0020
D215E6C9 0003
81211240 0230
D215E6C9 0003
802111FB 005A
D215E6C9 0003
802111FD 005A
D215E6C9 0003
802111FF 00FF
D215E6C9 0003
81211248 0110
D215E6C9 0003
80211251 0025
D215E6C9 0003
81211258 0310
D215E6C9 0003
80211233 00DD
D215E6C9 0003
8021123B 0018
D215E6C9 0003
81211242 0255
D215E6C9 0003
80211253 001A
D215E6C9 0003
8121125A 0300
D215E6C9 0003
8021124B 00E1
D215E6C9 0003
81211234 0DFF
D215E6C9 0003
81211236 0DFF
D215E6C9 0003
8121124C 0DFF
D215E6C9 0003
8121124E 0DFF
D215E6C9 0003
812119A6 0DFF
D215E6C9 0003
812119A8 0DFF
D215E6C9 0003
812119AA 0DFF
D215E6C9 0003
81211506 0FFF
D215E6C9 0003
81211508 0CFF
D215E6C9 0003
812119A6 00E3
D215E6C9 0003
812119AE 002B
8108AFC6 0028
8108AB52 0028


Wind Waker Interface Code

An image of Wind Waker HUD code in action
This code, made by an unknown person for Djipi's Cel-Shaded Zelda 64 pack, emulates the Wind Waker interface near-perfectly.
801C7945 0017
801C7947 00F0
801C794D 00F0
801C794B 0017
811C76C0 0360
801C76B1 00EA
801C76B9 0033
811C76D8 0300
801C76C9 00E7
801C76D1 0034
801C73D7 000A
811C73D4 0104
811C76A0 0F00
801C7951 0039
801C7953 00A9
801C7955 009C
801C7673 00FF
801C7675 00CC
801C7677 0000
801C767B 00E1
801C767D 005B
801C767F 003C
811C76C6 03A0
811C76B6 010D
801C76BF 0013
811C76DE 03C0
811C76CE 010D
801C76D7 0013
811C7E2A 0116
801C7E33 001E
811C76C2 03A0
811C76B2 00FA
801C76BB 000E
811C76DA 03C0
801C76CB 00FA
801C76D3 000E
801C7E27 00F6
801C7E2F 0019
811C76C4 03A0
811C76B4 0115
811C76BC 0025
811C76DC 03C0
811C76CC 0115
801C76D5 0025
811C7E28 0112
801C7E31 0030