ROM Hack [Tutorial] How to Decrypt, Extract & Rebuild a CIA

Status
Not open for further replies.

ForeverEternal

Well-Known Member
Member
Joined
Sep 15, 2016
Messages
173
Trophies
0
XP
233
Country
United States
Ok, I'm not sure if this is the right thread to ask.

I've successfully decrypted the eshop app and was able to extract the data with the tool.

However I cannot decrypt the DLC contents. Attached below is a log with the error.

I've also attempted to extract the contents without decrypting the file, but I get several files in the form of DecryptedApp.00XX.000000XX and I don't know what to do with them


Thanks.

EDIT: Got it, apparently it's not a good idea to decrypt DLC contents dumped from Decrypt9/CIAngel

EDIT2: Nvm although the files were decrypted successfully. I still get files like this DecryptedApp.00XX.000000XX when running the tool

EDIT3: All done, had to use ctrtool on those files.
 

Attachments

  • log.txt
    10.6 KB · Views: 328
Last edited by ForeverEternal,

Mirkobien

Member
Newcomer
Joined
Nov 1, 2016
Messages
12
Trophies
0
Age
25
XP
99
Country
Cote d'Ivoire
What could the problem be if I followed every direction but the Toolkit says that the extraction was succeeded? No new folders are made, and the program takes about half a second to show the message. Yes, I did install SetupUS
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France
Be sure to not write .cia when writting the name.
Be sure you CIA doesn't have any spaces or special characters like é or à.
Be sure to have installed the SetupXX (check your program file folder).
Check you both ProgramFiles folders (32b and 64b) and move the installed folder from one to other (don't guess it's the issue, but well).
 

Mirkobien

Member
Newcomer
Joined
Nov 1, 2016
Messages
12
Trophies
0
Age
25
XP
99
Country
Cote d'Ivoire
Be sure to not write .cia when writting the name.
Be sure you CIA doesn't have any spaces or special characters like é or à.
Be sure to have installed the SetupXX (check your program file folder).
Check you both ProgramFiles folders (32b and 64b) and move the installed folder from one to other (don't guess it's the issue, but well).

Yep, checked all of that, but my computer is a 32-Bit PC, thus I can't change folders. The .cia is called simply "rom", and I do type only the name, without the extension. As I said, I did install SteupXX (US in my case.). I have also tried inputting 'CIA', 'CE' and 'CIAE', all taking me to different commands, however, none of these work.
 

honyo29

Well-Known Member
Member
Joined
Nov 27, 2014
Messages
306
Trophies
0
XP
266
Country
Indonesia
Yep, checked all of that, but my computer is a 32-Bit PC, thus I can't change folders. The .cia is called simply "rom", and I do type only the name, without the extension. As I said, I did install SteupXX (US in my case.). I have also tried inputting 'CIA', 'CE' and 'CIAE', all taking me to different commands, however, none of these work.
similar setup and exact same problem.
could use version 4.4 no problem. but would really love the straight up build .cia feature.
if there's an alternate version where everything installed/extracted to the packhack folder (maybe sub folder) so the program just running command and tools from there just like the 4.4 version, that would be neat.
or are the newer tools just won't work with 32 bit PC?
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France
Yep, checked all of that, but my computer is a 32-Bit PC, thus I can't change folders. The .cia is called simply "rom", and I do type only the name, without the extension. As I said, I did install SteupXX (US in my case.). I have also tried inputting 'CIA', 'CE' and 'CIAE', all taking me to different commands, however, none of these work.
similar setup and exact same problem.
could use version 4.4 no problem. but would really love the straight up build .cia feature.
if there's an alternate version where everything installed/extracted to the packhack folder (maybe sub folder) so the program just running command and tools from there just like the 4.4 version, that would be neat.
or are the newer tools just won't work with 32 bit PC?

