Homebrew WIP 4NXCI Open-Source *.XCI to *.NSP Converter

Status
Not open for further replies.

OperationNT

Well-Known Member
Member
Joined
May 1, 2016
Messages
353
Trophies
0
Age
39
XP
2,178
Country
France
It seems that it fails when the XCI contains an NCA file which exceeds 4 GB (Dragon Quest Builder worked, BotW failed, Disgaea 5 failed). When it fails, I get an error "Failed to read file!" after the big NCA patching step.

But in the end, I didn't manage to install the NSP I got: with DevMenu, it stops at the end and TinFoil says it cannot find an entrypoint at the begining.
 
  • Like
Reactions: Pluupy and peteruk

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
750
Country
United States
It seems that it fails when the XCI contains an NCA file which exceeds 4 GB (Dragon Quest Builder worked, BotW failed, Disgaea 5 failed). When it fails, I get an error "Failed to read file!" after the big NCA patching step.

But in the end, I didn't manage to install the NSP I got: with DevMenu, it stops at the end and TinFoil says it cannot find an entrypoint at the begining.
I think the ticket isn't being generated correctly, but also did you try changing the dev flag for the ticket as I suggested a few posts ago?
 
  • Like
Reactions: peteruk

D4rkelton

New Member
Newbie
Joined
Jun 16, 2017
Messages
3
Trophies
0
Age
26
XP
80
Country
Germany
Seems to only work on games with smaller filesizes. The Binding of Isaac (1.5 GB) was converted sucessfully, while bigger games stopped after creating an NCA. Also is it normal that the games shrink to like 1/3 of their filesizes? TBOI ended up with 580 MB.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,446
Country
United Kingdom
Was really happy to see this tool earlier today, thanks to the author! Hopefully you'll figure out why it doesn't work for some games.
Worked perfectly with the first game I tried tho, Flashback. There's a snipli link called flashback if anyone's interested.
 

XC-3730C

Well-Known Member
Member
Joined
May 10, 2014
Messages
732
Trophies
0
Age
47
XP
1,475
Country
United States
Was really happy to see this tool earlier today, thanks to the author! Hopefully you'll figure out why it doesn't work for some games.
Worked perfectly with the first game I tried tho, Flashback. There's a snipli link called flashback if anyone's interested.
I'm interested. Flashback and Wild Guns is what I wanna convert to NSP

Sent from my SM-G955U using Tapatalk
 

Vorde

Well-Known Member
Member
Joined
Jul 8, 2015
Messages
497
Trophies
0
Age
35
XP
1,539
Country
Canada
Seems to only work on games with smaller filesizes. The Binding of Isaac (1.5 GB) was converted sucessfully, while bigger games stopped after creating an NCA. Also is it normal that the games shrink to like 1/3 of their filesizes? TBOI ended up with 580 MB.
I believe that the XCI files are an exact 1:1 image of the dumped ROM, so any padding added to the game to fill up the whole chip would likely be on there. When converted to an NSP, it's likely removing said padding. This is speculation though, while I don't know enough about it to know 100% Also I'm hoping it works with larger games, as I'm needing to get this done for Odyssey
 

ScarletDreamz

[Debug Mode]
Member
Joined
Feb 16, 2015
Messages
3,967
Trophies
1
Location
/dev/sda1
XP
4,380
Country
United States
All saves and data associated with games are stored on your switch and sent to nintendo when playing online, using eShop, etc.
An emuNAND would be a different storage this data is written to and if you never connect online with that one, no data should tell nintendo that you use a softmod to do whatever you like.
You do know that an emunand, its an exact copy of your NAND? if by some reason you got banned on emunand, you will get banned on your nand. most likely.
 
D

Deleted User

Guest
You do know that an emunand, its an exact copy of your NAND? if by some reason you got banned on emunand, you will get banned on your nand. most likely.
Yes, but If, say something goes wrong you can isolate your emunand to being offline only, thus saving any potential ban.

Then with your "clean" sysnand, you can go online, as your emunand was offline and error reporting was impossible.
 
  • Like
Reactions: Wuigi and Pluupy

Nazosan

