ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Jul 18, 2019 5:47 pm

All times are UTC




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed Jun 20, 2018 6:20 pm 

Joined: Mon Mar 20, 2017 1:21 pm
Posts: 13
Hi, i'm looking for help with ripping images from ZeproLab's game C.A.T.S.

Backgrounds and sounds are in pretty basic formats, but images use some new, strange format ".raw.zst" (.raw file openers cannot read it), could someone help me to open it and convert into more understandable format, like .PNG or .DDS, please?

Also, each image has a .pb files, i'm sending those too, i'm not sure what's their purpose, but maybe they'll come handy.

http://www.mediafire.com/file/p9aq0ievl ... 0files.rar


Top
   
PostPosted: Sat Jun 23, 2018 5:56 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
here is bms script to decompress zst files :D
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

comtype zstd
idstring "\xbd\x08"
get WIDTH short
get HEIGHT short
get FORMAT byte //0 = rgba8888, 1 = bgr565, 2 = rgba4444
get SIZE long
get ZSIZE long
savepos OFFSET
get NAME basename
append
log NAME 0x2 0x5 //5 byte header - width, height, format
clog NAME OFFSET ZSIZE SIZE
append


and a Noesis python script to open the resulting raw files :)
Attachment:
tex_ZeptoLabCATS_raw.zip [623 Bytes]
Downloaded 62 times

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Sun Jun 24, 2018 8:17 pm 

Joined: Mon Mar 20, 2017 1:21 pm
Posts: 13
BMS script didn't worked. :(



Code:
- select the BMS script or plugin to use
- select the input archives/files to extract, type * or "" for whole folder and
subfolders
- select the output folder where extracting the files
- open input file E:\QBMS\CATS\GOLD_BODY.raw.zst
- open script E:\QBMS\CATSFiles.bms.txt
- set output folder E:\QBMS\CATS

  offset   filesize   filename
--------------------------------------
  00000002 5          GOLD_BODY.raw
  0000000f 524288     GOLD_BODY.raw
Info:  algorithm   478
       offset      0000000f
       input size  0x0000673a 26426
       output size 0x00080000 524288
       result      0xfffffffe -2

Error: the uncompressed data (-2) is bigger than the allocated buffer (524288)

Last script line before the error or that produced the error:
  14  clog NAME OFFSET ZSIZE SIZE

Press RETURN to quit


Top
   
PostPosted: Sun Jun 24, 2018 9:29 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
SeriousNorbo wrote:
BMS script didn't worked. :(

of course it works on your samples, i don't see any named GOLD_BODY.raw.zst,
you have to upload anything that doesn't work so i can examine and add support. :)

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Mon Jun 25, 2018 1:50 am 

Joined: Mon Mar 20, 2017 1:21 pm
Posts: 13
that "GOLD_BODY" was one of the files i sent earlier, just renamed.

Here are results of three other files which i uploaded:

Code:
- open input file E:\QBMS\CATS\chainsaw_1536_2048.raw.zst
- open script E:\QBMS\CATSFiles.txt
- set output folder E:\QBMS\CATS

  offset   filesize   filename
--------------------------------------
  00000002 5          chainsaw_1536_2048.raw
  0000000f 667392     chainsaw_1536_2048.raw
Info:  algorithm   478
       offset      0000000f
       input size  0x0000de19 56857
       output size 0x000a2f00 667392
       result      0xfffffffe -2

Error: the uncompressed data (-2) is bigger than the allocated buffer (667392)

Last script line before the error or that produced the error:
  14  clog NAME OFFSET ZSIZE SIZE

Press RETURN to quit


Code:
- open input file E:\QBMS\CATS\balloon_gun_1536_2048.raw.zst
- open script E:\QBMS\CATSFiles.txt
- set output folder E:\QBMS

  offset   filesize   filename
--------------------------------------
  00000002 5          balloon_gun_1536_2048.raw
  0000000f 1207552    balloon_gun_1536_2048.raw
