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

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

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

Post by kimkaphwan »

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...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I want reimport a CPK file. [Dai-3-ji super robot taisen

Post by aluigi »

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
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

Re: I want reimport a CPK file. [Dai-3-ji super robot taisen

Post by kimkaphwan »

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.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I want reimport a CPK file. [Dai-3-ji super robot taisen

Post by aluigi »

I have a very good news: QuickBMS 0.6.3 will have the recompression algorithm :)
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

Re: I want reimport a CPK file. [Dai-3-ji super robot taisen

Post by kimkaphwan »

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.
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

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

Post by kimkaphwan »

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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

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.
MANOHITO
Posts: 2
Joined: Mon May 04, 2015 9:45 pm

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

Post by MANOHITO »

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.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

Do you mean something like this?

Code: Select all

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
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

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

Post by kimkaphwan »

Hmm.

Hello. MR. MANOHITO.

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

Can you explain in detail?
MANOHITO
Posts: 2
Joined: Mon May 04, 2015 9:45 pm

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

Post by MANOHITO »

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".
kimkaphwan
Posts: 6
Joined: Sun Apr 19, 2015 6:20 am

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

Post by kimkaphwan »

I see.

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

I will try 1.02 version.

Thank you.