Rompatcher extracts part of the NCCH header that contains that particular info used for online gaming, but it's not the exheader.
It's not related to the CIA format itself, but you can only run games from the SD if their exheaders say they are supposed to work like that. 3DS Cartridge games aren't supposed to run from the SD card.So this has nothing to do with converting to .cia format and the rsf file that you have to change to generate the file?
It's not related to the CIA format itself, but you can only run games from the SD if their exheaders say they are supposed to work like that. 3DS Cartridge games aren't supposed to run from the SD card.
That's what this tool modifies.
Also most of the RSF file regulates the exheader, so for some roms it can be very complicated.
Importing the original exheader from the retail rom automatically adds all the correct settings, overwriting any wrong values you added in the RSF.
Be it on the CFW or on Gateway's emunand, they only run if you repacked them enabling the 'UseOnSD' option.I run mine from the Gateway emunand and they run fine.
Be it on the CFW or on Gateway's emunand, they only run if you repacked them enabling the 'UseOnSD' option.
I never said this tool is the only way to do it, but it GREATLY simpifies the process.
Nicely noticed. I must've shat out that command there during frustration. Still, it does nothing at all, so it shouldn't be causing failure. Are all the other commands okay though? You may not be seeing the paths as variables, but they are working, I'm not getting any missing file errors, and at the end it does produce a .cia.WAT
Also which Playcoinsetter are you using? Does it have a logo.bin inside the exefs folder?
Relevant or not, you won't be able to launch any SDK5 game on 4.5 CFW as long as there 2.35 or higher fw kernel set in original exheader.Now regarding changing fw version requirements, I don't think it's relevant but I'll test some stuff right now.
Nicely noticed. I must've shat out that command there during frustration. Still, it does nothing at all, so it shouldn't be causing failure. Are all the other commands okay though? You may not be seeing the paths as variables, but they are working, I'm not getting any missing file errors, and at the end it does produce a .cia.
It has no logo.bin in the exefs, just an icon.bin. But really if that's not needed, I can live without it, I just want it to work.
Here's something I get when I use makerom -ccitocia however:
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
Is this correct or should I somehow be making it encrypt with a 0-key?
That could be caused by the game requesting a service that doesn't exist in fw 4.5. Changing fw version in the exheader would not fix that. But I shall test here and report the results.Relevant or not, you want be able to launch any SDK5 game on 4.5 CFW as long as there 2.35 or higher fw kernel set in original exheader.
Nicely noticed. I must've shat out that command there during frustration. Still, it does nothing at all, so it shouldn't be causing failure. Are all the other commands okay though? You may not be seeing the paths as variables, but they are working, I'm not getting any missing file errors, and at the end it does produce a .cia.
It has no logo.bin in the exefs, just an icon.bin. But really if that's not needed, I can live without it, I just want it to work.
Here's something I get when I use makerom -ccitocia however:
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
Is this correct or should I somehow be making it encrypt with a 0-key?
then you are doing it correct, the playcoinsetter doesn't have its own banner. Did you include romfs? (this is waht i forgot after a few developers apps)And yet, the compiled PlayCoinSetter with this STILL produces a package which displays "BANNER" on the top screen and crashes the console on start. I continue to be unable to repack this thing and I've been trying for a day now...
It's not related to the CIA format itself, but you can only run games from the SD if their exheaders say they are supposed to work like that. 3DS Cartridge games aren't supposed to run from the SD card.
That's what this tool modifies.
Also most of the RSF file regulates the exheader, so for some roms it can be very complicated.
Importing the original exheader from the retail rom automatically adds all the correct settings, overwriting any wrong values you added in the RSF.
I added the -logo command, it DOES extract a logo.bin, used it in makerom. The program has an ICON, but no LOGO. Okay, so maybe it doesn't have a banner. Personally I don't even know. But it continues to crash on launch. I think at this point I'm just going to give up and see if someone ever posts a working script to convert .csu to .cia for apps, because I've gotten burned out. If I can't turn a csu into a cia even with extra tools, I must be doing it wrong.
..\ctrtool --exheader extracted\exheader.bin --romfs extracted\romfs.bin --exefsdir extracted\exefs --logo extracted\logo.bin PlaycoinSetter.csu
..\makerom -f cci -target t -desc app:3 -rsf rsf.rsf -romfs extracted\romfs.bin -logo extracted\logo.bin -exheader test\exheader.bin -code extracted\exefs\code.bin -icon extracted\exefs\icon.bin -banner extracted\exefs\banner.bin -alignwr -o PlaycoinSetter.3DS
..\exinjector -rom PlaycoinSetter.3DS -exheader test\exheader.bin -sd
..\makerom -target t -ccitocia PlaycoinSetter.3DS -o PlaycoinSetter.cia
pause
I added the -logo command, it DOES extract a logo.bin, used it in makerom. The program has an ICON, but no LOGO. Okay, so maybe it doesn't have a banner. Personally I don't even know. But it continues to crash on launch. I think at this point I'm just going to give up and see if someone ever posts a working script to convert .csu to .cia for apps, because I've gotten burned out. If I can't turn a csu into a cia even with extra tools, I must be doing it wrong.
Failing to read exheader file at the exheader command... what is test\exheader? I created the folder test but it's not putting anything in it.Try this batch file to convert PlayCoinSetter.csu to cia(supposing the executables are on the parent directory)
Code:..\ctrtool --exheader extracted\exheader.bin --romfs extracted\romfs.bin --exefsdir extracted\exefs --logo extracted\logo.bin PlaycoinSetter.csu ..\makerom -f cci -target t -desc app:3 -rsf rsf.rsf -romfs extracted\romfs.bin -logo extracted\logo.bin -exheader test\exheader.bin -code extracted\exefs\code.bin -icon extracted\exefs\icon.bin -banner extracted\exefs\banner.bin -alignwr -o PlaycoinSetter.3DS ..\exinjector -rom PlaycoinSetter.3DS -exheader test\exheader.bin -sd ..\makerom -target t -ccitocia PlaycoinSetter.3DS -o PlaycoinSetter.cia pause
ah yeah, change test to 'extracted'Failing to read exheader file at the exheader command... what is test\exheader?
