Homebrew I permanently gave Wara Wara Plaza life again, injected it full of my personality, and you can too

GaryOderNichts

Well-Known Member
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,494
Country
Germany
Yeah they're just bas64 encoded bytes. It is similar to the 3ds entry structure but not the same.
Take a look here: https://github.com/devkitPro/wut/blob/master/include/nn/ffl/miidata.h
All the Mii's have a checksum at the last 2 bytes. If that checksum doesn't match the Mii the Mii won't show up.
Give me a few minutes and I may be able to create a quick checksum calculator for the structure.
 

GaryOderNichts

Well-Known Member
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,494
Country
Germany
Alright I made a quick fixer that fixes the checksum.
Sourcecode: https://garyodernichts.github.io/garyhax/docs/assets/files/plaza_fixer.c
I attached a windows build to this post.
To edit a mii you would need to
- extract the base64 string from the .xml
- convert it to bytes
- edit the structure according to https://github.com/devkitPro/wut/blob/master/include/nn/ffl/miidata.h
(Note that the variables are in bits not bytes)
- run the fixer fixer.exe bytes.bin
-
encode the data back to a base64 string and put it back in to the .xml

I haven't tried it yet but the fixer generates the same checksums that are in a valid Mii from the xml.
 

Attachments

  • fixer.zip
    82.4 KB · Views: 290
Last edited by GaryOderNichts,

MikaDubbz

Well-Known Member
OP
Member
Joined
Dec 12, 2017
Messages
3,847
Trophies
1
Age
36
XP
7,301
Country
United States
Alright I made a quick fixer that fixes the checksum.
Sourcecode: https://garyhax.tech/docs/assets/files/plaza_fixer.c
I attached a windows build to this post.
To edit a mii you would need to
- extract the base64 string from the .xml
- convert it to bytes
- edit the structure according to https://github.com/devkitPro/wut/blob/master/include/nn/ffl/miidata.h
(Note that the variables are in bits not bytes)
- run the fixer fixer.exe bytes.bin
-
encode the data back to a base64 string and put it back in to the .xml

I haven't tried it yet but the fixer generates the same checksums that are in a valid Mii from the xml.
Impressive! If I have some free time today, I'll give this a shot.
 
  • Like
Reactions: GaryOderNichts

GaryOderNichts

Well-Known Member
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,494
Country
Germany
- edit the structure according to https://github.com/devkitPro/wut/blob/master/include/nn/ffl/miidata.h
(Note that the variables are in bits not bytes)
- run the fixer fixer.exe bytes.bin

--------------------- MERGED ---------------------------

What do i do
Alright I created a table for the structure: https://garyhax.tech/docs/#/nand-files/wiiu-menu/1stnup
You need to save the bytes from the decoded base64 string into a file. (I called that file bytes.bin)
Next you open the file in a hex editor. I'm using hxd for that.
You now need to look in the table above. The variables are in bits. So 8 bits make one byte.
You now need to go into your hex editor and count the bytes and bits until the variable you want to edit is reached.
You can then use the data inspector to edit the bits. To edit the gender you would need to change the according bit to a 1 or 0.
After that you can save the file and open a cmd window. Make sure you have the fixer in the same folder as the bytes.bin.
Now enter the following command: fixer.exe bytes.bin
This will set the correct checksum for your edit.
You can now encode the file as base64 and put it back into the .xml.

Edit:
You could also extract existing Mii's from your Mii Maker save.
You would need to use this file: https://garyhax.tech/docs/#/nand-files/mii-data/ffl-odb
Then you can extract 92 bytes after the 8 byte header and paste it into a empty file. Then add 4 bytes for the checksum to it.
After you can run the fixer on that file and encode it as base64.
 

J-Lin

Well-Known Member
Member
Joined
Feb 15, 2019
Messages
136
Trophies
0
Age
25
XP
532
Country
United States
so i could just oh

--------------------- MERGED ---------------------------

thank you! but i did a golden pants mii and they dont have golden pants
 

J-Lin

Well-Known Member
Member
Joined
Feb 15, 2019
Messages
136
Trophies
0
Age
25
XP
532
Country
United States
On WaraWara Plaza yes. but when i import into mii maker it has golden pants.
Also did anyone archive the xml file with nintendo tvii
 

JGSHEW

Member
Newcomer
Joined
May 16, 2020
Messages
20
Trophies
0
Age
19
XP
284
Country
United Kingdom
Can someone help me? I deleted 1stNUP on the nand then put my version on. As you might expect, I got question marks due to the whole permissions thing. However, I've tried the chmod thing, I got on my screen "chmod returned 0x0" which I assume means success, yet I still get the question marks. Inspecting the properties of the file with ftpiiu, I can see that whenever I try to change the permissions of the file, it immediately switches back.

EDIT: Nvm, I figured it out. After running chmod, you have to run exit(), you can't just close python. I also tried with python 3 instead of 2.7, I don't know if that makes a difference though.
 
Last edited by JGSHEW,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Maximumbeans @ Maximumbeans: butte