Take ctrtool.exe in the ProgramFiles folder, and copy it to where is your cia (don't move your cia itself in the ProgramFiles folder).

And run this:
Code:
"ctrtool.exe" --content=DecryptedApp NameOfFile.cia

What is wrote? Any error code?
 

Mirkobien

Member
Newcomer
Joined
Nov 1, 2016
Messages
12
Trophies
0
Age
25
XP
99
Country
Cote d'Ivoire
Take ctrtool.exe in the ProgramFiles folder, and copy it to where is your cia (don't move your cia itself in the ProgramFiles folder).

And run this:
Code:
"ctrtool.exe" --content=DecryptedApp NameOfFile.cia

What is wrote? Any error code?

Yep, apparently an error appears. It roughly translates to "Windows couldn't run this file. Make sure to know which version of Windows you're running (x86 or x64) and ask the developer for your needed version."
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France
Yep, apparently an error appears. It roughly translates to "Windows couldn't run this file. Make sure to know which version of Windows you're running (x86 or x64) and ask the developer for your needed version."
And you have a 32b computer?
Will check if I find one
 

Mirkobien

Member
Newcomer
Joined
Nov 1, 2016
Messages
12
Trophies
0
Age
25
XP
99
Country
Cote d'Ivoire
And you have a 32b computer?
Will check if I find one
Yep, it's a 32 bit OS.

XJ7xfqQ.png
 

honyo29

Well-Known Member
Member
Joined
Nov 27, 2014
Messages
306
Trophies
0
XP
266
Country
Indonesia
Apparently this is a know issue and not due to me.
Try to check to find a 32bits yourself of ctrtool (should not be that hard), I don't have time for it atm (maybe in the week if you didn't find one before).

But if @honyo29 have it working in 4.4, maybe you could post it?
And after just replace ctrtool in the programfiles folder by this one.

afaik, ctrtool never supports 32bit.
and your 4.4 hacking tool kit is just a single .exe file (beside the obvious clean.exe), pretty big though (9.6MB). i didn't notice any extracted or installed tools anywhere, it just works right away like portable app.
 

Deleted member 473940

Well-Known Member
Member
Joined
Mar 26, 2011
Messages
4,651
Trophies
0
XP
1,164
Country
United Kingdom
Not sure if I am the only one with the problem, because others seem to be doing it just fine.

After extracting the cia, using the method mentioned and using pk3ds to edit pokemon sun/moon. and then rebuilding the cia with hackingtoolkit3ds, gives a smaller sized cia(usually 7mb smaller than the original sized cia). And when I install sun/moon it shows black screen.

Extracting the cia and repacking it without changes with pk3ds makes the game load fine.

(but the thing is everyone is using pk3ds just fine? is it just me or the problems are there with pk3ds?)
@Asia81
 
Last edited by ,

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France
Well, there is nothing I can do for you.
If without any edits edits your game load fine, it's a problem with your edits.
 

valten185

New Member
Newbie
Joined
Dec 10, 2016
Messages
2
Trophies
0
Age
32
XP
41
Country
France
I modified my rom S/M with pk3ds but now I want to know how rebuild my rom and if i can use this rom with gateway (o3ds 4.2).

thanks
 

SahierKHLover

Well-Known Member
Member
Joined
Feb 9, 2016
Messages
379
Trophies
0
Age
22
Location
Guess
XP
123
Country
United States
somebody help I followed this tuTORIEL and now I can't install my cia on fbi should I just try devmenu to see if it works?
 

valten185

New Member
Newbie
Joined
Dec 10, 2016
Messages
2
Trophies
0
Age
32
XP
41
Country
France
Its possible to have more information about this tutorial because i dont understand... with HBL. Someon can explain me ? Please...
 

Uziumi

Well-Known Member
Newcomer
Joined
Apr 9, 2011
Messages
87
Trophies
1
XP
156
Country
United States
Okay. I'm not sure which one I'm doing wrong so I will be posting it both in this topic, and in the other one.
I've been trying to patch the game to have just 100% Catch Rate and Shiny that isn't Shiny-Locked in Pokémon Moon.

The 6 times I've tried in the last 4 days isn't working and here are the steps that I've tried

1. Open up Decrypt9WIP with my Moon Cartridge in the slot.

2. Dump the game as a CIA.

3. Then decrypt the CIA with CIA Decryptor (deep)

4. It says everytime that it's already decrypted and said it was successful.

5. Move the CIA onto the PC.

6. Put it into the folder of HackingToolkit3DS

7. I select CE to extract the CIA file (the tutorial said to type CIA, but it seems the newer version don't have that option)

7a. It has asked if to compress my code.bin. A few times I've said yes.
7b. It has asked if to compress my code.bin. A few times I've said no. (The step by step never said if I should say yes or no)

8. I go into the ExtractedExeFS and get the code.bin file

9. I take the code.bin, rename it moon.bin, and place it in the SuMo IPS Helper folder.

10. I take the files from the zipped patches from the patches.rar here on page 1: https://gbatemp.net/threads/batch-tool-to-generate-ips-patches-for-pkmn-su-mo.452178/

11. I take the 100%Catch.ips and AlwaysShiny.ips and place it into the SuMo IPS Helper folder with the code.bin that I've renamed moon.bin

12. Press 2 to Generate IPS Patch

13. Press 3 to Customize Patch

14. Press any button as it told me to do so.

15. Press M for Moon.

16. Say both patches were patched successfully and shows a new .bin called moon_edit.bin

17. Take the new .bin and rename it code.bin again and place it back into the ExtractedExeFS folder

18. Head back to HackingToolkid3DS and typed in RFSB

19. I selected the ExtractedRomFS folder to turn into a RomFS.bin as mentioned on page 1 of here: https://gbatemp.net/threads/tutorial-how-to-decrypt-extract-rebuild-a-cia.388677/

20. When rebuilding rom is here I've tried multiple things

20a. I've tried using just the ExtractedRomFS folder as the step by step never said if I needed to use the RomFS.bin or not.
20b. I've tried using the Rom.FS.bin instrad of the ExtractedRomFS folder
20c. I've had the program state it would be changing code.bin to .code.bin I've let it and told it to compress the code.bin. I allow it.
20d. I've had the program state that it would be changing the code.bin to .code.bin. I've let it and told it to compress the code.bin. I then rename it back to code.bin.

21. I then selected my DecryptedExHeader.bin and made sure that Media CARD2 is checked.

22. I've changed the serial to CTR-P-BNEA

23. I hit GO and let it do whatever it needs to do.

24. It makes a .3ds file that I've told it to name as PKMNMoon.3ds

25. I open up 3DS Simple Converter after placing the new .3ds file into it's roms folder.

26. I select the roms folder and made sure FW Spoof is checked.

27. I allow it to turn it back into a CIA.

28. I take the new CIA (from the different alternative routes I've taken above) and place it back into my SD card.

29. I head into FBI and then select the CIA and tell it to install.

30. CIA finally installed.

31. After heading back to the main menu, I select the new Moon that shows up.

32. Black screen forever every time I've tried.




Can someone please tell me what I'm doing wrong? Because at this point, I feel like I've tried everything.
I've even tried downloading a CIA from online and it still did the same thing. I'm not sure what to do now.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    The snack that smiles back, Ballsack!
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +1
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
    BakerMan @ BakerMan: @LeoTCK is your partner the sascrotch or smth?