Editing EXTDATA on emuNAND?

Discussion in '3DS - Flashcards & Custom Firmwares' started by drfsupercenter, Apr 25, 2015.

  1. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    Hi,

    So I have a fully updated emuNAND (9.7) running in rxMode right now. Since Gateway isn't updated to work with the newest emuNAND firmware yet, the only options are to run it via rxTools.

    So I know there's PlayCoinSetter as a .3ds you can run via Gateway (obviously not an option) and the various tools for NinjHax (also not an option since it won't run in emuNAND, even if it DID work on 9.7)

    I don't know of any NinjHax tools that can extract extdata from an emuNAND, only from sysNAND. So I tried what I thought to try - used rxTools to decrypt the emuNAND partitions. But inside the FAT16 folder there are just a bunch of files, no gamecoin.dat like 3DBrew mentions.

    Well, I was able to use one of the extdata extracting scripts to find the location of the file, and using a hex editor was able to edit the contents directly. Since trying to re-inject it into the FAT16 folder would cause a bunch of attributes to be written, I did some more poking around and found its actual location in the CTRNAND file directly.

    So for example, I initially decrypted my partitions with 15 play coins. Copied the files to my computer, rebooted into rxMode, shook the 3DS a bit til I had 16. Did it again. I could confirm the value 0F changed to 10 (15 to 16 in hex)

    So I tried changing it to FF and re-injecting - that simply resulted in an unbootable system (brick, basically)

    I'm assuming it has to do with some internal checksums or something that simply updating the value in gamecoin.dat won't solve.

    Are there any other ideas? I'd like to be able to get tons of play coins to play with the new Mii Plaza games, and until Gateway comes out with an update (if it ever happens) I don't know how to do it.
     
  2. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,045
    1,826
    Dec 1, 2002
    Nope. There's nothing available to you on an emuNAND without sig patches I'm afraid.

    MrCheeze's EXTDATA dump and restore tool is the best thing we have at the moment, for what you want to achieve.

    But without a way to run Ninjhax or install .cia files you can't use it.

    There's plenty of options out there, but none for free.
     
  3. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    What do you mean by sig patches? Are the .dat files signed and that's why it bricks when I try to change it?

    There was another NinjHax program that specifically updates the play coins and is a lot simpler than extdata dump, but again it only works on sysNAND. Considering rxTools launches from sysNAND and can dercypt and read data from emuNAND, I'm wondering why other stuff can't. Is it due to the permissions of ninjHax?

    What do you mean by "none for free"... are there pirates selling their work or something?
     
  4. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    210
    May 13, 2014
    Canada
    Zidapi... there's no homebrew in rxMode yet.
     
  5. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    Even if there were, you can't use ninjHax on 9.7

    MrCheeze, do you think you could code something that runs on sysNAND and can read/write data to emuNAND? Whether it be ninjHax based or ROP based, doesn't matter, I've got a 4.x console :P
     
  6. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    210
    May 13, 2014
    Canada
    That's beyond me. But the moment Roxas finishes his homebrew support, it won't matter anyway.
     
  7. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    How so? Is there an installable app (like a .cia) that can edit play coins?

    The only ones I know of at the moment are yours and other people's tools that run from inside NinjHax and the one that 3DSGuy ported from the dev tools which you need a Gateway to run. Neither would work in rxTools, as far as I know...
     
  8. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,045
    1,826
    Dec 1, 2002
    Well, option 1 is running a .3dsx via Ninjhax. Cubic Ninja is required and costs money.

    Your second option is running the devkit app playcoinsetter as a .3ds from a Gateway cartridge, or installed to emuNAND via a .cia file. Both require Gateway, which costs money.

    So if you want to modify playcoins on a 9.x system you're going to have to spend money to buy either Cubic Ninja or a Gateway.

    Hopefully I've been clearer this time :)
     
    Osmosis likes this.
  9. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    I've got both Cubic Ninja and a Gateway. But again, neither of those can help on emuNAND. Gateway would if they ever updated, but yeah.
     
  10. Ten Pound Cow

    Ten Pound Cow Advanced Member

    Newcomer
    70
    9
    Jan 23, 2015
    United States
    I don't get it. If you have Gateway, then couldn't you just install PlayCoinSetter in EmuNAND and get your coins that way? I don't understand your dilemma.
     
  11. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    Gateway does not boot 9.7 emuNAND, that's the problem. Who knows when they will finally update it to do so. I'm running in rxMode which obviously doesn't support the Gateway card. And since it's not a legit game, I can't use a Sky3DS to do it either.
     
  12. Osmosis

    Osmosis Accidents Happen. Don't be one of them.

    Member
    790
    190
    Dec 20, 2014
    United States
    Wait, you can use a Sky3DS to run a playcoinsetter? Tell me more about Sky3DS playing anything but .3DS ROM games...

    Or do you mean running CN using Sky3DS? I have ZOOT and CN on reserve on my Sky3DS.

    No, I lie. I play ZOOT, but CN is on reserve... I also used Sky3DS to update sysNAND to 9.2 using SSB 1201. My retail cart only went up to 8.1.

    It's handy having a Sky3DS...

    Now to get my old SD savedata for SSB onto my emuNAND to work... (no GW red cart.... YET)

    Rumor also has it that Roxas is working on homebrew for rxTools... making wonder why I bought a GW? But rather be safe than sorry...
     
  13. drfsupercenter
    OP

    drfsupercenter Flash Cart Aficionado

    Member
    1,900
    236
    Mar 26, 2008
    United States
    No, re-read what I said. Since it's not a legit game, I can't use the Sky3DS to do it.
    Since rxMode is essentially "classic mode", I can play other actual ROMs from the Sky3DS in it. But nothing that will edit play coin data.

    But yes, I can run CN from the Sky3DS, that's what I've been doing :P I do own a legit copy of it but it's sitting in a box somewhere and in desperation I just used the flash cart to do it.