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.

I want reimport a CPK file. [Dai-3-ji super robot taisen Z]

Featured Replies

  • Author
  • Localization

kimkaphwan, posted Sun Apr 19, 2015 6:27 am (4632)


Hi everyone. Nice to meet you all.

I open this thread to ask for help with RPW_DATA.CPK file of dai-3-ji super robot taisen Z(PS3).

First I try unpack the cpk file to 0000000.xml as qucikbms with script 0.3a.

Image

And some modified the file and try reimport xml. to cpk file, but it's not active with error message.

Image

I think it need speical scripts....

Please help me..I want edit the game...
  • Author
  • Localization

aluigi, posted Sun Apr 19, 2015 12:40 pm (4641)


Unfortunately you can't use the script to reimport that file because the compression algorithm is available only in decompression mode, so there is no way to recompress the data.
*edit*
The code in the crilayla.py is only decompression so a compression is not available.
*edit*

As far as I know there are also some tools to rebuild the CPK archives:
https://github.com/kirisetsz/cpktools
  • Author
  • Localization

kimkaphwan, posted Sun Apr 19, 2015 12:52 pm (4643)


aluigi wrote:
Unfortunately you can't use the script to reimport that file because the compression algorithm is available only in decompression mode, so there is no way to recompress the data.
*edit*
The code in the crilayla.py is only decompression so a compression is not available.
*edit*

As far as I know there are also some tools to rebuild the CPK archives:
https://github.com/kirisetsz/cpktools


Thank you for the information and interesting

I hope this problem will be solved.
  • Author
  • Localization

aluigi, posted Sun Apr 19, 2015 3:25 pm (4647)


I have a very good news: QuickBMS 0.6.3 will have the recompression algorithm :)
  • Author
  • Localization

kimkaphwan, posted Sun Apr 19, 2015 10:46 pm (4659)


aluigi wrote:
I have a very good news: QuickBMS 0.6.3 will have the recompression algorithm :)


I really appreciate your kindness. :D

You are good programer.
  • Author
  • Localization

kimkaphwan, posted Sun May 03, 2015 12:35 pm (5004)


Hi. dear

I activated the new vcrsion Quickbms(0.6.3).

First i selected Script 0.3a.

And selected the original file.(RPW_DATA.CPK)

Last selected edited the file(00000000.xml)

But It's not reimported.

Something I wrong used Quickbms?

Image
  • Author
  • Localization

aluigi, posted Sun May 03, 2015 1:15 pm (5005)


Read section 3 of quickbms.txt.
Probably you modified the location of the original file or its name and so quickbms is unable to find the edited file.
  • Author
  • Localization

MANOHITO, posted Mon May 04, 2015 10:45 pm (5049)


You do not need to repack the file 0000000.xml.
But the header of the file need to be as CPK.

You can load the file by connecting the header of other CPK file and 0000000.xml and editting the file size of the header.

For example I used RPW_DATA.CPK of dai-3-ji super robot taisen Z Digoku-Hen (PS3) by following procedure;

a.Copy 00000000-0000096F in RPW_DATA.CPK of Dai-3-ji Super Robot Taisen Z Digoku-Hen (PS3).

b.Paste the data to a new file.

c.Copy all data in 0000000.xml (extracted data from RPW_DATA.CPK of Dai-3-ji Super Robot Taisen Z Tengoku-Hen (PS3)).

d.Paste the data to 00000970 in the file created in "b".

e.Edit the file-size
e1. 000000F4 07 B3 90 -> 08 B0 30
e2. 0000010C 07 B3 84 -> 08 B0 24
e3. 00000114 07 B3 84 -> 08 B0 24
e4. 0000091A 07 B3 84 -> 08 B0 24
e5. 0000091E 07 B3 84 -> 08 B0 24

f.Rename the file to "RPW_DATA.CPK" and replace original "RPW_DATA.CPK".

Final version of Dai-3-ji Super Robot Taisen Z Tengoku-Hen (PS3) is 1.02 now.
I reccomend to replace "RPW_DATA.CPK" included in 1.02 pkg not in original BD.
  • Author
  • Localization

aluigi, posted Tue May 05, 2015 5:29 am (5052)


Do you mean something like this?
Code:
endian big
set MEMORY_FILE compressed "eNrtlc9rE0EUx18aISoUqi0ioYcIihZCaKpQBRHDbtqsbtqQbKpYD667k7jmxy67Ywl68SCCF70KXryKFwVP4h/g2b/Bv0B68qLvuzvJJoeCRw95MJ/5vvdm3uwMJE9r3C78IaKbWQbmtrVFlL3K8pAo4yqdoyIFxIE9xqkzjALUGrAJVwPqK4w21H2gCwTAM6x7AbzBkreIvQc wv0C9Q34jiU/gJ9wDzmbWbAYOWARWEEsD1wAyk3GNaAC3AIawB2ggx2P7zHCPGME9znwEtnXwDu4H/YZnwnGIplOBCAt/Fbh4zFRPnE/nU/z2KMsR4u0NPGQ kpH2PWdtmneIC3o1YTtipDagWtLofOwvIGgLa8vWt5TQZo/lGIodzudSMixF2cs30miUOOIFjpUk MMS5WqprHqOGakMWM6hhrbaQ4SORaqfjdNQqsThvbDvnAbttMT7nSE72Srz5N2f8pzoviaEW2H/pMgooqUYZSsSuK6FwpH qHHOn4fnvdEGHn kJriwItFpe91h9TyQylcdSR279gD/gJDxxPXfZfPO Cd/ICDAT8gaRxySA96uLDapp4vrQGPB7ZjthAn/tXUtY3Slc3S kaxoJvm5VKZ9TrRq1 yRf 1zW1uc5vbJWdNaxqGtavF/T8z3f8z6PlFHjqPUdzVjtFZ4oTFWAby 4xzwMXZvkl31XiU9jf8wRrDjp/815vJVCP0ATNmjWj6fGqgLobSOcom dM8loBlYHX2CJMMPe2a1ZEMbUdCT o UDXL0KruSXx7E3Unl1tNGjua/OwJtSNP Ef7C/jbAQY="
get SIZE asize
append
log MEMORY_FILE 0 SIZE
append

goto 0x120 MEMORY_FILE
put SIZE long MEMORY_FILE
goto 0x140 MEMORY_FILE
put SIZE long MEMORY_FILE
goto 0x919 MEMORY_FILE
put SIZE long MEMORY_FILE

get SIZE asize MEMORY_FILE
log "RPW_DATA_NEW.CPK" 0 SIZE MEMORY_FILE
  • Author
  • Localization

kimkaphwan, posted Tue May 05, 2015 1:36 pm (5057)


Hmm.

Hello. MR. MANOHITO.

I dont understand "e.Edit the file-size"

Can you explain in detail?
  • Author
  • Localization

MANOHITO, posted Wed May 06, 2015 1:05 am (5059)


It is mean modifying the value indicate data size with hex editor manually.

I confirmed data size of 0000000.xml extracted from 1.02 pkg.
Windows Property menu showed 569,380 Bytes (08B024 hex).
In CPK files, the data size is indicated at following address;
0x000000F4
0x0000010C
0x00000114
0x0000091A
0x0000091E

I modified the value of the addreesses to "08 B0 24" with hex editor manually.
And only at 0x000000F4, I modified to "08 B0 30".
  • Author
  • Localization

kimkaphwan, posted Wed May 06, 2015 1:14 am (5060)


I see.

I worked 1.01 version. So i couldn't find the parts.

I will try 1.02 version.

Thank you.
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.