[Research] Finding the NNID without Badge Arcade

Discussion in '3DS - Homebrew Development and Emulators' started by froggestspirit, Nov 25, 2015.

  1. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    Special thanks to @Steveice10 and @MrCheeze !

    To get badges on any 9.x or 10.x console with homebrew, download this by MrCheeze
    https://dl.dropboxusercontent.com/u/183608682/give_you_this_budge.3dsx
    and run it in the homebrew channel.
    then download this by Steveice10
    https://www.dropbox.com/s/iuxn8gcmpyhh6k6/NNIDRetriever.zip?dl=0
    and run that in the homebrew channel. It should give you a NNID code (if you set up a NNID)
    jot it down.
    Next, download a BadgeMngFile.dat and a BadgeData.dat to go with it (search for @Februarysn0w 's files).
    Open the badgemngfile.dat in a hex editor, and enter your NNID in reverse at 0x1C
    (so if the program said your NNID was 0x12345678, you would enter it in the hex editor starting at address 0x1C as 78 56 34 12. Make sure you OVERWRITE the old NNID (which is februarysnow's).
    Save the file, and inject them into extdata like you would normally.

    If you have not set up an NNID, and cannot update, I'm not sure that I can help you at the time
     
    Last edited by froggestspirit, Nov 27, 2015


  2. Ridge

    Ridge The Queen Anemone

    Member
    369
    289
    Sep 10, 2015
    Norway
    Lunatea
    Oh awesome! I've been wanting to update to 10.3 for badges but been putting it off, because I keep telling myself I don't want the badges THAT much. Can't wait to see what turns out from this!
     
  3. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,641
    Jul 19, 2009
    United States
    Just yesterday, while I was poking around in Badge Arcade disassembly to figure out more of the format, I found that you can retrieve this ID from ACTU:GetAccountDataBlock using block ID 0xC. See here: http://3dbrew.org/wiki/ACTU:GetAccountDataBlock
     
    shinyquagsire23 likes this.
  4. mungry

    mungry GBAtemp Fan

    Member
    322
    289
    Jul 29, 2015
    United States
    Hopefully we can achieve this, would be great for us on 9.9!
     
  5. Filo97

    Filo97 Zelda's totally my sister! Not lying!

    Member
    3,615
    1,190
    Oct 8, 2015
    Italy
    Hyrule Castle
    even if i sm on the latest version, i hope for the solution in way that who isn't on the latest will have badges too.
     
  6. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    @Steveice10 Would you be able to do a small app that retrieves this from hax 2.5? I've never compiled homebrew for the 3DS so far. This is the only value that needs to be known to make custom badge sets from scratch I believe
     
  7. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,641
    Jul 19, 2009
    United States
    Here you go, this should get the NNID number and print it on screen. The CIA/3DS versions should have the necessary permissions, and the 3DSX version is configured to launch under eShop for act:u permissions.

    https://www.dropbox.com/s/iuxn8gcmpyhh6k6/NNIDRetriever.zip?dl=0
     
  8. cearp

    cearp the ticket master

    Member
    7,404
    4,653
    May 26, 2008
    Tuvalu
    Is this value any of the unique ids that are contained in our tickets? (We would still need to use the eshop to get a ticket though)
     
  9. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    Thank you so much @Steveice10 now we can have badges without needing the badge arcade!

    @cearp I don't think so, then again I didn't look into it
     
    cearp likes this.
  10. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    208
    May 13, 2014
    Canada
    What, has someone figured out FS:CreateExtSaveData already?
     
  11. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    Maybe I jumped the gun a bit. I figured that part wouldn't be too hard?
     
  12. sweis12

    sweis12 GBAtemp Maniac

    Member
    1,240
    512
    Oct 20, 2013
    Saint Kitts and Nevis
    Februarysn0w likes this.
  13. swaggon

    swaggon Newbie

    It would be very tedious as I've already mentioned to you in a previous thread. Working out how to create new ExtData instead of just replacing ExtData has never been done before.

    It's probably a much more difficult problem than what you're working on.
     
  14. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    I'm not an expert, but the page @MrCheeze linked to makes it look easy.

    @Steveice10 Would it be possible to get the source for your program? I'm thinking I might try to just make one that get's the value, and creates a dummy extdata for the badges with the ID injected into it (unless you know how to do that easily)
     
    Last edited by froggestspirit, Nov 26, 2015
  15. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,641
    Jul 19, 2009
    United States
    Just added the source file (main.cpp) to the release ZIP.
     
  16. froggestspirit
    OP

    froggestspirit D/P/Pt Demix Guy

    Member
    1,063
    526
    Jul 28, 2011
    United States
    thanks! I'll see what I can do with this
     
  17. Harvest God

    Harvest God Er a pixel artist?

    Member
    294
    81
    Oct 27, 2015
    United States
    How would we be able to add the mng file to our system?
     
    Last edited by Harvest God, Nov 26, 2015
  18. Damon_girl

    Damon_girl GBAtemp Advanced Fan

    Member
    886
    191
    Oct 27, 2015
    United States
    So is it possible to get badges without the arcade app or no? The thread is a bit confusing for me.
     
  19. swaggon

    swaggon Newbie

    Not at the moment, this thread is about trying to make it possible.
     
  20. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    208
    May 13, 2014
    Canada
    Alright, decided to finally get around to creating extdata a try. Got an error that translates to "Command not allowed / missing permissions?", which goes along with what this page says about certain access rights needing to be in the exheader. So it may not be possible after all, unless there's some other title that can be taken over HANS-style...

    EDIT: No wait, ignore all that, it might be wrong after all. Seems like the theme extdata specifically requires less permissions. Someone who *doesn't* have badge arcade, run this 3dsx and tell me what return value it gives and whether it creates a 000014d1 folder in Nintendo 3ds/whatever/extdata or not.
     
    Last edited by MrCheeze, Nov 26, 2015