Onechanbara Z2: Chaos .cat

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Onechanbara Z2: Chaos .cat

Post by makc_ar »

How to unpack all files?

Code: Select all

offset   filesize   filename
--------------------------------------
  00000090 190767     00000000.dat
  0002e9c0 734586     00000001.dat
  000e1f40 190767     00000002.dat

Error: incomplete input file 0: C:\Onechanbara Z2 Chaos\eb00_z2.cat
       Can't read 1 bytes from offset 504859a2.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0    59%   1116411    1887952

Last script line before the error or that produced the error:
  36  get NAME string


Code: Select all

# Hyperdimension Neptunia: Producing Perfection
# script for QuickBMS http://quickbms.aluigi.org

get DUMMY long  # 3
get DUMMY long  # 1
get DUMMY long  # 0
get INFO_OFF long
get DATA_SIZE long
get DUMMY long  # 5
get FILES long
goto INFO_OFF
get DUMMY long  # 1
get FILES long
get DUMMY long  # 5
get DUMMY long  # 0x10
get DUMMY long  # 0
for i = 0 < FILES
    get OFFSET long
    math OFFSET + INFO_OFF
    putarray 0 i OFFSET
next i
for i = 0 < FILES
    get SIZE long
    putarray 1 i SIZE
next i
for i = 0 < FILES
    get NAME_OFF long
    math NAME_OFF + INFO_OFF
    putarray 2 i NAME_OFF
next i
for i = 0 < FILES
    getarray OFFSET   0 i
    getarray SIZE     1 i
    getarray NAME_OFF 2 i
    goto NAME_OFF
    get NAME string
    log NAME OFFSET SIZE
next i