Page 1 of 1
Fate/Extra pak archives
Posted: Fri Dec 16, 2011 4:40 am
by finale00
I extracted the cpk archive using cpk_unpack and among some compressed archives I found some pak archives which were uncompressed (a lot of them had "RIFF WAVE" near the top)
The format is looks simple and should take some people only a couple minutes (just a table at the top followed by the data afterwards) but ya here are some samples:
Re: Fate/Extra pak archives
Posted: Fri Dec 16, 2011 5:56 pm
by WRS
Code: Select all
get FILES short
get UNKNOWN short
for f = 0 < FILES
get TMP long
putarray 0 f TMP
next f
padding 16
for f = 0 < FILES
getdstring NAME 64
savepos POS
getarray SIZE 0 f
log NAME POS SIZE
math POS += SIZE
goto POS
next f
Re: Fate/Extra pak archives
Posted: Fri Dec 16, 2011 9:55 pm
by finale00
Now I know how to use arrays lol
Re: Fate/Extra pak archives
Posted: Tue Mar 27, 2018 11:54 am
by makcar
Re: Fate/Extra pak archives
Posted: Tue Mar 27, 2018 7:06 pm
by Acewell
this bms script will decompress your sample
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
comtype lzss0
idstring "IECP"
get ZSIZE asize
get SIZE long
savepos OFFSET
math ZSIZE - OFFSET
get NAME basename
string NAME + _decmp.cmp
clog NAME OFFSET ZSIZE SIZE
Re: Fate/Extra pak archives
Posted: Tue Mar 27, 2018 10:13 pm
by makcar
Thanks a lot
AceWell! How to edit
string "bla-bla-bla" for all files compression?
cmp_compressor.bms:
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
comtype lzss0
idstring "bla-bla-bla"
get ZSIZE asize
get SIZE long
savepos OFFSET
math ZSIZE - OFFSET
get NAME basename
string NAME + _decmp.cmp
clog NAME OFFSET ZSIZE SIZE
Re: Fate/Extra pak archives
Posted: Tue Mar 27, 2018 10:59 pm
by Acewell
if you're sure they all use the same compression you could just replace that line with one of these
or
or
i hope i'm understanding what you mean
Re: Fate/Extra pak archives
Posted: Tue Mar 27, 2018 11:55 pm
by makcar
That's right?
Re: Fate/Extra pak archives
Posted: Wed Mar 28, 2018 12:56 am
by Acewell
makcar wrote:That's right?
i guess so, modding is not my area, but it looks okay.