- Joined
- Jan 18, 2012
- Messages
- 126
- Trophies
- 1
- Age
- 51
- Location
- Kiev
- Website
- www.shedevr.org.ru
- XP
- 369
- Country
Could anybody explain how to build fully working Zelda ALBW (PAL) .cia from decrypted files with MODIFIED data (translation), please?
After decrypting ROM file, replacing some files in "romfs\EU_English" folder and rebuilding RomFS.bin with this batch file:
I've managed to build .cia and get it to work on Palatine CFW with this batch file:
With this Makerom:
CTR MAKEROM 0.13 (C) 3DSGuy 2014 (662 Kb (678 274 bytes).
And with this "albw.RSF":
Questions:
1. After installing CIA there is NO GIFT ICON appears (a white frame just "flashes" and disappears immediately, instead of new gift/game icon). The game only runs from BigBlueMenu.
2. So, I can't exit the game in a normal way and see if there is a manual I'm trying to add with "-content manual.cfa:1:1" - pressing HOME button just causes the game to hang. I can quit game only by pressing Power button and power off the console.
3. I've extracted manual (*.cfa file) from original (and encrypted) ROM using Rom_tool - "rom_tool -x manual romname.3ds". Is this a right way to do so?
4. WHY there are no gift/game icon appears after installing .cia? What should I do to make it appear? I've tried everything, hundreds of times - no icon appears... EVER...
5. This line in rsf file -> "JumpId: 0x0004000000030800L # plaintext exheader (0x00040000000EC400L)" should be "JumpId: 0x00040000000EC400L" or not?
(it seems to work in both cases, though). I got that rsf somewhere here at gbatemp, but for US version of the game and edited it for EUR version. Maybe something wrong with rsf?..
Help, please...
After decrypting ROM file, replacing some files in "romfs\EU_English" folder and rebuilding RomFS.bin with this batch file:
Code:
[USER=325063]Echo[/USER] off
SETLOCAL ENABLEEXTENSIONS
set ATTR=%~a1
set DIRATTR=%ATTR:~0,1%
if /I "%DIRATTR%" equ "d" (
goto :begin
) else (
echo NOT A FOLDER!
)
pause
exit /b
:begin
if exist "%~dp0%~n1.bin" goto :error
echo.
echo.
[USER=325063]Echo[/USER] PACKING ROMFS BINARY... PLEASE WAIT
"%~dp0program\ctr_makerom32" -rsf "%~dp0Program\Child.rsf" -f data -DROMFS_ROOT="%~dp1%~n1" -DPROGRAM_ID=0x1234 -o "%~dp0%~n1.cfa"
call :getFilesize "%~dp0%~n1.cfa
set /a fileSize-=4096
echo.
echo.
[USER=325063]Echo[/USER] ALMOST DONE... PLEASE WAIT
"%~dp0program\tail" -c %fileSize% "%~dp0%~n1.cfa" 1> "%~dp0%~n1.bin"
del "%~dp0%~n1.cfa
del "%~dp0%~n1.cfa.xml
MSG * DONE!
exit /b
:getFilesize
set filesize=%~z1
exit /b
:error
echo.
echo.
echo A FILE WITH THIS NAME ALREADY EXISTS!
echo.
pause
exit /b
I've managed to build .cia and get it to work on Palatine CFW with this batch file:
Code:
makerom -f ncch -rsf albw.rsf -target t -desc app:4 -icon exefs\icon.bin -banner exefs\banner.bin -exefslogo -code exefs\code.bin -exheader exheader.bin -romfs romfs.bin -o LoZ-ALBW.cxi
makerom -f cia -rsf albw.rsf -target t -content LoZ-ALBW.cxi:0:0 -content manual.cfa:1:1 -o albw.cia
With this Makerom:
CTR MAKEROM 0.13 (C) 3DSGuy 2014 (662 Kb (678 274 bytes).
And with this "albw.RSF":
Code:
BasicInfo:
Title : "LoZ-ALBW-EU"
CompanyCode : "00"
ProductCode : "CTR-P-BZLP"
ContentType : Application # Application / SystemUpdate / Manual / Child / Trial
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
TitleInfo:
UniqueId : 0x0ec4
Category : Application
Option:
UseOnSD : true
EnableCompress : true
FreeProductCode : true
EnableCrypt : false
MediaFootPadding : true
AccessControlInfo:
ExtSaveDataId: 0x0ec4 # same as UniqueId
SystemSaveDataId1: 0x00000000
SystemSaveDataId2: 0x00000000
OtherUserSaveDataId1: 0x00000
OtherUserSaveDataId2: 0x00000
OtherUserSaveDataId3: 0x00000
UseOtherVariationSaveData : false
SystemControlInfo:
SaveDataSize: 512KB # plaintext exheader
RemasterVersion: 0 # plaintext exheader
StackSize: 0x00040000 # plaintext exheader
JumpId: 0x0004000000030800L # plaintext exheader (0x00040000000EC400L)
Questions:
1. After installing CIA there is NO GIFT ICON appears (a white frame just "flashes" and disappears immediately, instead of new gift/game icon). The game only runs from BigBlueMenu.
2. So, I can't exit the game in a normal way and see if there is a manual I'm trying to add with "-content manual.cfa:1:1" - pressing HOME button just causes the game to hang. I can quit game only by pressing Power button and power off the console.
3. I've extracted manual (*.cfa file) from original (and encrypted) ROM using Rom_tool - "rom_tool -x manual romname.3ds". Is this a right way to do so?
4. WHY there are no gift/game icon appears after installing .cia? What should I do to make it appear? I've tried everything, hundreds of times - no icon appears... EVER...
5. This line in rsf file -> "JumpId: 0x0004000000030800L # plaintext exheader (0x00040000000EC400L)" should be "JumpId: 0x00040000000EC400L" or not?
(it seems to work in both cases, though). I got that rsf somewhere here at gbatemp, but for US version of the game and edited it for EUR version. Maybe something wrong with rsf?..
Help, please...