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*
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*
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.
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
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".