Hi, I've succesfully installed Palantine's CFW, and I have a few games there, but I want to be able to convert some games to CIA.
My windows machine olny has 2g of ram, and swapping on windows looks like the memory graph is having a spasm attack, taking ages to convert.
So, on my linux laptop, with 2g of ram, and 4g of actually working swap space, I want to be able to convert my games.
The first steps are very straight-forward, use 3DS_Multi_Decryptor to get dem xorpads, but after that, the information on how to convert is spread all over the internet and I can't find a simple document stating which tools I need, and how to use them, so I set out on an expedition by myself.
I've installed devkitARM, makerom and ctrtool (from this Project_CTR, and patched a file documented here), added them to my path and set the correct variables, but that's not what's wrong.
I've created a tools directory, containing some files from Queno138's pack (rsfgen.py, rom.rsf), rom_tool.exe downloaded from the original thread, ExInjector.exe downloaded from the original thread, slot0x25KeyxX.bin, padxorer compiled from this pastebin).
This document documents the steps I've taken to convert a .3ds to .cia, I've tried both Animal Crossing and Kid Icarus:
I've studied Queno138's "build and make.bat" to create this document.
This looks right to me, but whenever I boot the game on CFW, it's stuck on the 3DS logo.
Am I missing something?
My windows machine olny has 2g of ram, and swapping on windows looks like the memory graph is having a spasm attack, taking ages to convert.
So, on my linux laptop, with 2g of ram, and 4g of actually working swap space, I want to be able to convert my games.
The first steps are very straight-forward, use 3DS_Multi_Decryptor to get dem xorpads, but after that, the information on how to convert is spread all over the internet and I can't find a simple document stating which tools I need, and how to use them, so I set out on an expedition by myself.
I've installed devkitARM, makerom and ctrtool (from this Project_CTR, and patched a file documented here), added them to my path and set the correct variables, but that's not what's wrong.
I've created a tools directory, containing some files from Queno138's pack (rsfgen.py, rom.rsf), rom_tool.exe downloaded from the original thread, ExInjector.exe downloaded from the original thread, slot0x25KeyxX.bin, padxorer compiled from this pastebin).
This document documents the steps I've taken to convert a .3ds to .cia, I've tried both Animal Crossing and Kid Icarus:
# Extract encrypted contents
ctrtool -p --exheader=exheader.bin --romfs=romfs.bin --exefs=exefs.bin game.3ds
# Use padxorer to decrypt the contents of this, using the xorpads
# Everything from now on needs the decrypted stuff, you can delete the encrypted files and rename the decrypted ones
padxorer part.bin pad.xorpad
# Extract exefs to obtain icon and banner
ctrtool --exefsdir=exefs --decompresscode -t exefs exefs.bin
# For manual/download play, use rom_tool to create manual.cfa and dlp.cfa
# Apparently rom_tool does not work natively on linux
wine rom_tool.exe --extract=. game.3ds
# This outputs appdata and updatedata too, just remove it
# Create rsf file
cp dummy.rsf game.rsf
python2 rsfgen.py game
# Create cxi
makerom -f cxi -o game.cxi -target t -desc app:5 -rsf game.rsf -icon icon.bin -banner banner.bin -exefslogo -code code.bin -exheader exheader.bin -romfs romfs.bin
# Inject original exheaders
wine ExInjector.exe -rom game.cxi -exheader exheader.bin -sd
# Create CIA
makerom -f cia -o game.cia -content game.cxi:0:0 -content manual.cfa:1:1
I've studied Queno138's "build and make.bat" to create this document.
This looks right to me, but whenever I boot the game on CFW, it's stuck on the 3DS logo.
Am I missing something?