ROM Hack Need help with Game-Decrypting and Rebuilding

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
Have you tried to play the rebuilded 3ds-rom?

If it doesn't work with OpenCIA then you should use another way.
AutoCIA doesn't work... will try OpenCIA...

Do you have a Link to OpenCIA?


507626ffb1.png


EDIT: Tried to build it with ctrtool.exe:
0e55229fec.png
 
Last edited by DJPlayer,
D

Deleted User

Guest
Have you tried to play the rebuilded 3ds-rom?


AutoCIA doesn't work... will try OpenCIA...

Do you have a Link to OpenCIA?


507626ffb1.png


EDIT: Tried to build it with ctrtool.exe:
0e55229fec.png
I ment AutoCIA. I forgot the name. As i told you, use RomFS Builder and 3DS Builder in the link i sent you before.
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
I ment AutoCIA. I forgot the name. As i told you, use RomFS Builder and 3DS Builder in the link i sent you before.
Yea, I can use 3DS Builder.... but I don't own any Flashcard so I can't play a .3ds-Game.
This is why I want to convert it to cia.
I tried to use 3DS Builder and converting it after that to cia. Same problem.


I still need help to convert this game to a "playable" cia.
I want to test my translations but if it don't work, I can't test it...


EDIT: I tried to use CCI/CIA Command Builder but it won't work.
I'll get this error:
Code:
[ACEXDESC ERROR] AccessDesc template is unavailable, please configure RSF file
[EXHEADER ERROR] Failed to create ExHeader
[NCCH ERROR] NCCH Build Process Failed
[RESULT] Failed to build outfile

I tried to create my own rsf-file with rsfgen.py but it didn't work...
Here's my rsf-file
Code:
BasicInfo:
  Title                   : "lol"
  CompanyCode             : "00"
  ProductCode             : "CTR-P-BLLJ"
  ContentType             : Application # Application / SystemUpdate / Manual / Child / Trial
  Logo                    : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem

TitleInfo:
  UniqueId                : 0x0000131c
  Category                : Application # Application / SystemApplication / Applet / Firmware / Base / DlpChild / Demo / Contents / SystemContents / SharedContents / AddOnContents / Patch / AutoUpdateContents

Option:
  UseOnSD                 : true # true if App is to be installed to SD
  EnableCompress          : true # Compresses exefs code
  FreeProductCode         : true # Removes limitations on ProductCode
  EnableCrypt             : false # Enables encryption for NCCH and CIA
  MediaFootPadding        : false # If true CCI files are created with padding

ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
  ReadOnly: 
   - .rodata
   - RO
  ReadWrite: 
   - .data
   - RO
  Text: 
   - .init
   - .text
   - STUP_ENTRY

