ROM Hack [Release] ExInjector - Inject original exheaders into repacked roms

liomajor

Well-Known Member
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
Just to get this straight; your tool doesn't need any rsf changes right? Just as you stated a few pages back, correct? Also does this work for dev tools (I guess for that you'd need to implement the use of an rsf file as an extra step)

My last problem is that I get a invaild romfs message for some reason... all xorpads are in place. 7.x aswell.

It's not ment for using with own specific .rsf files and
works with topics tool to insert the real exheader, also
it would need a small change to skip decrypting

How do I know what to answer for the region lock?

"Y"es for Region Free
 

SMVB64

Now your playing with power! Super power!
Member
Joined
Feb 13, 2013
Messages
230
Trophies
1
XP
1,054
Country
Canada
you need all xorpads to get it working, example:

0004000000XXXXX0.Main.exefs_7x.xorpad <- triggers script to generate exefs.xorpad when game needs it
0004000000XXXXX0.Main.exefs_norm.xorpad <- without Main.exefs_7x.xorpad it will be exefs.xorpad
0004000000XXXXX0.Main.exheader.xorpad
0004000000XXXXX0.Main.romfs.xorpad
0004000000XXXXX0.Manual.romfs.xorpad <- triggers using Manual.cfa

If you use a different ctrKeyGen & launcher to generate
them, either rename them or use the included one.

I remade the xorpads and was able to get a .cia file without any issue. After importing it, launching the game via the home menu just shows an infinity loop of the Nintendo 3DS loading animation.
I did get this though
FykFTT6.png
Could that be the reason? also I did trim the ROM with rom-tool before hand, should I try it with the ROM untouched?
 

williamcesar2

Well-Known Member
Member
Joined
Jun 21, 2013
Messages
669
Trophies
0
Age
36
Location
New York City
XP
459
Country
United States
Thx to everyone who helped to create this.

Here is my complete batch:
https://gbatemp.net/threads/release...into-repacked-roms.373839/page-5#post-5152764

All you need is to do:

Fill slot0x25KeyX.bin with the key (not included)
Get your xorpads (you know how to do this)

Put your xorpads and .3ds into 3ds_to_cia directory,
drag n drop the 3ds @ make.bat and wait until cia is ready.

(no need to edit rsf)

To clean up, you can use clean.bat (it doesn't delete .3ds & .cia)



have you already updated your files ?

Edit: My bad , You done
 

kevin_1351

Well-Known Member
Newcomer
Joined
Apr 20, 2014
Messages
88
Trophies
0
Age
29
Location
Lugano, Switzerland
XP
497
Country
Switzerland
Here is something you can test with.


I will. Now put that in the beginning of the batch.

So the batch asks you if you want to port a game or a tool, and if it's a game it will skip to the rest of your batch.


Btw why wouldn't this be sufficient?

Code:
:Batch by Katsu
 
if "%~1" equ "" goto fail
set GameName=%~n1
 
 
set /P isdev="Do you wish to convert a DEV-TOOL/Homebrew or a game (d/g)?"
if /I "%isdev%"=="g" goto not_dev
 
copy dev-rsf.txt "%GameName%".rsf
 
tools\ctrtool --exheader=exheader.bin --romfs=romfs.bin --exefs=exefs.bin --logo=logo.bin "%GameName%".3ds
tools\ctrtool -t exefs --exefsdir=. exefs.bin --decompresscode
 
set /P continue="Do you wish to proceed with the build (y/n)?"
if /I "%continue%"=="y" tools\_makerom -f cia -rsf "%GameName%".rsf -target t -o "%GameName%".cia -icon icon.bin -banner banner.bin -code code.bin -exheader exheader.bin
 
goto end
 
:not-dev
if not exist *.xorpad goto noxorpad
 
if exist "%GameName%".cci goto finalize
if not exist banner.bin goto start
if not exist code.bin goto start
if not exist "%GameName%".rsf goto start
if not exist exefs.bin goto start
if not exist exheader.bin goto start
if not exist icon.bin goto start
if not exist logo.bin goto start
if not exist romfs.bin goto start
goto build
 
blablablabla
blablablabla
(.....)
 

piratesephiroth

I wish I could read
OP
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
Ok, tested it, stops on loading logo.

This is interesting when using rom_tool -x > [!] CCI is malformed

Maybe the src we are using is bad or its not compatible.

liomajor, adjust your build commands in the batch file... there's no need for romtool (check my example on the first post)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @The Real Jdbye, I know what it is. :creep: