XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Oct 21, 2018 9:41 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Fate/Extra pak archives
PostPosted: Fri Dec 16, 2011 4:40 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Sat Apr 09, 2011 1:22 am
Posts: 2387
Has thanked: 170 times
Have thanks: 293 times














You can make the ads go away by registering

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:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Model Import Plugins/Scripts

Noesis Plugins | Reference files

Reference
Guide to 3D model reversal | 3D glossary


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Fri Dec 16, 2011 5:56 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 595
Has thanked: 72 times
Have thanks: 132 times
Code:
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:


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Fri Dec 16, 2011 9:55 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Sat Apr 09, 2011 1:22 am
Posts: 2387
Has thanked: 170 times
Have thanks: 293 times
Now I know how to use arrays lol

_________________
Model Import Plugins/Scripts

Noesis Plugins | Reference files

Reference
Guide to 3D model reversal | 3D glossary


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Tue Mar 27, 2018 11:54 am 
Offline
veteran
User avatar

Joined: Mon May 12, 2014 10:41 pm
Posts: 152
Has thanked: 22 times
Have thanks: 42 times
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


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Tue Mar 27, 2018 7:06 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1107
Has thanked: 2227 times
Have thanks: 627 times
makcar wrote:

this bms script will decompress your sample :D
Code:
# 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

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Tue Mar 27, 2018 10:13 pm 
Offline
veteran
User avatar

Joined: Mon May 12, 2014 10:41 pm
Posts: 152
Has thanked: 22 times
Have thanks: 42 times
Thanks a lot AceWell! How to edit string "bla-bla-bla" for all files compression?

cmp_compressor.bms:
Code:
# 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


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Tue Mar 27, 2018 10:59 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1107
Has thanked: 2227 times
Have thanks: 627 times
if you're sure they all use the same compression you could just replace that line with one of these :D
Code:
get blablabla long

or
Code:
goto 0x4

or
Code:
getdstring blablabla 4

i hope i'm understanding what you mean :D

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Tue Mar 27, 2018 11:55 pm 
Offline
veteran
User avatar

Joined: Mon May 12, 2014 10:41 pm
Posts: 152
Has thanked: 22 times
Have thanks: 42 times
That's right?


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Fate/Extra pak archives
PostPosted: Wed Mar 28, 2018 12:56 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1107
Has thanked: 2227 times
Have thanks: 627 times
makcar wrote:
That's right?

i guess so, modding is not my area, but it looks okay. :]

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group