ROM Hack unpack issue: CXI, CIA

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
Hey tempers and Temperesses,
here's my issue when unpacking (with HackingToolkit9DS) my backup of Pokemon UM:

-when dumped as CIA-
after i make a cia of my title, i use the tool to unpack it, it unpack everything like the decryptedromfs.bin etc, but no folders of the decrypted exefs and romfs..
What reasons could it be that i dont get those folders, only the bin files?

-when i dumped as CXI-
i use the tool to unpack the CXI, and this time it gives me everything AND the folders, as supposed to. But, i cant seem to repack it into a cia and the tool doesnt repack CXI..
How do i repack CXI?
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,288
Trophies
4
Location
Space
XP
13,846
Country
Norway
Hey tempers and Temperesses,
here's my issue when unpacking (with HackingToolkit9DS) my backup of Pokemon UM:

-when dumped as CIA-
after i make a cia of my title, i use the tool to unpack it, it unpack everything like the decryptedromfs.bin etc, but no folders of the decrypted exefs and romfs..
What reasons could it be that i dont get those folders, only the bin files?

-when i dumped as CXI-
i use the tool to unpack the CXI, and this time it gives me everything AND the folders, as supposed to. But, i cant seem to repack it into a cia and the tool doesnt repack CXI..
How do i repack CXI?
If there's only one CXI simply use makerom.exe -f cia input.cxi:0:0x00 -o output.cia (if the cxi is named input.cxi)
If there's multiple (likely since the instruction manual is a separate cxi), do this: makerom.exe -f cia input.0000.cxi:0:0x00 input.0001.cxi:1:0x01 (etc...) -o output.cia
Makerom should be included in HackingToolkit3DS somewhere, but if not you can find it online.
 

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
thanks for the reply JD!
alright thanks i'm gonna try it out right away with the commands you wrote in your post (..replacing the name input with the one of my file of course :P )

EDIT: does makerom really support cxi ? in the list of supported -f formats, it aint there.. and when i try it gives me invalid output format.. or maybe i'm too tired and i'm missing something lol.. and i dont know if it changes anything, but its an update dumped as a cxi
 
Last edited by puss2puss,

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
EDITT: i found it weird that i was able to unpack and repack everything perfectly fine with other games and sysTitles, but not this one.. so, i deleted the update from my system and then redownloaded fresh, then repacked as a cia, and now when i unpack the cia i get all the supposed folders of the bins, like its suppose to :)

Thanks for helping me though, i will see ya around the forums !
have a good one bud.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,288
Trophies
4
Location
Space
XP
13,846
Country
Norway
thanks for the reply JD!
alright thanks i'm gonna try it out right away with the commands you wrote in your post (..replacing the name input with the one of my file of course :P )

EDIT: does makerom really support cxi ? in the list of supported -f formats, it aint there.. and when i try it gives me invalid output format.. or maybe i'm too tired and i'm missing something lol.. and i dont know if it changes anything, but its an update dumped as a cxi
-f is for the output format, not input ;) It should stay as cia.
 

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
-f is for the output format, not input ;) It should stay as cia.
yeah i tried both ways, first shot was for input but i tought..maybe its for output, and it didnt give me the same error, but it didnt work..but as i said, after re-dumping it from the console, it now works..so my guess is that i made a bad dump the first time :P

now..though..when i try to repack my cia, i get a vcruntime140D.dll missing error , so i will reinstall visual studio i guess haha.. oh well, will do taht later tonight.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,288
Trophies
4
Location
Space
XP
13,846
Country
Norway
yeah i tried both ways, first shot was for input but i tought..maybe its for output, and it didnt give me the same error, but it didnt work..but as i said, after re-dumping it from the console, it now works..so my guess is that i made a bad dump the first time :P

now..though..when i try to repack my cia, i get a vcruntime140D.dll missing error , so i will reinstall visual studio i guess haha.. oh well, will do taht later tonight.
You just need the Visual C++ 2015 runtime (x86 and x64) not the whole visual studio. At least normally. But I think the "D" means it's using the debug runtime, which isn't included with the normal runtime. The author must have compiled it with the debug setting, which you should never do on binaries that will be released due to that drawback.
 
Last edited by The Real Jdbye,
  • Like
Reactions: puss2puss

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
You just need the Visual C++ 2015 runtime (x86 and x64) not the whole visual studio. At least normally. But I think the "D" means it's using the debug runtime, which isn't included with the normal runtime. The author must have compiled it with the debug setting, which you should never do on binaries that will be released due to that drawback.
ah nice! good to know.
does it really have to be 2015 or the 2017 version contains this dll anyway? i think its only in the 2015 one but i currently have the stand-alone installer for 2017 so i would save on my bandwidth if i can haha..
 

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,690
Trophies
1
Age
28
Location
Imola
XP
6,911
Country
Italy
EDIT: does makerom really support cxi ?
It can create CXIs, although it's not what you want (and is hardly the appropriate tool unless creating a title from source code and raw assets)
It certainly can package NCCHs (CXIs and/or CFAs) into cci/3ds and cia files: that's what everyone uses it for ;)
 
  • Like
Reactions: puss2puss

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
hmmm i reinstalled Microsoft Visual C++ 2015 Redistributable and still receive the error missing vcruntime140D.dll when i try to repack the CIA with HackingToolKit .. its only when i try to repack..

EDIT:
so i managed to install the specific dll file for my windows..now, it says missing ucrtbased.dll lol.. welll i guess i will install everything that it asks until it works but i dont get why i get those errors since my windows is pretty much cleaned every month..oh well

--------------------- MERGED ---------------------------

EDITT:
i installed the dlls missing.. but now, when i try to repack a CIA, it gives the error ''application was unable to start correctly (0xc000007b) ''
 
Last edited by puss2puss,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,288
Trophies
4
Location
Space
XP
13,846
Country
Norway
hmmm i reinstalled Microsoft Visual C++ 2015 Redistributable and still receive the error missing vcruntime140D.dll when i try to repack the CIA with HackingToolKit .. its only when i try to repack..

EDIT:
so i managed to install the specific dll file for my windows..now, it says missing ucrtbased.dll lol.. welll i guess i will install everything that it asks until it works but i dont get why i get those errors since my windows is pretty much cleaned every month..oh well

--------------------- MERGED ---------------------------

EDITT:
i installed the dlls missing.. but now, when i try to repack a CIA, it gives the error ''application was unable to start correctly (0xc000007b) ''
Are you on x64? You might need to be.
Or google the error message.
Also, you might not have had the latest version of makerom when you tried to pack the .cxi into .cia. There are many versions floating around since 3DSGuy quit the scene and other people picked up the pieces.
 
  • Like
Reactions: puss2puss

puss2puss

.. well ..
OP
Member
Joined
Dec 18, 2013
Messages
927
Trophies
0
Age
37
XP
835
Country
Canada
g'morning!
yeah i'm on a x64 system, but it seems taht i fixed MOST of the programs issues by downl9oading ALSO the 32bit versions of the 2015's redistributed package from M$, perhaps some of the tools uses some of the x32 modules..not sure..

And, for packing cias, it still fails with the latest version of HackingToolKit9ds (v12) but ...
it works perfect with the version 9 .

i was able to repack lots of cias and everytime, it works perfect.
Cheers.
 
Last edited by puss2puss,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    OctoAori20 @ OctoAori20: Not a lot, just relaxing