[Q/Request] Moving ticket.db from LINKED emuNAND to sysNAND

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

  1. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    Myself and other GBATemp users have quite a few eShop titles that don't work inside of emuNAND due to GW mode breaking it.

    A way to remedy this would be having your emuNAND and sysNAND linked, downloading the eShop content in emuNAND, then copying the ticket.db to sysNAND.

    Would something like this be possible with a custom Launcher.dat?
     
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    Why not doing this manually maybe with ORGANIZ3D?
     
  3. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    Can that write files to NAND?
     
  4. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    I need to move files to nand/dbs.
     
  5. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
    If you intend extdata nand, yes, ORGANIZ3D can access it.
     
  6. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    Just checked. Not what I'm looking for. I suppose "root" access would be what I'm referring to.
     
  7. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    Actually, maybe not. "Database Extdata" is listed here under extdata.

    http://3dbrew.org/wiki/Extdata
     
  8. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
  9. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
  10. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    simply again, the output will be your new file.
     
  11. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    I understand what you did except for steps 9, 10, and 11. Could you write out a quick guide? I have everything setup, just need to know what to do there.
     
  12. cearp

    cearp the ticket master

    Member
    7,554
    4,817
    May 26, 2008
    Tuvalu
    extdata is only a small part of nand.
    can you access both 'nands' in your app? emunand and sysnand?

    sonic2756 - it would be very possible to do with a custom launcher.dat, i have done very similar things myself.
    but, spending some time doing something for myself is different to doing work for other people, when you do not have lots of time... :(
     
  13. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    I totally understand,

    Which is why I was going to try liomajor's idea, since it seems to be exactly what I need to do.
     
  14. cearp

    cearp the ticket master

    Member
    7,554
    4,817
    May 26, 2008
    Tuvalu
    sure, that will work! good luck :)
     
  15. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    1. I extracted my fat16 xorpad using launcher.dat from 3DS_Multi_Decryptor
    2. Dumped emuNAND.bin using emuNANDTool
    3. Extracted emunand.fat16.bin
    4. xor'ed emunand.fat16.bin
    5. Mounted emunand.fat16.bin.out with WinImage

    6. Browsed to \data\<your unique id>\sysdata\00010038
    7. Replaced 00000000 with another one i've extracted the same way that never had nnid


    6/7 whatever needs to be done ;)

    8. Renamed emunand.fat16.bin.out to test.bin

    9. xor'ed test.bin

    padxorer test.bin <name_of_fat16 xorpad>

    10. Injected test.bin.out into emunand.fat16.bin with HxD

    Opened test.bin.out that padxorer created with HxD
    Opened emunand.fat16.bin
    Switched the tab to test.bin.out and selected ALL by pressing ctrl+a, then ctrl+c to copy it
    Switched back to emunand.fat16.bin and pressed ctrl+b to overwrite everything and saved the file

    (emunand.fat16.bin is usualy bigger than the decrypted/re-encrypted, thats why i did two steps)

    11. Injected emunand.fat16.bin @ offset B930000 with HxD

    Opened emuNAND.bin and pressed ctrl+g to jump to offset B930000
    Switchet to emunand.fat16.bin and selected ALL by pressing ctrl+a, then ctrl+c to copy it
    Switched back to emuNAND.bin and pressed ctrl+b to overwrite everything and saved the file

    12. Injected my new emunand.fat16.bin into my SD Card using emuNANDTool
     
  16. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    Gettting out of memory with HxD trying to paste anything
     
  17. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    I'm on 64bit with 8GB RAM, what are your specs?
     
  18. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    I used another program and got it done. Getting a black screen when trying to boot emuNAND now.

    Ah. Issue could possibly be not having tickets for 4.x system titles or something.
     
  19. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    I was busy fixing my script, i'll try it myself.
     
  20. sonic2756
    OP

    sonic2756 Friendly Neighborhood Wolf

    Member
    666
    446
    Feb 3, 2010
    United States
    Denver, CO
    I GOT IT :DDDDDD.

    Was replacing title and ticket.db when only ticket needs to be replaced. Gonna do some more testing with my NAND modded console and finalize everything on my console without one.