Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

ZeptoLab's .raw.zst / .pb

Featured Replies

  • Author
  • Localization

SeriousNorbo, posted Wed Jun 20, 2018 6:20 pm (36061)


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
  • Author
  • Localization

Acewell, posted Sat Jun 23, 2018 5:56 am (36127)


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 = rgb565, 2 = rgba4444, 3 = rgb565
get SIZE long
get ZSIZE long
savepos OFFSET
get NAME basename
string NAME - ".raw"
string NAME "_dcmp.raw"
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 :)
*script updated August 6, 2020*

tex_ZeptoLabCATS_raw.zip

  • Author
  • Localization

SeriousNorbo, posted Sun Jun 24, 2018 8:17 pm (36191)


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
  • Author
  • Localization

Acewell, posted Sun Jun 24, 2018 9:29 pm (36192)


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. :)
  • Author
  • Localization

SeriousNorbo, posted Mon Jun 25, 2018 1:50 am (36195)


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
  • Author
  • Localization

Acewell, posted Mon Jun 25, 2018 3:11 am (36196)


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.
  • Author
  • Localization

SeriousNorbo, posted Mon Jun 25, 2018 2:19 pm (36204)


Oh, right, i was using outdated version of QuickBMS. :?

I tried on 0.8.4 and it worked.

Thanks for help. :)
  • Author
  • Localization

tontonGrim, posted Sun Jun 16, 2019 4:32 pm (48842)


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: [email protected]
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
  • Author
  • Localization

SeriousNorbo, posted Thu Aug 06, 2020 4:24 pm (57930)


After recent update some files cannot be viewed.

Files have now .raw extension and QBMS output files will have no extension, but renaming them back to .raw will let you view them in Noesis.

But sadly, some files can't be viewed even after doing this, could you update the script, please?

I attached two files that not work in any way, and one that after renaming works fine.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.