Info:  algorithm   478
       offset      0000000f
       input size  0x000295e9 169449
       output size 0x00126d00 1207552
       result      0xfffffffe -2

Error: the uncompressed data (-2) is bigger than the allocated buffer (1207552)

Last script line before the error or that produced the error:
  14  clog NAME OFFSET ZSIZE SIZE

Press RETURN to quit


Code:
- open input file E:\QBMS\CATS\wheel_ultimate_1536_2048.raw.zst
- open script E:\QBMS\CATSFiles.txt
- set output folder E:\QBMS\CATS

  offset   filesize   filename
--------------------------------------
  00000002 5          wheel_ultimate_1536_2048.raw
  0000000f 2565312    wheel_ultimate_1536_2048.raw
Info:  algorithm   478
       offset      0000000f
       input size  0x0001fc98 130200
       output size 0x002724c0 2565312
       result      0xfffffffe -2

Error: the uncompressed data (-2) is bigger than the allocated buffer (2565312)

Last script line before the error or that produced the error:
  14  clog NAME OFFSET ZSIZE SIZE

Press RETURN to quit


Every of them created a .RAW file with size of 1kb which Noesis couldn't read.


EDIT: one of them had different error:
Code:
- open input file E:\QBMS\CATS\body_texture_dragon_1536_2048.raw.zst
- open script E:\QBMS\catss.txt
- set output folder E:\QBMS\CATS

  offset           filesize   filename
--------------------------------------
  0000000000000002 5          body_texture_dragon_1536_2048.raw
  000000000000000f 678496     body_texture_dragon_1536_2048.raw

Error: the uncompressed data (4294967294) is bigger than the allocated buffer (6
78496)

Last script line before the error or that produced the error:
  14  clog NAME OFFSET ZSIZE SIZE

Press RETURN to quit


Top
   
PostPosted: Mon Jun 25, 2018 3:11 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
as i said already, the script works fine for me on all your samples :)
make sure you have a new version of Quickbms, tested with 0.8.4.
it is not complex script, i see no reason for not working.

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Mon Jun 25, 2018 2:19 pm 

Joined: Mon Mar 20, 2017 1:21 pm
Posts: 13
Oh, right, i was using outdated version of QuickBMS. :?

I tried on 0.8.4 and it worked.

Thanks for help. :)


Top
   
PostPosted: Sun Jun 16, 2019 4:32 pm 

Joined: Sun Jun 16, 2019 4:21 pm
Posts: 1
Hello, (i'm french)

I would like to do the same thing as SeriousNorbo.

I tried your proposition, but I have another error message:

(it seems that the files are in another version (he have not zst extension) , can you help me?)
i joined files exemple at this post

##################################################
QuickBMS generic files extractor and reimporter 0.10.0
by Luigi Auriemma
e-mail: me@aluigi.org
web: aluigi.org
(Apr 28 2019 - 07:25:07)

quickbms.aluigi.org Homepage
zenhax.com ZenHAX Forum
@zenhax @quickbms Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files
- open input file D:\Downloads\com.zeptolab.cats.google_2019-05-16\assets\mr_640x960\game\vehicle_body\body_texture_cork_1.raw
- open script D:\Downloads\quickbms\cats.txt

Error: invalid datatype octet at line 7

Last script line before the error or that produced the error:
7 get FORMAT octet // 0 = rgba8888, 1 = bgr565, 2 = rgba4444

Press ENTER or close the window to quit
#######################################################

thank you very much for your help


Attachments:
File comment: this is severals exemples
game.zip [563.17 KiB]
Downloaded 10 times
Top
   
PostPosted: Fri Jun 21, 2019 4:36 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 614
use the bms script and Noesis python script from this thread on your samples. :D
https://forum.xentax.com/viewtopic.php? ... 25#p130078

_________________
Quickbms.com link thread
Search bms scripts


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited