ROM Hack [Tutorial] How to Decrypt, Extract & Rebuild 3DS|CIA|CXI Files

  • Thread starter Thread starter Asia81
  • Start date Start date
  • Views Views 1,613,604
  • Replies Replies 1,756
  • Likes Likes 97

How is my english?

  • So bad...

    Votes: 71 7.5%
  • Good, sometimes it's not understandable

    Votes: 142 15.0%
  • Very understandable

    Votes: 569 60.2%
  • Perfect?

    Votes: 163 17.2%

  • Total voters
    945
I cannot seem to get this to Rebuild the CIA.

It will extract it just fine, but when I run "CR" I am hit with 2 Errors of Missing .dll files

UCRTBASED.dll and VCRUNTIME140D.dll
Has anyone experienced this?

I am deep in the trenches, I have downloaded so many different plugins and softwares. I originally made my own converted 3dsx file to CXI using CXItool and it worked for this, But the CIA does not have banner, or custom icon.

SO i thought that was going to be the hard part.

I used 3dsBannerMaker to get my icon.bin and banner.bin But that is as far as I got. I cannot seem get humpty dumpty back together again.
Since it was a 3dsx file MakeROM the other compiler does not seem to work for this.

Anyone have any ideas?
Did you ever figure this out? I'm having the exact same issue. I downloaded them but I don't know where to place them. Some tutorials said to throw them into System32 but doing that just gives me a "0xc000007b error" when I try to rebuild the cia.
 
  • Like
Reactions: PandaPandel
Try this: https://gbatemp.net/threads/gabrieloromtoolsgui.517483/

i ditched HackingToolkit9DS because clearly doesn't work properly.
I couldn't get this to work for me either unfortunately.

Honestly at this point I've lost my mind. I've been on GBATemp for quite literally nearly a week trying to find a solution & I'm just about ready to quit.

What I'm looking to do:
I have 2 .cia files I'd like to replace the banner for. One of them I'd also like to change the sound of the banner as well. Neither are official titles, they're both homebrew ports I found on hshop or Universal Updater (Super Mario 64 Render 96, & Super Luigi 64), I can't remember which.

I have the 256x128.png files needed for the banners I want (see attached). I have the .bcwav file for the audio I want on the Luigi file. I have the 2 decrypted .cia files.

But I just cannot, cannot, cannot figure out how to put it all together. I have tried 3DS Banner Maker, I have tried Hackingtoolkit9DS, I have tried ba-GUI-nnertool, I have tried GabrieloRomToolsGUI, I have tried CTRtools.exe, I have tried makerom.exe, I have tried New Super Ultimate Injector 3DS.

I am tired.

If someone would be willing to put it all together for me at this point, I'd happily send you all the files I have.

EDIT:
So I just tried using DotNet.3DSToolKit & during my extraction of the .cia files, I got this error. If someone more knowledgeable than me when it comes to computers (I know basically nothing) could please take a look, I'd appreciate it.

Exception Details:
System.IO.FileNotFoundException: Could not find file 'C:\Users\ashis\Downloads\Video Games\3DS\Banner Editor\DotNet3DSToolkit\Luigi\ExeFS\banner.bnr'.
File name: 'C:\Users\ashis\Downloads\Video Games\3DS\Banner Editor\DotNet3DSToolkit\Luigi\ExeFS\banner.bnr'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
at DotNet3dsToolkit.Converter._Closure$__62-0.VB$StateMachine___Lambda$__0.MoveNext() in D:\TeamCity\buildAgent\work\c024c1966f7da4c7\DotNet3dsToolkit\Converter.vb:line 242
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at DotNet3dsToolkit.Converter.VB$StateMachine_62_ExtractPartition0.MoveNext() in D:\TeamCity\buildAgent\work\c024c1966f7da4c7\DotNet3dsToolkit\Converter.vb:line 256
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DotNet3dsToolkit.Converter.VB$StateMachine_82_ExtractCIA.MoveNext() in D:\TeamCity\buildAgent\work\c024c1966f7da4c7\DotNet3dsToolkit\Converter.vb:line 530
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DotNet3dsToolkit.Converter.VB$StateMachine_81_ExtractCIA.MoveNext() in D:\TeamCity\buildAgent\work\c024c1966f7da4c7\DotNet3dsToolkit\Converter.vb:line 508
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ToolkitForm.Form1.VB$StateMachine_23_btnExtract_Click.MoveNext() in D:\TeamCity\buildAgent\work\c024c1966f7da4c7\ToolkitForm\Form1.vb:line 147
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

Loaded Assemblies:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll

ToolkitForm, Version=1.4.6.18, Culture=neutral, PublicKeyToken=null
C:\Users\ashis\Downloads\Video Games\3DS\Banner Editor\DotNet3DSToolkit\ToolkitForm.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

DotNet3dsToolkit, Version=1.4.6.18, Culture=neutral, PublicKeyToken=null
C:\Users\ashis\Downloads\Video Games\3DS\Banner Editor\DotNet3DSToolkit\DotNet3dsToolkit.dll

SkyEditor.Core, Version=4.0.7.1, Culture=neutral, PublicKeyToken=null
C:\Users\ashis\Downloads\Video Games\3DS\Banner Editor\DotNet3DSToolkit\SkyEditor.Core.dll

System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

--------------------
User Message:
An unhandled exception has occurred.
You can continue running the program, but please report this error.
 

Attachments

  • luigi 256.png
    luigi 256.png
    39.6 KB · Views: 68
  • render 256.png
    render 256.png
    48.1 KB · Views: 74
Last edited by sasook,
I used HackingToolkit9DS to extract code.bin from a 3DS file. Please tell me how to reflect the modified code.bin in the 3DS file.
Post automatically merged:

I used HackingToolkit9DS to extract code.bin from a 3DS file. Please tell me how to reflect the modified code.bin in the 3DS file.
 
How can I rebuild using extracted folders instead of CIA files? I have extracted the whole game to test/apply patches and now want to turn it back into a game rom, but can't.
I managed to patch files using Kuriimu2, but can't add files new with it, only replace, then I'm in need of a form to rebuild folders into a rom.
 
How can I rebuild using extracted folders instead of CIA files? I have extracted the whole game to test/apply patches and now want to turn it back into a game rom, but can't.
I managed to patch files using Kuriimu2, but can't add files new with it, only replace, then I'm in need of a form to rebuild folders into a rom.
why do you need to do this? is it to put on a 3DS or play on emulator? Because distributing roms (even modded ones) is illegal ;)
 
why do you need to do this? is it to put on a 3DS or play on emulator? Because distributing roms (even modded ones) is illegal ;)
To play Pictlogica Final Fantasy in English on hardware. And what I can find on how to do this asks for .3ds, .cia, or what, .cxi?? Believe that's correct from memory. All I can find on my 3DS is a .app and .tmd
 
are there any requirements i need to use this program? i can unpack a cia but it wont rebuild. it errors out
with: ucrtbased.dll and VCRUNTIME140D.dll not found. or is there an alternative?
 
are there any requirements i need to use this program? i can unpack a cia but it wont rebuild. it errors out
with: ucrtbased.dll and VCRUNTIME140D.dll not found. or is there an alternative?
Download them and add them to the program files folder where the install is. It’ll fix the issue
 
are there any requirements i need to use this program? i can unpack a cia but it wont rebuild. it errors out
with: ucrtbased.dll and VCRUNTIME140D.dll not found. or is there an alternative?
This was an issue for me as well, never could figure it out.
 
THIS IS FOR ANYONE RUNNING INTO ISSUES WITH HackingToolkit9ds NOT REBUILDING PROPERLY (vcruntime errors. etc)
============================================================================================


1. Go here and download the "makerom.exe" that the amazing 3DSGuy put together!
2. Once downloaded, go to your HackingToolkit9ds install folder and REPLACE the "makerom.exe" there with the one you just downloaded.
3. Now you should be able to rebuild CIA and 3DS files properly (though I haven't tested thoroughly with 3DS filetype)

This works better than any other extraction/rebuilding programs I've tried, it just needs that updated EXE file!

Thank you to 3DSGuy/ProjectCTR for doing the legwork and fixing the rebuilder part of the software. I'm just spreading the word to try and save people a headache!
 
Last edited by xxxxnoodlexxxx,

Site & Scene News

Popular threads in this forum