Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Super Robot Wars 30 (PC) .cpk extracting, decryption & encryption

Featured Replies

  • Author
  • Localization

DooshDR, posted Thu Nov 18, 2021 10:06 am (67574)


descatal2 wrote:
DooshDR wrote:
Hi everyone and thank you so much for your great work. I tried to extract files from .cpk with CriPakGUI and some of them cannot be extracted. For example here: https://m.imgur.com/a/nECg6fC
When you try to extract files from some of the .cpk, you get an error related to "illegal characters". As you can see on the screenshot, there are a bunch of everywhere. I tried with command line and the error is "NullReferenceException".
None of the extraction tools work with these problematic cpk files.
Thanks

Edit: Here is the cpk: https://mega.nz/file/xYhGRSZT#S_F5VI6oF ... KzvCjoIIxA

Edit2: I managed to extract some files with a HEX editor. First I opened the .cpk with CriPakGUI then I selected the part corresponding to each file (offset data size) in the HEX editor. Then I decrypted the extracted file. Really tedious! But it's not efficient when there are 1500 files.


Yes, that's the CRIPAKGUI's problem I stated in my post above. Some of the CPK is just not supported by this tool due to ITOC header read error. Since even the CriPakTool cannot read the pointers properly, the code can't progress to the point where it can decrypt anything.

Hence, I don't have any answer to this but to ask anyone who has experience in CPK file extraction to look into this ITOC header problem. For now if you want you can write your own reader or modify the existing code to circumvent the error so that the pointers are correctly read.

Another experimental way is to try and file the file's starting pointer inside the CPK itself. It is quite recognizable since it is just a bunch of gibberish bytes. Once you found that, just copy everything from that point on until the file end, and paste it into a new binary file.
Then, decrypt the extracted byte arrays using the BMS script.
Once that is done, replace the byte you just copied inside the CPK with the newly decrypted byte arrays.
If everything is correct, the decrypted byte will have a CRILAYLA compression header, and replacing this will allow you to read the CPK file properly using official Cri extraction tools since it is not encrypted anymore.


Thanks. Finally managed to extract them.
I'm looking for the character bios files.
I managed to extract and decrypt every .cpk package. But still, no luck.
With a series of fails and retries, I managed to isolate a file that makes the game crash just when you click on a character bio.
So I unpacked the files from it and decrypted/uncompressed them. Not sure if it is indeed this one but still worth a try. It's unreadable. So maybe someone here can figure out what this is about. The name contains "pt" so maybe it's just "pointers".
Here's the archive.
  • Author
  • Localization

DooshDR, posted Thu Nov 18, 2021 6:28 pm (67576)


Ok, anyone knows how to decypher this? It's the content of one of the files.

Quote:
 _ R 
 ] 
?] W '13?~17[ '13? v
.;,~2;=*,13?90;*7=~ 1<1*~13 R  47~7*- '?N ?_ U_ R_ T_ N X _ Y 
 U] ~~
6;~2;?:;,~18~*6;~?**2;~
;?3p~;~7-~*6;~.721*~18~*6;~ 07*~or~*6;~?**2;4;*r~T?0:~*6;~3?70~.721*~18~13 00'~
=6112|~T1,.6?0?9;p~T~~;~7-~?~*?2;0*;:~<75;,~)7*6~?~(;,'~-61,*~8 -;r~< *~67-~8796*709~-5722-~?,;~T 0:;07?<2;p~T~~7-~31**1~7-~|;2.~*6;~);?5~?0:~=, -6~*6;~-*,109p|~ 6;0~8?=;:~)7*6~:?09;,r~T6;~)1 2:~,?*6;,~:7;~*6?0~97(;~ .~*6;~8796*p~1);(;,r~6;~6?-~?~3?41,~T-61,*=13709d~6;~7-~70=,;:7<2'~:;0-;~)6;0~7*~=13;-~*1~3?**;,-~18~*6;~6;?,*r~T?0:~870:-~673-;28~ 0?<2;~*1~8 22'~ 0:;,-*?0:~67-~8;;2709-~81,~67$ , ~ 0*72~?8*;,~T*6;~;0:~18~*6;~)?,~?9?70-*~*6;~?3.<;227?0-pT~~7-~?,3-~);,;~-;(;,;2'~704 ,;:~70~=13l~ b-,)s*?9c<;81,;s=2;?,s*;&*s6;,;`L oo??a?a?>IO?Uy??E
  • Author
  • Localization

Gamer101_123, posted Mon Aug 15, 2022 12:36 am (73012)


Would any kind soul can help me figure out how to convert the status image .bin files into .png files?
I'm in the process of extracting the CPK files and decrypt them, but like always, the end result are usually in .bin or .dat files (from older SRW games).
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.