Well-Known Member
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,090
Country
United States
Because homebrew is prone to corrupting the SD card when using exFAT due to its lack of file jounaling support. That's why RetroNX heavily recommends against it and lakka basically doesn't support it.
FAT32 lacks journalization -- in fact, since it's just a very basic extension of FAT16 which in turn is an extension of FAT12 it actually predates journalization -- and is even less robust than exFAT. exFAT is a more modern OS designed with removable media in mind so is actually more tolerant overall. FAT32 also has more limitations on file structures and etc, though that probably won't come into play here. It's still not journalized, but it's the best you're ever going to get on the Switch as I don't think they'll ever do anything like NTFS (which is really horrible for removable media.) Actually, this may all be on purpose. Journalization has advantages in general but is actually often a bad idea for things like this for quite a number of reasons (data alignment, more frequent writes stressing the cells more, more overhead for the OS and reduced performance overall where bandwidth is limited as it is here, and so on.)

The ONLY reason you'd want splitting is if you don't have the exFAT "update" (really just enabling a built-in support via license.) I don't know if there is an easier way to modify your system to enable exFAT than the guide I originally read but it definitely requires a few hoops to jump through. Most people will just tell you "go ahead and update," but some people want to hold out on older firmwares in the hopes that someday a MenuHax or similar sort of thing will happen (though it may be that the thing that you'd most likely use for a software implementation is probably still about as many hoops to jump through as RCM is anyway.) So basically that is the only reason at all anyone could have to want to not do exFAT. (But even then, like I said, there is a non-update method of getting that license activated, it just isn't easy.)

Actually, other than the splitting XCI actually is more disadvantageous than anything else. It's only supported in one thing at this time and would always require you to go through a special loader instead of just simply selecting a game from your home screen. Presumably someday Nintendo will get around to implementing some basic organization like the folders and icon resizing and etc the 3DS does too, but XCIs will always have to be managed by the loader (and in my experience with the 3DS at least it seems like the coders doing loader for that sort of thing apparently couldn't care less if they make it painful for the user. At least it's not as bad as Sky3DS's method though I guess.) Not to mention the fact that was already brought up before that XCI only works in one commercial implementation of questionable ethics (yeah, I know, "honor among thieves" and all, but IMO they have crossed several lines that are just not good for the scene at all) whereas NSP works not only in that but in everything else too (including just a very basic sigpatched stock OS without even a CFW once the NSP is actually installed.)

give me the name of xcis that don't convert to nsp
btw failure of converting multi rev cards is a known issue
ps: enc_header_key is not important, just remove it from your keyset file
I'm trying to convert PriPara (プリパラ.)
 
Last edited by Nazosan,

sj33

Well-Known Member
Member
Joined
Oct 22, 2013
Messages
4,072
Trophies
2
XP
4,728
Country
Japan
^The main reason for people sticking with FAT32 right now is file corruption caused by exFAT when using homebrew. It is most notable when using RetroNX or Lakka, neither of which are going to officially support exFAT anytime soon.
 

peteruk

Well-Known Member
Member
Joined
Jun 26, 2015
Messages
3,003
Trophies
2
XP
7,345
Country
United Kingdom
They posted a few pages back asking what games aren't working

ah right, I didn't realise that was the dev - thanks for that

pretty sure I replied to them

it's a useful app for games which didn't get a digital release OR keys are currently unknown for, fingers crossed they're able to bring a fix for us
 

Dean_

Well-Known Member
Member
Joined
Sep 11, 2014
Messages
684
Trophies
0
XP
712
Country
I found out some games which are relatively larger (>4GB maybe?) cannot be converted using the provided binary (x86). But those can be converted using linux binary (posted on issues @ github). Maybe x86-related problem..
 

tiliarou

Well-Known Member
Member
Joined
Feb 4, 2018
Messages
163
Trophies
0
XP
592
Country
France
I found out some games which are relatively larger (>4GB maybe?) cannot be converted using the provided binary (x86). But those can be converted using linux binary (posted on issues @ github). Maybe x86-related problem..
Interesting findings. Did you post on the github as well in the issue mentioning large files ?
 

peteruk

Well-Known Member
Member
Joined
Jun 26, 2015
Messages
3,003
Trophies
2
XP
7,345
Country
United Kingdom
Interesting findings. Did you post on the github as well in the issue mentioning large files ?


Looks like someone else already has

o9n5zl.png
 

Wierd_w

Well-Known Member
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
Sounds like an "out of memory" problem on 32bit hardware. (CPU cannot address more than 4gb of total address space, and so cannot handle that much data in memory all at once.)

Sounds like the author needs to either 1) read in smaller chunks, and process those sequentially or 2) Make 64bit a requirement, and state how much RAM you will need.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission