Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Fate/Extra pak archives

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Fate/Extra pak archives

Post 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:
You do not have the required permissions to view the files attached to this post.
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: Fate/Extra pak archives

Post 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
Useful tool links:
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Fate/Extra pak archives

Post by finale00 »

Now I know how to use arrays lol
User avatar
makcar
veteran
Posts: 154
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 45 times

Re: Fate/Extra pak archives

Post by makcar »

Someone decompressor\compressor or fix WRS script?
Аll .cmp: http://www120.zippyshare.com/v/o04JRKjc/file.html
000001.cmp (original) - https://zenhax.com/download/file.php?mode=view&id=4339
000001.cmp (decompress) - https://zenhax.com/download/file.php?mode=view&id=4338
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Fate/Extra pak archives

Post by Acewell »

makcar wrote:000001.cmp (original) - https://zenhax.com/download/file.php?mode=view&id=4339
this bms script will decompress your sample :D

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
User avatar
makcar
veteran
Posts: 154
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 45 times

Re: Fate/Extra pak archives

Post 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
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Fate/Extra pak archives

Post by Acewell »

if you're sure they all use the same compression you could just replace that line with one of these :D

Code: Select all

get blablabla long
or

Code: Select all

goto 0x4
or

Code: Select all

getdstring blablabla 4
i hope i'm understanding what you mean :D
User avatar
makcar
veteran
Posts: 154
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 45 times

Re: Fate/Extra pak archives

Post by makcar »

That's right?
You do not have the required permissions to view the files attached to this post.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Fate/Extra pak archives

Post by Acewell »

makcar wrote:That's right?
i guess so, modding is not my area, but it looks okay. :]
Post Reply