AccessControlInfo:
  ExtSaveDataId: 0x0000000000000000
  SystemSaveDataId1: 0x00000000
  SystemSaveDataId2: 0000000000
  OtherUserSaveDataId1: 0x00000
  OtherUserSaveDataId2: 0x00000
  OtherUserSaveDataId3: 0x00000
  FileSystemAccess:
   # CategorySystemApplication
   # CategoryHardwareCheck
   # CategoryFileSystemTool
   # Debug
   # TwlCardBackup
   # TwlNandData
   # Boss
   - DirectSdmc
   # Core
   # CtrNandRo
   # CtrNandRw
   # CtrNandRoWrite
   # CategorySystemSettings
   # CardBoard
   # ExportImportIvs
   # DirectSdmcWrite
   # SwitchCleanup
   # SaveDataMove
   # Shop
   # Shell
   # CategoryHomeMenu
  
  IdealProcessor                : 0
  AffinityMask                  : 1
  
  Priority                      : 16
  
  MaxCpu                        : 0x9E # Default
  
  DisableDebug                  : false
  EnableForceDebug              : false
  CanWriteSharedPage            : false
  CanUsePrivilegedPriority      : false
  CanUseNonAlphabetAndNumber    : false
  PermitMainFunctionArgument    : false
  CanShareDeviceMemory          : false
  RunnableOnSleep               : false
  SpecialMemoryArrange          : false
  UseOtherVariationSaveData     : false
  
  CoreVersion                   : 2
  DescVersion                   : 2
  
  ReleaseKernelMajor            : "02"
  ReleaseKernelMinor            : "44"
  MemoryType                    : Application # Application / System / Base
  HandleTableSize: 512
  IORegisterMapping: 
   - 1ff50000-1ff57fff
   - 1ff70000-1ff77fff
  MemoryMapping: 
   - 1f000000-1f5fffff:r
  SystemCallAccess: 
   ControlMemory: 1
   QueryMemory: 2
   ExitProcess: 3
   GetProcessAffinityMask: 4
   SetProcessAffinityMask: 5
   SetProcessIdealProcessor: 6
   GetProcessIdealProcessor: 7
   CreateThread: 8
   ExitThread: 9
   SleepThread: 10
   GetThreadPriority: 11
   SetThreadPriority: 12
   GetThreadAffinityMask: 13
   SetThreadAffinityMask: 14
   GetThreadIdealProcessor: 15
   SetThreadIdealProcessor: 16
   GetCurrentProcessorNumber: 17
   Run: 18
   CreateMutex: 19
   ReleaseMutex: 20
   CreateSemaphore: 21
   ReleaseSemaphore: 22
   CreateEvent: 23
   SignalEvent: 24
   ClearEvent: 25
   CreateTimer: 26
   SetTimer: 27
   CancelTimer: 28
   ClearTimer: 29
   CreateMemoryBlock: 30
   MapMemoryBlock: 31
   UnmapMemoryBlock: 32
   CreateAddressArbiter: 33
   ArbitrateAddress: 34
   CloseHandle: 35
   WaitSynchronization1: 36
   WaitSynchronizationN: 37
   SignalAndWait: 38
   DuplicateHandle: 39
   GetSystemTick: 40
   GetHandleInfo: 41
   GetSystemInfo: 42
   GetProcessInfo: 43
   GetThreadInfo: 44
   ConnectToPort: 45
   SendSyncRequest1: 46
   SendSyncRequest2: 47
   SendSyncRequest3: 48
   SendSyncRequest4: 49
   SendSyncRequest: 50
   OpenProcess: 51
   OpenThread: 52
   GetProcessId: 53
   GetProcessIdOfThread: 54
   GetThreadId: 55
   GetResourceLimit: 56
   GetResourceLimitLimitValues: 57
   GetResourceLimitCurrentValues: 58
   GetThreadContext: 59
   Break: 60
   OutputDebugString: 61
   
  AccessibleSaveDataIds:
   # 0x00000
   # 0x00000
   # 0x00000
   # 0x00000
   # 0x00000
   # 0x00000

  InterruptNumbers:
  ServiceAccessControl:
   - $hioFIO
   - $hostio0 
   - $hostio1 
   - cfg:u 
   - fs:USER 
   - gsp::Gpu 
   - hid:USER 
   - ndm:u 
   - pxi:dev 
   - APT:A 
   - ac:u 
   - act:u 
   - am:app 
   - boss:U 
   - cam:u 
   - cecd:u 
   - dlp:FKCL 
   - dlp:SRVR 
   - dsp::DSP 
   - frd:u 
   - http:C 
   - ir:USER 
   - ldr:ro 
   - mic:u 
   - news:u 
   - nfc:u
   - nim:aoc 
   - nwm::UDS 
   - ptm:u
   - soc:U
   - ssl:C
   - y2r:u

SystemControlInfo:
  SaveDataSize: 1M
  RemasterVersion: 0000
  StackSize: 0x00040000
  Dependency: 
    a: 0x0004013000002402L
    a: 0x0004013000003802L
    a: 0x0004013000001502L
    a: 0x0004013000003402L
    a: 0x0004013000001602L
    a: 0x0004013000002602L
    a: 0x0004013000001702L
    a: 0x0004013000001802L
    a: 0x0004013000002702L
    a: 0x0004013000002802L
    a: 0x0004013000001a02L
    a: 0x0004013000003202L
    a: 0x0004013000001b02L
    a: 0x0004013000001c02L
    a: 0x0004013000001d02L
    a: 0x0004013000002902L
    a: 0x0004013000001e02L
    a: 0x0004013000003302L
    a: 0x0004013000001f02L
    a: 0x0004013000002002L
    a: 0x0004013000002b02L
    a: 0x0004013000003502L
    a: 0x0004013020004002L
    a: 0x0004013000002c02L
    a: 0x0004013000002d02L
    a: 0x0004013000002102L
    a: 0x0004013000003102L
    a: 0x0004013000002202L
    a: 0x0004013000003702L
    a: 0x0004013000002e02L
    a: 0x0004013000002302L
    a: 0x0004013000002f02L

