Mii Outfit C [TheLordScruffy]
#1
Mii Outfit C [TheLordScruffy]

This code enables an extra character button already assigned to Mii Outfit C and allows it to be selected, revealing a perfectly functional Mii Outfit C once you add the models.
The content names, already completely functional but missing the files, are like the other Mii Outfits. Like mc_mii_m for a medium sized male Mii.

NTSC-U
C28235B8 00000005
3BBDFFE4 281D000D
41810018 388030C3
7C9DEC30 73A40001
41820008 3B400004
28000001 00000000
C2823BEC 00000005
3BFFFFE4 281F000D
41810018 388030C3
7C9FFC30 73E40001
41820008 3BA00004
28000001 00000000
04550E54 38600001
047DC684 3BC0001B

NTSC-J
C283D684 00000005
3BBDFFE4 281D000D
41810018 388030C3
7C9DEC30 73A40001
41820008 3B400004
28000001 00000000
C283DCB8 00000005
3BFFFFE4 281F000D
41810018 388030C3
7C9FFC30 73E40001
41820008 3BA00004
28000001 00000000
0454FA38 38600001
047E1D80 3BC0001B

PAL
C283E018 00000005
3BBDFFE4 281D000D
41810018 388030C3
7C9DEC30 73A40001
41820008 3B400004
28000001 00000000
C283E64C 00000005
3BFFFFE4 281F000D
41810018 388030C3
7C9FFC30 73E40001
41820008 3BA00004
28000001 00000000
045500B8 38600001
047E2714 3BC0001B

NTSC-K
C282C3D8 00000005
3BBDFFE4 281D000D
41810018 388030C3
7C9DEC30 73A40001
41820008 3B400004
28000001 00000000
C282CA0C 00000005
3BFFFFE4 281F000D
41810018 388030C3
7C9FFC30 73E40001
41820008 3BA00004
28000001 00000000
0453E110 38600001
047D0AD4 3BC0001B


Assembly Source:
#Mii Outfit C IDs: 0x1C, 0x1D, 0x22, 0x23, 0x28, 0x29

{
#Insert
#NTSC-U 0x808235B8
#NTSC-J: 0x8083D684
#PAL: 0x8083E018
#NTSC-K: 0x8082C3D8
#

  subi r29, r29, 0x1C
  cmplwi r29, 0xD
  bgt- end

  li r4, 0x30C3
  srw r29, r4, r29
  andi. r4, r29, 1
  beq- end

  li r26, 4
end:
  cmplwi r0, 1
}
{
#Insert
#NTSC-U: 0x80823BEC
#NTSC-J: 0x8083DCB8
#PAL: 0x8083E64C
#NTSC-K: 0x8082CA0C
#

  subi r31, r31, 0x1C
  cmplwi r31, 0xD
  bgt- end

  li r4, 0x30C3
  srw r31, r4, r31
  andi. r4, r31, 1
  beq- end

  li r29, 4
end:
  cmplwi r0, 1
}
Reply
#2
Whaaaat the craaaaap
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#3
Could you make a separate code that redirects files of Mii Outfit C to Mii Outfit B, useful for quick testing.
Reply
#4
(03-13-2020, 08:47 PM)FancyWheelies Wrote: Could you make a separate code that redirects files of Mii Outfit C to Mii Outfit B, useful for quick testing.

Mii Outfit C's resource names are in the strings at 0x8088C294 (NTSC-U)

so here's a code to replace each 'c' Mii Outfit resource with 'b' (NTSC-U once again)
0088C325 00000062
0088C331 00000062
0088C36D 00000062
0088C379 00000062
0088C3B5 00000062
0088C3C1 00000062
Reply
#5
Nice!
Reply
#6
With some other codes, do you think this could be used as a gateway to *adding* characters? Like using some code to change the resource location on the fly to effectively add a character?
Reply
#7
@lidretimlo I wouldn't say so, maybe a start at best, but we're still FAR from adding new characters.
Reply
#8
Thats a shame. I've been messing around with the stuff that has the model names (not sure what its called, its where the "mr" and "lg" stuff is in memory if that makes sense, sorry im a noob & new to mkwii modding xd) and was able to make it load, say mario on top of the mii character in a race. I figured maybe there could be a way to swap this on the fly via button click on the controller. Im thinking adding characters like ermii kart for mkds does where you use L & R to switch characters. Im thinking if i just write some sexy assembly code for this I can get a concept of this functioning maybe. Idk just some ideas. The obvious issue would be that fact it loads said model on top of the mii, so it would be the mii and say, mario.

Edit:
Im currently making an attempt to pull this off but im getting annoying invalid read write errors from dolphin when I try to read & write to the resource name locations. Could be a bad address (maybe?) but I think thats unlikely. Im wondering is that memory protected? and if so can it be un-protected?
Reply
#9
Small Male Miis crash when selecting? Tested PAL, USA and JAP
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)