Trying to get back in the loop but having issues.

Discussion in '3DS - Homebrew Development and Emulators' started by ikithme, Jan 23, 2016.

  1. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    So its been since April 2015 since I've had the desire to pull out my N3DS and do stuff with it again, and I'm trying to get back in to the loop but I'm running in to issues, probably stuff I forgot.

    My end goal right now is to get Xenoblade Chronicles in to a CIA, however a lot has changed and I'm having trouble figuring stuff out. I've tried getting decrypt9 working with the launcher hack using the old cubic ninja exploit to launch laucher.dat files, but I always get a black screen, then I see stuff about brahma and homebrew launchers and I'm just plain stuck, I have no clue where to start. I've kept reading on how to compile brahma but have had no luck with it.

    Is there any guide on how to get what I need done? I could dl a cia file as my end all, but I'd rather learn how to do it myself since I have the cart sitting in front of me and I like learning new things.
     


  2. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    The new and improved Decrypt9 is your friend! :) https://gbatemp.net/threads/download-decrypt9-wip-3dsx-launcher-dat.388831/
    If you have any issues with it please post in that thread so we can see the issue and try help. :)
     
  3. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    Actually that's the issue I'm having, I pop launcher.dat on to my SD card and I get a black screen every time after hitting QR Code on cubic ninja.

    Running N3DS 9.0 sysnand and 10.4 gateway emunand.
     
  4. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Have you updated your ninjhax to 2.5? May be the issue if you haven't. (Not sure how the current builds go with ninjhax 1.1 to be honest)
    And which QR are you referring to?
     
  5. vb_encryption_vb

    vb_encryption_vb That hardmod guy....

    Member
    1,874
    897
    Nov 21, 2015
    United States
    Acworth, GA
    You do have the cubic ninja cartridge I assume? If so you have the homebrew starter pack on there as well?
     
  6. nIxx

    nIxx GBAtemp Advanced Maniac

    Member
    1,537
    81
    Sep 30, 2007
    Gambia, The
    Germany
    Just use HBL (BrowserHax or what ever Exploit works for you) and load the 3dsx file
     
    Shadowtrance likes this.
  7. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    In CubicNinja you hit Create then hit QR code, and it exploits in to the Launcher.dat, unless I'm wrong x.x it's been so long since I've done any of this. How do I update ninjhax to 2.5...

    I have the cubicninja cart but I use it to load the gateway menu.

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

    How do I go about doing this from my current state outlined in the above posts, this I guess is where I'm getting stuck, running a NEW3DS I'm not exactly sure where to start on getting this part working.
     
  8. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Yeah that would be for the GATEWAY Launcher.dat, they're totally different. :)

    http://smealum.github.io/3ds/
    http://smealum.github.io/ninjhax2/
     
  9. vb_encryption_vb

    vb_encryption_vb That hardmod guy....

    Member
    1,874
    897
    Nov 21, 2015
    United States
    Acworth, GA
    If trying to install CFW

    https://gbatemp.net/threads/tutorial-how-to-install-a-cfw-on-a-9-0-9-2-n3ds-without-cn-oot.398394/
     
  10. Quantumcat

    Quantumcat Dead and alive

    Member
    11,120
    5,957
    Nov 23, 2014
    Australia
    Canberra, Australia
  11. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    TY Guys yall are life savers, I've forgotten so much about this stuff.
     
  12. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    I'm getting the:
    Code:
    Parsing NCSD in file "CAFE - Xenoblade Chronicles USA.3ds":
    
    Traceback (most recent call last):
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_tgen.py", line 284, in <module>
        result = parseNCSD(fh)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_tgen.py", line 138, in parseNCSD
        result = parseNCCH(fh, header.offset_sizeTable[i].offset * mediaUnitSize, i, reverseCtypeArray(header.titleId), 0)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_tgen.py", line 185, in parseNCCH
        data = data + parseNCCHSection(header, ncchSection.exheader, 0, 0, 1, tab)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_tgen.py", line 227, in parseNCCHSection
        titleId = struct.unpack('<Q',(bytearray(header.programId[:8])))[0]
    struct.error: unpack requires a string argument of length 8
    Issue, I'm using the newest script that came with decrypt9 unless theres a newer one out there I'm supposed to use?
     
    Last edited by ikithme, Jan 23, 2016
  13. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    1. Spaces are bad. Unless surrounded by quotes i guess :P
    2. What python version are you using? And which D9 version? I'm guessing one of the versions from the link i posted earlier.
     
  14. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    Spaces are in quotes using python 2.7 and yeah the d9 that you linked above.

    Edit: Same issue without spaces :\
     
  15. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Ah i see the problem... using the wrong script :P
    You're using ncchinfo_tgen.py when you should be using ncchinfo_gen.py :)

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

    No love for the UI D9 version? :(
     
  16. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    Code:
    ncchinfo_gen.py cafe.3ds
    
    Parsing NCSD in file "cafe.3ds":
      Parsing Main NCCH
        NCCH Offset: 00004000
        Product code: KTR-P-CAFE
        Partition number: 0
        KeyY: 18EB339D74ACC1CF27A228D116890B11
        Title ID: 000400000F700100
        Format version: 2
        Uses 7.x NCCH crypto
    
    Traceback (most recent call last):
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_gen.py", line 284, in <module>
        result = parseNCSD(fh)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_gen.py", line 138, in parseNCSD
        result = parseNCCH(fh, header.offset_sizeTable[i].offset * mediaUnitSize, i, reverseCtypeArray(header.titleId), 0)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_gen.py", line 185, in parseNCCH
        data = data + parseNCCHSection(header, ncchSection.exheader, 0, 0, 1, tab)
      File "D:\Users\mearle\Downloads\Compressed\Decrypt9WIP-20160118-224111\scripts\ncchinfo_gen.py", line 227, in parseNCCHSection
        titleId = struct.unpack('<Q',(bytearray(header.programId[:8])))[0]
    struct.error: unpack requires a string argument of length 8
    Same output from non tgen
     
  17. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Weird... these python scripts need to be done away with imo. haha (i can't think of a way to replace them though)...
    Investigating...

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

    Just as a test, try just drag n drop the game onto the script and see what happens, rather than running from cmd.
     
  18. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    Dragging and dropping does not yield any results, cmd comes up but then goes away almost instantly, no ncchinfo file.
     
    Last edited by ikithme, Jan 23, 2016
  19. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    I've had this problem before a long while ago and i can't for the life of me remember what the hell the problem was... argh!
    I just tested the script myself (with the same game but EUR version) no issue. hmm

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

    Are you sure the backup is good? (process of elimination time)...

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

    Something else worth trying (i guess) is this.... the script converted to exe with py2exe so everything it needs is self contained. (it's not malicious, i swear.)
     

    Attached Files:

  20. ikithme
    OP

    ikithme Advanced Member

    Newcomer
    60
    9
    Mar 28, 2015
    United States
    Backup is good, able to load the 3ds file from gateway and it launches with no errors.

    I tried your zip file however I cannot extract it, gives me an error. :\ Not sure why.