ROM Hack [Release] CIA Video Injection

KapuDaKoopa

That One Splatoon Dataminer
Member
Joined
Mar 12, 2016
Messages
474
Trophies
0
XP
984
Country
United States
woah, @TheGreek Boy how did you get banners and stuff working? What programs did you use? I am using 3DS Banner Maker and it is not working
I think I know why

The banners that that tool makes are corrupt, so what I've done is a bit complicated

I make a short video in the old Video Channel Maker with the banner and icon I want, and then I use PackHack to extract the files from that CIA, and then I put the banner.bin and icon.bin in the folder, and it seems to work.
 
  • Like
Reactions: OldGlass

OldGlass

Well-Known Member
Member
Joined
Feb 9, 2016
Messages
247
Trophies
0
Age
30
XP
150
Country
United States
I think I know why

The banners that that tool makes are corrupt, so what I've done is a bit complicated

I make a short video in the old Video Channel Maker with the banner and icon I want, and then I use PackHack to extract the files from that CIA, and then I put the banner.bin and icon.bin in the folder, and it seems to work.

x.x that sounds sooo confusing.

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

how did you even get the icon/banner.bin without the banner maker?

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

if you used BannerTool, do you know any guide that teaches you how to use it?
 

TheGreek Boy

Well-Known Member
OP
Member
Joined
Jan 9, 2016
Messages
1,241
Trophies
0
Location
Behind you.
Website
www.youtube.com
XP
1,606
Country
Greece
this doesn't work at all for me. no matter what, it always ends up using the drunken coders banner and icons :C
guys you don't need to open the gu, follow my steps

1)Download this HERE
2)Extract the "3DS Banner Maker 2.0"folder
3)Create a .png in 256x128 size and rename it to"256x128" and move it to "3DS Banner Maker 2.0\cbmd_bannerImage" (this is the banner image)
4)Now run the "banner.py" inside"3DS Banner Maker 2.0\cbmd_bannerImage" folder
5)Create a .png in 48x48 size and rename it to "icon" and move it to "3DS Banner Maker 2.0\ctpk_48x48icon" (this is the homemenu large icon)
6)Now run the "icon.py" inside"3DS Banner Maker 2.0\ctpk_48x48icon" folder
7)Create a .png in 24x24 size and rename it to "icon" and move it to "3DS Banner Maker 2.0\ctpk_24x24icon" (this is the homemenu small icon)
8)Now run the "icon.py" inside"3DS Banner Maker 2.0\ctpk_24x24icon" folder
9)Open the "AppData.txt" in "3DS Banner Maker 2.0" folder and edit the "longtitle,shorttitle and publisher" and save it
10)Now run the "_buildscript.py" inside the "3DS Banner Maker 2.0" folder
11)Now you have "banner.bnr" and "icon.bnr" rename the "banner.bnr" to "banner.bin" and "icon.bnr" to "icon.bin"

i hope this help you guys!
 
  • Like
Reactions: OldGlass

OldGlass

Well-Known Member
Member
Joined
Feb 9, 2016
Messages
247
Trophies
0
Age
30
XP
150
Country
United States
probably the wrong way to do things, but this is what I did to get the banner.

use ihaveamac's videoinjection tool because if you put in a banner.png and icon.png, it converts it to banner/icon.bin.
after that, i extracted the CIA with Asia81's PackHack, grabbed the Banner.bin/icon.bin created with videoinjection and use it with this tool because I always get an error every time I use a CIA created by videoinjection
 
Last edited by OldGlass,
  • Like
Reactions: PandaPandel

Mr.ButtButt

The Cancer Of Gbatemp <3
Member
Joined
Sep 22, 2015
Messages
1,465
Trophies
0
XP
893
Country
United States
guys you don't need to open the gu, follow my steps

1)Download this HERE
2)Extract the "3DS Banner Maker 2.0"folder
3)Create a .png in 256x128 size and rename it to"256x128" and move it to "3DS Banner Maker 2.0\cbmd_bannerImage" (this is the banner image)
4)Now run the "banner.py" inside"3DS Banner Maker 2.0\cbmd_bannerImage" folder
5)Create a .png in 48x48 size and rename it to "icon" and move it to "3DS Banner Maker 2.0\ctpk_48x48icon" (this is the homemenu large icon)
6)Now run the "icon.py" inside"3DS Banner Maker 2.0\ctpk_48x48icon" folder
7)Create a .png in 24x24 size and rename it to "icon" and move it to "3DS Banner Maker 2.0\ctpk_24x24icon" (this is the homemenu small icon)
8)Now run the "icon.py" inside"3DS Banner Maker 2.0\ctpk_24x24icon" folder
9)Open the "AppData.txt" in "3DS Banner Maker 2.0" folder and edit the "longtitle,shorttitle and publisher" and save it
10)Now run the "_buildscript.py" inside the "3DS Banner Maker 2.0" folder
11)Now you have "banner.bnr" and "icon.bnr" rename the "banner.bnr" to "banner.bin" and "icon.bnr" to "icon.bin"

i hope this help you guys!
i did exactly what you said, and when i install the game, it just has your god of war banner and icon
 

caitsith2

Well-Known Member
Member
Joined
Jan 16, 2004
Messages
350
Trophies
2
Age
43
Location
a secret location 93 million miles from the sun
Website
www.caitsith2.com
XP
2,476
Country
Canada
Made a few bug fixes to the batch file. The file assumed the cia filename was "video.cia", due to one line being hard-coded to video\decrypted, rather than to "%GameName%\decrypted".

