Friend Roster Plus Your Mii; Name Changer & Extender [Vega]
This code will allow you to put in a custom Mii name when online. Only you can see it. You also have the ability to extend the max length of the Mii name from 10 to 29 characters. If you don't want the max length, just fill in the unused values with 0's.
This will also effect every Mii name for every friend of your entire friend roster.
Also, this may not work on all MKW servers (such as Wiimmfi). There's no point adding button activators to this if the code isn't working on a particular MKW server as the ASM function gets called upon when transitioning from the Wifi Main menu to the menu where you can see your Mii plus name.
Please also note that this will also set all names of anyone you meet (during the sequence when Miis are being shown on the game) before a the track voting is done. However during track vote, and actual racing, opponents' names will be normal.
NTSC-U
C274BF0C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
PAL
C275144C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
NTSC-J
C2750AB8 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
NTSC-K
C273F80C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
WXYZ = Mii Character ASCII Value
Example ASCII Values:
0020 = Space
0041 = A
0061 = a
E017 = DSi Heart
Use 0000 for unfilled values if you don't want to use the full length of 29 characters.
Source (using 01230123012301230123456789905 as the Mii Name):
#Address ports
# 8074BF0C = NTSC-U
# 8075144C = PAL
# 80750AB8 = NTSC-J
# 8073F80C = NTSC-K
#Safe registers
#LR, r0, r5, r11, r12
#Start of Mii Name is at r4+0x68 (where loop writing starts at)
#Mii Name characters are halfword a piece, loop will transfer a halfword at a time
#Thus use r5 to point to r4+0x66
addi r5, r4, 0x66
#Use BL Trick to write out Mii Name
bl mii_name
.short 0x0000
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0034003500360037
.llong 0x0038003900390030
.short 0x0035
.short 0x0000
.short 0x0000
mii_name:
mflr r12
the_loop:
lhzu r11, 0x2 (r12) #Load Mii Name from BL Trick
sthu r11, 0x2 (r5) #Store Mii Name to dynamic memory
cmpwi r11, 0 #Check for null halfword (end of Mii Name)
bne+ the_loop #If NOT null, keep loop going
#Default Instruction
lwz r5, 0x0068 (r4)
Code creator: Vega
Code credits: Star (used his Mii Extender Code to help setup a Breakpoint)
This code will allow you to put in a custom Mii name when online. Only you can see it. You also have the ability to extend the max length of the Mii name from 10 to 29 characters. If you don't want the max length, just fill in the unused values with 0's.
This will also effect every Mii name for every friend of your entire friend roster.
Also, this may not work on all MKW servers (such as Wiimmfi). There's no point adding button activators to this if the code isn't working on a particular MKW server as the ASM function gets called upon when transitioning from the Wifi Main menu to the menu where you can see your Mii plus name.
Please also note that this will also set all names of anyone you meet (during the sequence when Miis are being shown on the game) before a the track voting is done. However during track vote, and actual racing, opponents' names will be normal.
NTSC-U
C274BF0C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
PAL
C275144C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
NTSC-J
C2750AB8 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
NTSC-K
C273F80C 0000000D
38A40066 48000045
0000WXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ 00000000
7D8802A6 A56C0002
B5650002 2C0B0000
4082FFF4 80A40068
60000000 00000000
WXYZ = Mii Character ASCII Value
Example ASCII Values:
0020 = Space
0041 = A
0061 = a
E017 = DSi Heart
Use 0000 for unfilled values if you don't want to use the full length of 29 characters.
Source (using 01230123012301230123456789905 as the Mii Name):
#Address ports
# 8074BF0C = NTSC-U
# 8075144C = PAL
# 80750AB8 = NTSC-J
# 8073F80C = NTSC-K
#Safe registers
#LR, r0, r5, r11, r12
#Start of Mii Name is at r4+0x68 (where loop writing starts at)
#Mii Name characters are halfword a piece, loop will transfer a halfword at a time
#Thus use r5 to point to r4+0x66
addi r5, r4, 0x66
#Use BL Trick to write out Mii Name
bl mii_name
.short 0x0000
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0034003500360037
.llong 0x0038003900390030
.short 0x0035
.short 0x0000
.short 0x0000
mii_name:
mflr r12
the_loop:
lhzu r11, 0x2 (r12) #Load Mii Name from BL Trick
sthu r11, 0x2 (r5) #Store Mii Name to dynamic memory
cmpwi r11, 0 #Check for null halfword (end of Mii Name)
bne+ the_loop #If NOT null, keep loop going
#Default Instruction
lwz r5, 0x0068 (r4)
Code creator: Vega
Code credits: Star (used his Mii Extender Code to help setup a Breakpoint)