1. MikaDubbz

    OP MikaDubbz GBAtemp Maniac
    Member

    Joined:
    Dec 12, 2017
    Messages:
    1,145
    Country:
    United States
    And that works when put in the .xml file? If so I'll add it to the first post.
     
  2. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
    i tried and it looks really close to the original encode
     
  3. MikaDubbz

    OP MikaDubbz GBAtemp Maniac
    Member

    Joined:
    Dec 12, 2017
    Messages:
    1,145
    Country:
    United States
    Do the newly encoded Miis appear in the plaza when you add them that way or not though?
     
  4. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
    i did a special mii and it dissapeared i yet to try a real mii
     
  5. MikaDubbz

    OP MikaDubbz GBAtemp Maniac
    Member

    Joined:
    Dec 12, 2017
    Messages:
    1,145
    Country:
    United States
    Well keep me updated. I'd love if we can add specific Miis we desire as well, but if it can't be done for whatever reason, I don't feel it's the biggest of concerns.
     
  6. GaryOderNichts

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    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.
     
    alexander1970, GABO1423 and MikaDubbz like this.
  7. GaryOderNichts

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    Country:
    Germany
    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.
     

    Attached Files:

  8. MikaDubbz

    OP MikaDubbz GBAtemp Maniac
    Member

    Joined:
    Dec 12, 2017
    Messages:
    1,145
    Country:
    United States
    Impressive! If I have some free time today, I'll give this a shot.
     
    GaryOderNichts likes this.
  9. ghostbit

    ghostbit Advanced Member
    Newcomer

    Joined:
    Jun 8, 2020
    Messages:
    53
    Country:
    United States
    good way to keep track of base64 edits and similar
     
  10. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
    so what do i have to do
     
  11. GaryOderNichts

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    Country:
    Germany
    To edit a Mii? I described the process in my post above.
     
    GABO1423 likes this.
  12. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
    im kinda an idiot when it comes to coding? could you dumb it down a bit
     
  13. GaryOderNichts

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    Country:
    Germany
    Anything specific you don't understand?
    I can create a table for the Mii structure if you want.
     
  14. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
  15. GaryOderNichts

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    Country:
    Germany
    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.
     
  16. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    Country:
    United States
    so i could just oh

    — Posts automatically merged - Please don't double post! —

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

    GaryOderNichts GBAtemp Regular
    Member

    Joined:
    Aug 9, 2018
    Messages:
    241
    Country:
    Germany
    But it shows up? Just without golden pants?
     
  18. xXGAMERHACKERXx

    Newcomer

    Joined:
    Feb 15, 2019
    Messages:
    37
    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
     
    NintnedoGuyin66 likes this.
  19. NintnedoGuyin66

    NintnedoGuyin66 Wii u/vWii fix issue Expert
    Member

    Joined:
    Jun 1, 2019
    Messages:
    198
    Country:
    United Kingdom
    this one has got it I also tested it it for USA
    or this if you find it hard
    I got two discord servers my other server it got more people
    you can contact me for help on my discord server
    https://discord.gg/jYQjqB5
     

    Attached Files:

    Last edited by NintnedoGuyin66, Jul 25, 2020
  20. JGSHEW

    JGSHEW Member
    Newcomer

    Joined:
    May 16, 2020
    Messages:
    14
    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, Jul 26, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - permanently, personality, injected