Also, in the case where you don't supply your own banner/icon/logo, there is no longer a "cannot find file message showing."

Finally, the prompts about editing have been tweaked slightly, with the press any key happening after the final file bit.

Code:
@setlocal enableextensions enabledelayedexpansion
@echo off

Title Inject Moflex Video In CIA

set path=
set path=c:\python27;c:\python;c:\windows;c:\windows\system32;C:\Windows\SysWOW64

set ciarepack=no
set skipxorpads=no
set str1=%1
set GameName=%~n1
if "%~1" equ "" goto fail

:precheck
color c
if not exist tools\ goto notools
if not exist tools\rsfgen.py goto notools
if not exist tools\ctrtool.exe goto notools
if not exist tools\rom_tool.exe goto notools
if not exist tools\_makerom.exe goto notools
if not exist tools\padxorer.exe goto notools
if not exist tools\mex.py goto notools
if not exist tools\ExInjector.exe goto notools
if not exist tools\sample-rsf.txt goto notools
if not exist tools\rom.rsf goto notools

if exist "%GameName%\romfs.bin" goto folder
if exist "%GameName%" goto duplicate
if exist "%GameName%".cia goto decrypt_cia
if not x%str1:modified=%==x%str1% goto decrypt_3ds
if not exist *.xorpad goto noxorpad
if exist "%GameName%".3dz ren "%GameName%".3dz "%GameName%".3ds
if not exist "%GameName%".3ds goto no3ds
cls

:reset
set RRL=no
set uor=no
set uar=yes
set uoe=yes
set fst4=no
set manual=no
set dlp=no
set reb3=no
set eromfs=yes
set arsf==notused
set checkautorsf=no
set keepdecrypt=no

:start
cls
color a
echo ##################################################
echo #  Inject Moflex Video In CIA  #  
echo ##################################################
echo.
if not exist "%gamename%\decrypted\manual.cfa" if not exist *Manual.romfs.xorpad echo  (1) Remove Region Lock  : %RRL%
if exist *Manual.romfs.xorpad set manual=yes & echo  (1) Remove Region Lock  : %RRL%  *Manual detected*
if exist "%gamename%\decrypted\manual.cfa" set manual=yes & echo  (1) Remove Region Lock  : %RRL%  *Manual detected*
if not exist *DownloadPlay.romfs.xorpad echo  (2) Use own RSF  : %uor%
if exist *DownloadPlay.romfs.xorpad set dlp=yes & echo  (2) Use own RSF  : %uor%  *DLP detected*
if exist "%gamename%\decrypted\dlp.cfa" set dlp=yes & echo  (2) Use own RSF  : %uor%  *DLP detected*
echo  (3) Use auto RSF  : %uar%
echo  (4) Use Original EXHEADER (CIA) : %uoe%
echo  (5) Firmware Spoof to 4.x  : %fst4%
echo  (6) Rebuild 3DS + Orig.EXHEADER : %reb3%
echo  (7) Extract ROMFS for changes  : %eromfs%
echo  (8) Check auto RSF before start : %checkautorsf%
echo  (9) Keep decrypted folder  : %keepdecrypt%
echo.
echo  (r) Reset all Values (q) Quit (s) Start
if exist *exefs_7x.xorpad (echo  7.x) ELSE (echo.)
echo  Game: %GameName%
echo.
echo ##################################################
echo #  TheGreek Boy  #
echo ##################################################
echo.
IF ERRORLEVEL 12 set keepdecrypt=yes & goto start
IF ERRORLEVEL 11 set checkautorsf=yes & goto start
IF ERRORLEVEL 10 set eromfs=yes & goto start
IF ERRORLEVEL 9 set uor=no & set uar=yes & set uoe=no & set reb3=yes & goto start
IF ERRORLEVEL 8 goto end
IF ERRORLEVEL 7 goto reset
IF ERRORLEVEL 6 goto letsgo
IF ERRORLEVEL 5 set fst4=yes & set uor=no & set uar=yes & goto start
IF ERRORLEVEL 4 set uoe=yes & set reb3=no & goto start
IF ERRORLEVEL 3 set uar=yes & set uor=no & goto start
IF ERRORLEVEL 2 set uor=yes & set uar=no & goto start
IF ERRORLEVEL 1 set RRL=yes & goto start

:letsgo
color b
if exist *UpdateData.romfs.xorpad echo Removing Update Data
if exist *UpdateData.romfs.xorpad del *UpdateData.romfs.xorpad

:createproject
if %skipxorpads%==no md "%GameName%"
if %skipxorpads%==no md "%GameName%\xorpads"
if %skipxorpads%==no md "%GameName%\encrypted"
if %skipxorpads%==no md "%GameName%\decrypted"
if %reb3%==yes md "%GameName%\3ds"
if %reb3%==no md "%GameName%"
if %skipxorpads%==yes goto regionpatch

:renameprojectfiles
SET movexorpad3ds=false
IF EXIST exefs.xorpad IF EXIST exheader.xorpad IF EXIST romfs.xorpad SET movexorpad3ds=true
IF "%movexorpad3ds%"=="true" (
  goto movexorpad3ds
) ELSE (
if not exist *exefs_7x.xorpad ren *Main.exefs_norm.xorpad exefs.xorpad
if exist *exefs_7x.xorpad ren *Main.exefs_7x.xorpad exefs_7x.xorpad
if exist exefs_7x.xorpad ren *Main.exefs_norm.xorpad exefs_norm.xorpad
if exist *main.romfs.xorpad ren *main.romfs.xorpad romfs.xorpad
if exist *main.exheader.xorpad ren *main.exheader.xorpad exheader.xorpad & echo Xorpads renamed
goto movexorpad3ds
)

:movexorpad3ds
move *.xorpad "%GameName%\xorpads"
move "%GameName%.3ds" "%GameName%\decrypted"

:getencryptedbin
tools\ctrtool -p --exheader="%GameName%\encrypted\exheaderEncrypted.bin" --romfs="%GameName%\encrypted\romfsEncrypted.bin" --exefs="%GameName%\encrypted\exefsEncrypted.bin" --logo="%GameName%\encrypted\logo.bin" "%GameName%\decrypted\%GameName%.3ds"
if exist "%GameName%\xorpads\exefs_7x.xorpad" tools\MEX.py "%GameName%\encrypted\exefsEncrypted.bin" "%GameName%\xorpads\exefs_norm.xorpad" "%GameName%\xorpads\exefs_7x.xorpad" "%GameName%\xorpads\exefs.xorpad"
if exist "%GameName%\xorpads\exefs_7x.xorpad" echo 7.x EXEFS present
echo Created Encrypted bins

:xor
color b
tools\padxorer.exe "%GameName%\encrypted\romfsEncrypted.bin" "%GameName%\xorpads\romfs.xorpad"
tools\padxorer.exe "%GameName%\encrypted\exheaderEncrypted.bin" "%GameName%\xorpads\exheader.xorpad"
tools\padxorer.exe "%GameName%\encrypted\exefsEncrypted.bin" "%GameName%\xorpads\exefs.xorpad"
SET xor=false
IF EXIST "%GameName%\encrypted\exefsEncrypted.bin.out" IF EXIST "%GameName%\encrypted\exheaderEncrypted.bin.out" IF EXIST "%GameName%\encrypted\romfsEncrypted.bin.out" SET xor=true
IF "%xor%"=="true" (
  echo xorpads xored
  move "%GameName%\encrypted\*.out" "%GameName%\decrypted"
  move "%GameName%\encrypted\logo.bin" "%GameName%\decrypted"
  ren "%GameName%\decrypted\romfsEncrypted.bin.out" "romfs.bin"
  ren "%GameName%\decrypted\exefsEncrypted.bin.out" "exefs.bin"
  ren "%GameName%\decrypted\exheaderEncrypted.bin.out" "exheader.bin"
  goto removeencrypted
) ELSE (
  color c
  echo xorpads failed
  goto checkcia  
)

:removeencrypted
rd /s /q "%GameName%\encrypted"
echo Encrypted bin removed

:createexheader
tools\ctrtool -t exheader "%GameName%\decrypted\exheader.bin" > "%GameName%\decrypted\exheader.txt"

:extractexefs
color b
tools\ctrtool -t exefs --exefsdir="%GameName%\decrypted" "%GameName%\decrypted\exefs.bin" --decompresscode
echo.
echo.
echo Created code / banner / icon
echo.
echo.
echo If Secion Name is unreadable, something went wrong
echo.
echo It should be something like - .code banner icon logo
echo.

:regionpatch
if %RRL%==yes copy tools\region.py "%GameName%\decrypted"
if %RRL%==yes cd "%GameName%\decrypted" & region.py & cd.. & cd.. & del /q "%GameName%\decrypted\region.py"
if %RRL%==yes echo Region patched

:checkmanual
color b
echo.
echo.
if exist "%GameName%\xorpads\*Manual.romfs.xorpad" (tools\3dstool -xvt1f cci "%GameName%\decrypted\manual.cfa" "%GameName%\decrypted\%GameName%.3ds") else if exist "%GameName%\xorpads\*DownloadPlay.romfs.xorpad" (tools\3dstool -xvt2f cci "%GameName%\decrypted\dlp.cfa" "%GameName%\decrypted\%GameName%.3ds")

:creatersf
IF %uor%==yes (
  if %reb3%==no copy tools\sample-rsf.txt "%GameName%\decrypted\%GameName%.rsf"
   if %reb3%==yes copy tools\sample-rsf-reb.txt "%GameName%\decrypted\%GameName%.rsf"
  :infoexheader
  color a
  cls
  if %arsf%==notused tools\rom_tool -i "%gamename%\decrypted\%gamename%.3ds"
  if %arsf%==notused type "%GameName%\decrypted\exheader.txt"
  :arsfovertake
  if %arsf%==no copy tools\sample-rsf.txt "%GameName%\%GameName%.rsf"
  if %arsf%==no tools\rom_tool -i "%gamename%\%gamename%.3ds"
  if %arsf%==no type "%GameName%\exheader.txt"
  echo.
  echo.
  echo ###########################################################
  echo #  Inject Moflex Video In CIA     #
  echo #  by  #
  echo #  TheGreek Boy  #
  echo ###########################################################
  echo.
  if %arsf%==no goto arsfskip
  if %arsf%==notused tools\n++\notepad++.exe "%GameName%\decrypted\%GameName%.rsf"
  :arsfskip
  if %arsf%==no tools\n++\notepad++.exe "%GameName%\%GameName%.rsf"
  echo.
  CHOICE /C:yn /M "Is your .rsf ready (y)es (n)o?"
  IF ERRORLEVEL 2 goto infoexheader
  IF ERRORLEVEL 1 goto build
  goto build
)

:useautorsf
IF %uar%==yes (
  color b
  if %ciarepack%==yes copy tools\rsfgen-cia.py "%gamename%\decrypted\rsfgen.py"
  if %ciarepack%==no copy tools\rsfgen.py "%gamename%\decrypted"
   copy tools\rom.rsf "%gamename%\decrypted\%gamename%.rsf"
   copy tools\3dstool.exe "%gamename%\decrypted\3dstool.exe"
   copy tools\3dstool-romfs.bat "%gamename%\decrypted\3dstool-romfs.bat"
   copy tools\ext_key.txt "%gamename%\decrypted\ext_key.txt"
   copy tools\ignore_3dstool.txt "%gamename%\decrypted\ignore_3dstool.txt"
   cd "%gamename%\decrypted"
  if %fst4%==yes (rsfgen.py "%gamename%" -spoof) else (rsfgen.py "%gamename%")
  cd..
  cd..
  del /q "%GameName%\decrypted\rsfgen.py"

  if %checkautorsf%==yes echo.
  :checkautorsf
  if %checkautorsf%==yes CHOICE /C:yn /M "Is The Name Of The Video Ready (y)es (n)o?"
  if %checkautorsf%==yes IF ERRORLEVEL 2 goto checkautorsf
  if %checkautorsf%==yes IF ERRORLEVEL 1 goto checkautorsfcontinue
  
   :checkautorsfcontinue
   if %eromfs%==yes set returnpoint=checkinject & goto extract_romfs
   :checkinject
  IF %uoe%==yes goto exinjector
  goto build
)

:exinjector
IF %uoe%==yes (
  echo Creating "%GameName%".cia
  echo Please wait...
  tools\_makerom -f cxi -o "%GameName%\decrypted\%GameName%.cxi" -rsf "%GameName%\decrypted\%GameName%.rsf" -target t -desc ecapp:3 -exheader "%GameName%\decrypted\exheader.bin" -logo "%GameName%\decrypted\logo.bin" -exefslogo -code "%GameName%\decrypted\code.bin" -romfs "%GameName%\decrypted\romfs.bin" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin"

  echo Inserting original exheader
  tools\exinjector -rom "%GameName%\decrypted\%GameName%.cxi" -exheader "%GameName%\decrypted\exheader.bin" -sd

  echo.
  echo Almost ready
  echo.

  echo Creating "%GameName%".cia
  echo Please wait...
  if exist "%GameName%\xorpads\*DownloadPlay.romfs.xorpad" goto dlpex
   if exist "%GameName%\decrypted\dlp.cfa" goto dlpex
  If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
  If exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -target t -content "%GameName%\decrypted\%GameName%.cxi":0:0 -content "%GameName%\decrypted\manual.cfa":1:1 -o "%GameName%\custom%GameName%.cia"
  If not exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -target t -content "%GameName%\decrypted\%GameName%.cxi":0:0 -o "%GameName%\custom%GameName%.cia"

  color e
  echo.
  echo You can ignore " CIA will not be encrypted " message
  echo.
  color b

  goto checkcia

  :dlpex
  If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
  echo DownloadPlay will be included
  If exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -target t -content "%GameName%\decrypted\%GameName%.cxi":0:0 -content "%GameName%\decrypted\manual.cfa":1:1 -content "%GameName%\decrypted\dlp.cfa":2:2 -o "%GameName%\custom%GameName%.cia"
  If not exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -target t -content "%GameName%\decrypted\%GameName%.cxi":0:0 -content "%GameName%\decrypted\dlp.cfa":2:2 -o "%GameName%\custom%GameName%.cia"

  color e
  echo.
  echo You can ignore " CIA will not be encrypted " message
  echo.
  color b
  
  goto checkcia
)

:build
if %arsf%==no goto arsfback
if %reb3%==yes goto rebuild_3ds
echo Creating "%GameName%".cia
echo Please wait...
if exist "%GameName%\xorpads\*DownloadPlay.romfs.xorpad" goto dlpbuild
if exist "%GameName%\decrypted\dlp.cfa" goto dlpbuild
If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
If exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\decrypted\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\suctom%GameName%.cia" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -exefslogo -code "%GameName%\decrypted\code.bin" -exheader "%GameName%\decrypted\exheader.bin" -romfs "%GameName%\decrypted\romfs.bin" -content "%GameName%\decrypted\manual.cfa":1:1
If not exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\decrypted\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\custom%GameName%.cia" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -exefslogo -code "%GameName%\decrypted\code.bin" -exheader "%GameName%\decrypted\exheader.bin" -romfs "%GameName%\decrypted\romfs.bin"

color e
echo.
echo You can ignore " CIA will not be encrypted " message
echo.
color b

goto checkcia

