Homebrew Trying to get back in the loop but having issues.

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
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.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
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.
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. :)
 

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
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.
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?
 

vb_encryption_vb

That hardmod guy....
Member
Joined
Nov 21, 2015
Messages
1,995
Trophies
2
Age
41
Location
Acworth, GA
XP
1,947
Country
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.

You do have the cubic ninja cartridge I assume? If so you have the homebrew starter pack on there as well?
 

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
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?

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...

You do have the cubic ninja cartridge I assume? If so you have the homebrew starter pack on there as well?

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

--------------------- MERGED ---------------------------

Just use HBL (BrowserHax or what ever Exploit works for you) and load the 3dsx file

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.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country

vb_encryption_vb

That hardmod guy....
Member
Joined
Nov 21, 2015
Messages
1,995
Trophies
2
Age
41
Location
Acworth, GA
XP
1,947
Country
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.

--------------------- MERGED ---------------------------



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.
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/
 

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
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 NightsEkim,

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
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?
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.
 

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
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.

Spaces are in quotes using python 2.7 and yeah the d9 that you linked above.

Edit: Same issue without spaces :\
 

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
Ah i see the problem... using the wrong script :P
You're using ncchinfo_tgen.py when you should be using ncchinfo_gen.py :)

--------------------- MERGED ---------------------------

No love for the UI D9 version? :(

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
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
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
Weird... these python scripts need to be done away with imo. haha (i can't think of a way to replace them though)...
Investigating...

--------------------- MERGED ---------------------------

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

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
Weird... these python scripts need to be done away with imo. haha (i can't think of a way to replace them though)...
Investigating...

--------------------- MERGED ---------------------------

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

Dragging and dropping does not yield any results, cmd comes up but then goes away almost instantly, no ncchinfo file.
 
Last edited by NightsEkim,

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Dragging and dropping does not yield any results, cmd comes up but then goes away almost instantly, no ncchinfo file.
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

--------------------- MERGED ---------------------------

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

--------------------- MERGED ---------------------------

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.)
 

Attachments

  • ncchinfo_gen.zip
    1.9 MB · Views: 171

NightsEkim

Well-Known Member
OP
Member
Joined
Mar 28, 2015
Messages
166
Trophies
0
XP
316
Country
United States
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

--------------------- MERGED ---------------------------

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

--------------------- MERGED ---------------------------

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.)

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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
    Sheeba- @ Sheeba-: I can't wait to hack my 11.00 PS4 pro