I came here to N.P. to share the news, and find out Sabi96 actually figured out on his own for Pokemon X & Y and it's file format.
So I don't want to one-up him, just sharing some cool information with the community.
(This is all copied from the original thread I found here, all I did was try to origanize it here for your viewing pleasure )
As of right now, not all games are rippable because the file formats of the models haven't been figured out yet, but that change in the future.
This tutorial is the decrypt the ROM to extract the files from and then get models/textures. The original uses Super Mario 3D Land as an example to rip a Barrel model.
*Requirements (for now)*
First, you need to extract the ROMFS (ROM File System) partition of the 3DS ROM. Do NOT use 3DSExplorer, there is a bug with this software which causes it to the extract from the wrong offset, so you won't be able to decrypt correctly. Use this tool
Click and drag your ROM into getromfs.exe and it will extract the encrypted romfs for the rom as EncryptedRomFS.bin. Don't close the cmd window. It will close on its own when it's done. It will take a couple minutes.
You should now have EncryptedRomFS.bin in the same directory. The next step is to decrypt the ROMFS.
To do this, you need your 3DS to generate a XOR pad.
Note: There is a bug which means that the XOR pad is not the same size as the ROMFS file! Most XOR tools support decryption with a differently sized XOR pad, however if not, you will need to delete the end of the XOR pad until it is the same size as the EncryptedRomFS.bin file.
Now that you have your XOR pad, you can decrypt the EncryptedRomFS.bin into DecryptedRomFS.bin. For this tutorial, we will use 3DSExplorer
Go to Tools->XOR Tool
First File: CTR-P-AREP0.romfs.xorpad
Second File: EncryptedRomFS.bin
Then hit Save, and chose the name of the decrypted file.
Now you have your DecryptedRomFS.bin!
To extract files from it, we will need the 3DSHax fork of ctrtool available here:
If you don't want to compile it from source, there is a compiled version available here:
https://dl.dropboxusercontent.com/u/351 ... trtool.zip
Once extracted, use this command line to extract files from the DecryptedRomFS.bin:
Code: Select all
ctrtool.exe -t romfs --romfsdir=Mario DecryptedRomFS.bin
This will make a new directory called "Mario" where you should see more directories such as "StageData" which contains several .SZS files.
In this tutorial, I will be decompressing the file "Mario\ObjectData\Barrel.szs" but this should work for other SZS files as well.
Thankfully, 3DS SZS files are the same format as SZS files found in Wii games, and are compatible with Wii hacking tools! So, download and install this tool:
Once installed, you can use this command line:
Code: Select all
wszst DECOMPRESS Barrel.szs
Which will produce a file named Barrel.bin.
Barrel.bin is actually a .narc file, so just rename it to Barrel.narc.