:dlpbuild
If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
echo DownloadPlay will be included
If exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\decrypted\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\custom%GameName%.cia" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -exefslogo -code "%GameName%\decrypted\code.bin" -exheader "%GameName%\decrypted\exheader.bin" -romfs "%GameName%\decrypted\romfs.bin" -content "%GameName%\decrypted\manual.cfa":1:1 -content "%GameName%\decrypted\dlp.cfa":2:2
If not exist "%GameName%\decrypted\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\decrypted\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\custom%GameName%.cia" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -exefslogo -code "%GameName%\decrypted\code.bin" -exheader "%GameName%\decrypted\exheader.bin" -romfs "%GameName%\decrypted\romfs.bin" -content "%GameName%\decrypted\dlp.cfa":2:2

color e
echo.
echo You can ignore " CIA will not be encrypted " message
echo.
color b

:checkcia
SET nocia=false
if not exist "%GameName%\custom%GameName%.cia" SET nocia=true
IF "%nocia%"=="true" (
  color c
  echo Failed to create "custom%GameName%.cia"
  move "%GameName%\xorpads\*.xorpad" .
  move "%GameName%\*.*" .
   rd /s /q "%GameName%"
  pause
  goto end
) ELSE (
goto output_generated
)

:output_generated
color a
md "%GameName%"
if %ciarepack%==no if exist "%GameName%\decrypted\%GameName%.3ds" move "%GameName%\decrypted\%GameName%.3ds" "%GameName%"
if exist "%GameName%\decrypted\%GameName%.cia" move "%GameName%\decrypted\%GameName%.cia" "%GameName%"
cd "%GameName%"
if %keepdecrypt%==no rd /s /q decrypted
cd ..
cls
echo.
echo.
if exist "%GameName%\custom%GameName%.cia" echo Success to create "%GameName%.cia"
if exist "%GameName%\3ds\%GameName%_modified.3ds" rename "%GameName%\3ds\%GameName%_modified.3ds" "%GameName%_rebuilded.3ds"
if exist "%GameName%\3ds\%GameName%_rebuilded.3ds" echo Success to create "%GameName%_rebuilded.3ds"
echo.
echo.
if exist "%GameName%\custom%GameName%.cia" pause
if exist "%GameName%\3ds\%GameName%_rebuilded.3ds" echo Your file is ready in %GameName%\3DS
echo.
if %keepdecrypt%==yes echo Decrypted files are still in %GameName%\decrypted
echo.
echo.
goto end

:extract_romfs
tools\ctrtool --romfsdir="%GameName%\decrypted\romfs" "%GameName%\decrypted\romfs.bin"
:extract_romfs_mod
echo.
echo "Modifying Your Romfs....."
copy movie.moflex "%gamename%\decrypted\romfs\movie\movie.moflex"
if exist logo.bin copy logo.bin "%gamename%\decrypted\logo.bin"
if exist icon.bin copy icon.bin "%gamename%\decrypted\icon.bin"
if exist banner.bin copy banner.bin "%gamename%\decrypted\banner.bin"
echo "Now Edit The Name Of The Video In Notepad++ And Save It"
tools\n++\notepad++.exe "%GameName%\decrypted\romfs\movie\movie_title.csv"
echo "Now Edit The Title ID in Notepad++ And Save It"
tools\n++\notepad++.exe "%GameName%\decrypted\%GameName%.rsf"
echo "Now Edit The Title ID in HxD And Save It"
echo "After That Press Any Button Here"
tools\HxD.exe "%GameName%\decrypted\exheader.bin"
pause
@echo on
cd "%GameName%\decrypted"
call 3dstool-romfs.bat
cd..
cd..
goto %returnpoint%

:rebuild_3ds
cd "%GameName%"
rename cia 3ds
cd..

:rebuild_3ds_manual
echo.
echo Creating "%GameName%_modified.3ds"...
echo.
if exist "%GameName%\xorpads\*DownloadPlay.romfs.xorpad" goto rebuild_3ds_dlp
If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
if not exist "%GameName%\decrypted\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\decrypted\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\decrypted\romfs.bin" -exheader "%GameName%\decrypted\exheader.bin" -code "%GameName%\decrypted\code.bin" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -alignwr -o "%GameName%\3ds\%GameName%_modified.3ds"
if exist "%GameName%\decrypted\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\decrypted\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\decrypted\romfs.bin" -exheader "%GameName%\decrypted\exheader.bin" -code "%GameName%\decrypted\code.bin" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -alignwr -content "%GameName%\decrypted\manual.cfa":1:1 -o "%GameName%\3ds\%GameName%_modified.3ds"
goto rebuild_3ds_generated

:rebuild_3ds_dlp
If exist "%GameName%\decrypted\manual.cfa" echo Manual will be included
echo DownloadPlay will be included
If exist "%GameName%\decrypted\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\decrypted\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\decrypted\romfs.bin" -exheader "%GameName%\decrypted\exheader.bin" -code "%GameName%\decrypted\code.bin" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -alignwr -o "%GameName%\3ds\%GameName%_modified.3ds" -content "%GameName%\decrypted\manual.cfa":1:1 -content "%GameName%\decrypted\dlp.cfa":2:2
If not exist "%GameName%\decrypted\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\decrypted\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\decrypted\romfs.bin" -exheader "%GameName%\decrypted\exheader.bin" -code "%GameName%\decrypted\code.bin" -icon "%GameName%\decrypted\icon.bin" -banner "%GameName%\decrypted\banner.bin" -logo "%GameName%\decrypted\logo.bin" -alignwr -o "%GameName%\3ds\%GameName%_modified.3ds" -content "%GameName%\decrypted\dlp.cfa":2:2

:rebuild_3ds_generated
if not exist "%GameName%\3ds\%GameName%_modified.3ds" goto rebuild_3ds_generated_failed
tools\exinjector -rom "%GameName%\3ds\%GameName%_modified.3ds" -exheader "%GameName%\decrypted\exheader.bin" -sd
set uoe=yes
if exist "%GameName%\3ds\%GameName%_modified.3ds" goto output_generated
:rebuild_3ds_generated_failed
color c
echo ############################################################
echo #  #
echo #  ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR  #
echo #  #
echo ############################################################
echo.
echo Creating %GameName%_modified.3ds failed
echo.
pause
goto end


:notools
color c
echo ############################################################
echo #  #
echo #  Missing Tools - Please re-install 3ds_to_cia to fix it  #
echo # XORPADS and .3ds needs to be inside 3ds_to_cia's folder  #
echo #  #
echo ############################################################
echo.
pause
goto end

:fail
color e
echo #######################################################
echo #  #
echo # Drag n drop .3ds on batch file to start conversion  #
echo #  #
echo #######################################################
echo.
pause
goto end

:noxorpad
color e
echo #######################################################################
echo #  #
echo # Missing XORPADS, pleasy copy your files into 3ds_to_cia's directory #
echo #  #
echo #  If this is a manual created .3ds, rename it to name_MODIFIED.3ds  #
echo #  #
echo #######################################################################
echo.
pause
goto end

:no3ds
color e
echo #################################################################
echo #  #
echo # Missing 3ds, pleasy copy the game into 3ds_to_cia's directory #
echo #  #
echo #################################################################
echo.
pause
goto end

:duplicate
cls
color c
echo ###############################################################
echo #  #
echo # GameFolder or File already exists, please check your files  #
echo #  #
echo ###############################################################
echo.
pause
goto end

:decrypt_cia
color a
if exist "%GameName%" goto duplicate
echo #############################################################
echo #  #
echo # Decrypting selfmade CIA File *NOT WORKING FOR LEGIT CIA*  #
echo #  #
echo #############################################################
echo.
md "%GameName%"
md "%GameName%\decrypted"
echo Preparing files for convert progress
tools\ctrtool -x -t cia "%GameName%".cia --contents="%GameName%"
if exist *0000.* rename *0000.* "%GameName%.3ds"
if exist *0001.* rename *0001.* Manual.cfa
if exist *0002.* rename *0002.* DLP.cfa
if exist "%GameName%.3ds" echo 3ds is ready
if not exist "%GameName%.3ds" echo Preparing failed and seems to be damaged or crypted & pause & goto end
echo Checking for DLP and Manual
if exist "Manual.cfa" echo Found Manual
if exist "DLP.cfa" echo Found DLP
tools\ctrtool -p --exheader="%GameName%\decrypted\exheader.bin" --romfs="%GameName%\decrypted\romfs.bin" --exefs="%GameName%\decrypted\exefs.bin" --logo="%GameName%\decrypted\logo.bin" "%GameName%.3ds"
echo Created Exheader / ROMFS / exeFS and LOGO .BIN
tools\ctrtool -i "%GameName%.3ds" >"%GameName%\decrypted\info.txt"
tools\ctrtool -t exefs --exefsdir="%GameName%\decrypted" "%GameName%\decrypted\exefs.bin" --decompresscode
echo exeFS.BIN decompressd
tools\ctrtool -t exheader "%GameName%\decrypted\exheader.bin" > "%GameName%\decrypted\exheader.txt"
move *.cfa "%GameName%\decrypted"
move "%GameName%.3ds" "%GameName%\decrypted"
set skipxorpads=yes
set ciarepack=yes
goto reset

:decrypt_3ds
cls
color a
echo #############################################################
echo #  #
echo # Decrypting selfmade 3DS File *NOT WORKING FOR LEGIT 3DS*  #
echo #  #
echo #############################################################
echo.
md "%GameName%"
md "%GameName%\decrypted"
echo Preparing files for convert progress
echo Checking for DLP and Manual
tools\3dstool -xvt1f cci "%GameName%\decrypted\manual.cfa" "%GameName%.3ds"
tools\3dstool -xvt2f cci "%GameName%\decrypted\dlp.cfa" "%GameName%.3ds"
if exist "%GameName%\decrypted\manual.cfa" echo Found Manual
if exist "%GameName%\decrypted\dlp.cfa" echo Found DLP
tools\ctrtool -p --exheader="%GameName%\decrypted\exheader.bin" --romfs="%GameName%\decrypted\romfs.bin" --exefs="%GameName%\decrypted\exefs.bin" --logo="%GameName%\decrypted\logo.bin" "%GameName%.3ds"
echo Created Exheader / ROMFS / exeFS and LOGO .BIN
tools\ctrtool -i "%GameName%.3ds" >"%GameName%\decrypted\info.txt"
tools\ctrtool -t exefs --exefsdir="%GameName%\decrypted" "%GameName%\decrypted\exefs.bin" --decompresscode
echo exeFS.BIN decompressd
tools\ctrtool -t exheader "%GameName%\decrypted\exheader.bin" > "%GameName%\decrypted\exheader.txt"

move %1 "%GameName%\decrypted"
set skipxorpads=yes
goto reset