Please help me with that x_x
 
Last edited by DJPlayer,

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
Ok the 3DS Simple CIA Converter by Riku works, so you can keep work now.
So what I've to do?
I've rebuilt the Game to 3ds with 3DS Builder (with rebuild/modified romfs, exefs (rebuild) and the decrypted ExHeader (because it does not work with the encrypted one?)
After that I've created XORPADs for the exefs and the exheader for the 3DS Simple Cia Converter.
When I try to convert the rebuild 3DS with the new generated xorpads, I'll get the error that there was a error with decrypting the exheader (wrong Xorpdad?).




EDIT: I CAN build the original 3ds-rom (without any edits) with this program but I can't convert the rebuilded rom because 3DS Builder wants me to use the DecryptedExheader.bin. When I build this rom, the exheader is already decrypted and Simple 3DS Simple CIa Converter is not able to convert the game because it tries to decrypt a already decrypted exheader...
 
D

Deleted User

Guest
So what I've to do?
I've rebuilt the Game to 3ds with 3DS Builder (with rebuild/modified romfs, exefs (rebuild) and the decrypted ExHeader (because it does not work with the encrypted one?)
After that I've created XORPADs for the exefs and the exheader for the 3DS Simple Cia Converter.
When I try to convert the rebuild 3DS with the new generated xorpads, I'll get the error that there was a error with decrypting the exheader (wrong Xorpdad?).




EDIT: I CAN build the original 3ds-rom (without any edits) with this program but I can't convert the rebuilded rom because 3DS Builder wants me to use the DecryptedExheader.bin. When I build this rom, the exheader is already decrypted and Simple 3DS Simple CIa Converter is not able to convert the game because it tries to decrypt a already decrypted exheader...
I don't know then. I'll still try.
 
D

Deleted User

Guest
I succeeded converting the rom to cia with Riku's 3DS to CIA converter. It didn't succeded ecrypting it but it worked. Can you try the .cia on my MEGA page (when it gets uploaded). Don't worry, i didn't link to the .cia. I only linked to my page.
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
I succeeded converting the rom to cia with Riku's 3DS to CIA converter. It didn't succeded ecrypting it but it worked. Can you try the .cia on my MEGA page (when it gets uploaded). Don't worry, i didn't link to the .cia. I only linked to my page.
Did you made some changes on the rom (new romfs.bin or something)?
DId you tried to install and play it?

EDIT: your mega.nz link moves me to my account
 
Last edited by DJPlayer,
D

Deleted User

Guest
Did you made some changes on the rom (new romfs.bin or something)?
DId you tried to install and play it?

EDIT: your mega.nz link moves me to my account
Oh ok. Here then.
 
Last edited by ,

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
Oh ok. Here then
Did you tried to install and play it?
You converted it with SDK5 which can't work because it use SDK9.
Wait, you were able to convert a rebuilded rom (with decryptedExheader) to cia with this tool?
I always get a error that I use wrong xorpads (because the tool can't handle 3ds-roms with decrypted exheaders).
The originalrom can be converted to cia, ofcourse. It worked for me, too.
But I can't convert rebuilded roms because of the already decryptedExheader.
 
D

Deleted User

Guest
Did you tried to install and play it?
You converted it with SDK5 which can't work because it use SDK9.
Wait, you were able to convert a rebuilded rom (with decryptedExheader) to cia with this tool?
I always get a error that I use wrong xorpads (because the tool can't handle 3ds-roms with decrypted exheaders).
The originalrom can be converted to cia, ofcourse. It worked for me, too.
But I can't convert rebuilded roms because of the already decryptedExheader.
I haven't tested it yet. I want you to test it to see if it works. I don't have much space on my SD card :/
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
You haven't removed the region lock, do you?
Installed it: not available in HOME MENU + "An Error occured" while starting through devmenu
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    DinohScene @ DinohScene: ahh nothing beats a coffee disaronno at work