:folder
cls
color a
echo ##################################################
echo #      #
echo #  #
echo #  Inject Moflex Video In CIA  #
echo #      by  #
echo #  TheGreek Boy  #
echo #  #
echo #  #
echo ##################################################
echo.
if exist "%GameName%\MANUAL.cfa" echo *Manual detected*
if exist "%GameName%\dlp.cfa" echo *Download Play detected*
echo.
echo  Game: %GameName%
echo.
echo  (1) Re-create .3ds from Folder
echo  (2) Re-create .cia from Folder with auto-rsf
echo  (3) Re-create .cia from Folder manual rsf
echo.
echo  (q) Quit
echo.
echo ##################################################
echo #  Thanks to everyone who  #
echo #  helped creating this  #
echo ##################################################
echo.
CHOICE /C:123q /M "Make your choice or q to Quit"
IF ERRORLEVEL 4 goto end
IF ERRORLEVEL 3 set arsf=no & goto folderautorsf
IF ERRORLEVEL 2 set arsf=yes & goto folderautorsf
IF ERRORLEVEL 1 goto crea3dsfold
goto end

:crea3dsfold
cls
color a
echo #############################################################
echo #  #
echo #  Creating .3ds from folder  #
echo #  #
echo #############################################################
echo.
:folder_3ds_manual

if not exist "%GameName%\%GameName%.rsf" goto folder_missing_file
if not exist "%GameName%\romfs.bin" goto folder_missing_file
if not exist "%GameName%\banner.bin" goto folder_missing_file
if not exist "%GameName%\code.bin" goto folder_missing_file
if not exist "%GameName%\icon.bin" goto folder_missing_file
if not exist "%GameName%\logo.bin" goto folder_missing_file
if exist "%GameName%\%GameName%_regenerated.3ds" goto duplicate
echo.
echo Creating "%GameName%_regenerated.3ds"...
echo.
if exist "%GameName%\dlp.cfa" goto folder_3ds_dlp
If exist "%GameName%\manual.cfa" echo Manual will be included
if not exist "%GameName%\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\romfs.bin" -exheader "%GameName%\exheader.bin" -code "%GameName%\code.bin" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -alignwr -o "%GameName%\%GameName%_regenerated.3ds"
if exist "%GameName%\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\romfs.bin" -exheader "%GameName%\exheader.bin" -code "%GameName%\code.bin" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -alignwr -content "%GameName%\manual.cfa":1:1 -o "%GameName%\%GameName%_regenerated.3ds"
goto folder_3ds_generated

:folder_3ds_dlp
If exist "%GameName%\manual.cfa" echo Manual will be included
echo DownloadPlay will be included
If exist "%GameName%\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\romfs.bin" -exheader "%GameName%\exheader.bin" -code "%GameName%\code.bin" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -alignwr -o "%GameName%\%GameName%_regenerated.3ds" -content "%GameName%\manual.cfa":1:1 -content "%GameName%\dlp.cfa":2:2
If not exist "%GameName%\manual.cfa" tools\makerom -f cci -target g -rsf "%GameName%\%GameName%.rsf" -desc ecapp:3 -romfs "%GameName%\romfs.bin" -exheader "%GameName%\exheader.bin" -code "%GameName%\code.bin" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -alignwr -o "%GameName%\%GameName%_regenerated.3ds" -content "%GameName%\dlp.cfa":2:2
if %genboth%==yes goto folderautorsf
goto folder_3ds_generated

:folderautorsf
cls
color a
echo #############################################################
echo #  #
echo #  Creating .cia from folder  #
echo #  #
echo #############################################################
echo.
if not exist "%GameName%\%GameName%.3ds" rename "%GameName%\%GameName%.cci" "%GameName%.3ds"
if not exist "%GameName%\%GameName%.3ds" goto folder_missing_file
if not exist "%GameName%\romfs.bin" goto folder_missing_file
if not exist "%GameName%\banner.bin" goto folder_missing_file
if not exist "%GameName%\code.bin" goto folder_missing_file
if not exist "%GameName%\icon.bin" goto folder_missing_file
if not exist "%GameName%\logo.bin" goto folder_missing_file
if exist "%gamename%\%gamename%.rsf" goto duplicate
if exist "%gamename%\%gamename%.cia" goto duplicate
if %arsf%==yes copy tools\rsfgen.py "%gamename%"
if %arsf%==yes copy tools\rom.rsf "%gamename%\%gamename%.rsf"
if %arsf%==yes cd "%gamename%"
if %arsf%==yes rsfgen.py "%gamename%"
if %arsf%==yes cd ..
if %arsf%==yes del /q "%GameName%\rsfgen.py"
if %arsf%==no goto arsfovertake
:arsfback
echo Creating "custom%GameName%".cia
echo Please wait...
if exist "%GameName%\dlp.cfa" goto folderdlpbuild
If exist "%GameName%\manual.cfa" echo Manual will be included
If exist "%GameName%\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\%GameName%.cia" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -exefslogo -code "%GameName%\code.bin" -exheader "%GameName%\exheader.bin" -romfs "%GameName%\romfs.bin" -content "%GameName%\manual.cfa":1:1
If not exist "%GameName%\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\%GameName%.cia" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -exefslogo -code "%GameName%\code.bin" -exheader "%GameName%\exheader.bin" -romfs "%GameName%\romfs.bin"

goto folder_cia_generated

:folderdlpbuild
If exist "%GameName%\manual.cfa" echo Manual will be included
echo DownloadPlay will be included
If exist "%GameName%\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\%GameName%.cia" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -exefslogo -code "%GameName%\code.bin" -exheader "%GameName%\exheader.bin" -romfs "%GameName%\romfs.bin" -content "%GameName%\manual.cfa":1:1 -content "%GameName%\dlp.cfa":2:2
If not exist "%GameName%\manual.cfa" tools\_makerom -f cia -rsf "%GameName%\%GameName%.rsf" -target t -desc app:2 -o "%GameName%\%GameName%.cia" -icon "%GameName%\icon.bin" -banner "%GameName%\banner.bin" -logo "%GameName%\logo.bin" -exefslogo -code "%GameName%\code.bin" -exheader "%GameName%\exheader.bin" -romfs "%GameName%\romfs.bin" -content "%GameName%\dlp.cfa":2:2

:folder_cia_generated
echo.
if not exist "%GameName%\%GameName%.cia" color c & echo Creating %GameName%.cia failed
if exist "%GameName%\%GameName%.cia" color a & echo Creating %GameName%.cia Success
echo.
pause
goto end


:folder_3ds_generated
tools\exinjector -rom "%GameName%\%GameName%_regenerated.3ds" -exheader "%GameName%\exheader.bin" -sd
echo.
if not exist "%GameName%\%GameName%_regenerated.3ds" color c & echo Creating %GameName%_regenerated.3ds failed
if exist "%GameName%\%GameName%_regenerated.3ds" color a & echo Creating %GameName%_regenerated.3ds Success
echo.
echo File is ready in folder %GameName%
echo.
pause
goto end

:folder_missing_file
cls
color c
echo #############################################################
echo #  #
echo #  Unable to create your regenerated 3ds file  #
echo #  #
echo #  Following Files need to be present to generate a file  #
echo #  #
echo #  romfs.bin banner.bin code.bin icon.bin logo.bin  #
echo #  #
echo #  And a working RSF file  #
echo #  #
echo #############################################################
echo.
if not exist "%GameName%\romfs.bin" echo romfs.bin is missing
if not exist "%GameName%\banner.bin" echo banner.bin is missing
if not exist "%GameName%\code.bin" echo code.bin is missing
if not exist "%GameName%\icon.bin" echo icon.bin is missing
if not exist "%GameName%\logo.bin" echo logo.bin is missing
if not exist "%GameName%\%GameName%.rsf" echo "%GameName%.rsf" is missing
echo.
pause

:end
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Nighty night
  • BigOnYa @ BigOnYa:
    Yea is sad. His 2 movies were good. Informative about our food industry.
  • BigOnYa @ BigOnYa:
    This was one of the craziest movies I've seen about our food industry, lots of stuff I didn't know. A must see. https://youtu.be/OqzjC-ENrl8?si=GYxmdY5nShzGniVi
  • OctoAori20 @ OctoAori20:
    Oh, that dude?
  • OctoAori20 @ OctoAori20:
    I stopped believing or caring about that dude when I found out about some of the more questionable nonsense he did in his life.
  • BigOnYa @ BigOnYa:
    Like what? I didn't know or hear.
  • K3Nv2 @ K3Nv2:
    You mean like every famous person that ever existed
    +1
  • K3Nv2 @ K3Nv2:
    I get so tired of hearing oh I liked him until...
  • OctoAori20 @ OctoAori20:
    I just know dude was a chronic alcoholic and such.
  • BigOnYa @ BigOnYa:
    I've been to his chicken restaurant he started in his 2nd movie, Holy Chicken, was pretty good. It is only 15-20 miles from me in Ohio. It only lasted 1 yr or so then closed tho.
  • OctoAori20 @ OctoAori20:
    There are very few people I just have just an immense dislike of and he's one of those very few people, the only other example is Gene Simmons. My musician uncle on my mother's side of the family actually met Gene once during some event and said he was the most unpleasant person to be around.
  • K3Nv2 @ K3Nv2:
    I met myself once turns out that guy is a giant piece of shit that doesn't deserve any of my respect
  • BigOnYa @ BigOnYa:
    Damn alcoholics! (Sshhh- Opens another beer)
  • OctoAori20 @ OctoAori20:
    Agreed, Ken
  • OctoAori20 @ OctoAori20:
    I can't say I've ever tried even a sip of beer tbh-
  • K3Nv2 @ K3Nv2:
    You met yourself also and is a giant piece of shit?
    +1
  • OctoAori20 @ OctoAori20:
    Then again, I don't think I'd really enjoy it //shrug
  • OctoAori20 @ OctoAori20:
    I'm sure it's an acquired taste :P
  • K3Nv2 @ K3Nv2:
    Poor lad can never enjoy the amazing taste of four loko
    +1
  • BigOnYa @ BigOnYa:
    Root beer is a gateway drink, don't ever try it either.
  • K3Nv2 @ K3Nv2:
    @BigOnYa, don't you love how smooth MD20 is
  • BigOnYa @ BigOnYa:
    Mad dog 20 20? Oh yea fixed the typo. I haven't seen that or had forever. Do they still make it?
  • K3Nv2 @ K3Nv2:
    I think it's why I'm alive
    +1
    K3Nv2 @ K3Nv2: I think it's why I'm alive +1