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.

HELP ME,to calculate zstd compression

Featured Replies

  • Author
  • Localization

Wrecker3000, posted Tue Dec 07, 2021 9:35 am (68005)


Hey Aluigi, can you tell me which script to use for unpacking pak files in pubg mobile
  • Author
  • Localization

TUNBudi06, posted Tue Dec 07, 2021 10:41 am (68006)


Hi bro, can you explain further?

Bcz is that data(about hex below) i just find it on exe not in elf(for static Linux)


How to do it:

- open quickbms.exe with a hex editor
- search the string "SET THIS BYTE X TO 0x00"
- replace the 'X' (0x58) with a NULL (0x00):
53 45 54 20 54 48 49 53 20 42 59 54 45 20 58 20 SET THIS BYTE X
53 45 54 20 54 48 49 53 20 42 59 54 45 20 00 20 SET THIS BYTE

- upx.exe -9 quickbms.exe

- copy /b quickbms.exe script.bms output.exe

That's all, anyway if you want to use the "classical" way and being
able to specify options, input file and output folder, it's better
to use the BAT solution with the -G option for the GUI mode:

EXTRACT.BAT:
quickbms.exe -G OPTIONS SCRIPT INPUT OUTPUT
  • Author
  • Localization

aluigi, posted Tue Dec 07, 2021 1:38 pm (68010)


That feature is not available on Linux because the GUI mode exists on Windows only, for modders it's easy to tell users to just run an exe without having knowledge of what a script is.

On Linux you need to specify the input file and output folder in any case so it has absolutely no sense or advantage to embed a script... who needs that probably needs to write his own tools instead of relying on a general purpose big tool like quickbms.
  • Author
  • Localization

TUNBudi06, posted Tue Dec 07, 2021 1:47 pm (68011)


Yah..,its ok
  • Author
  • Localization

TUNBudi06, posted Thu Dec 09, 2021 12:05 pm (68078)


Hai aluigi,do you know how to calculate zlib??


Bcz some file in .pak in contain zlib and zstd compression


So do you can make it


IM sorry
Cause i don't know about the compression method and how to calculate??
  • Author
  • Localization

aluigi, posted Thu Dec 09, 2021 12:35 pm (68083)


Deflate is the compression algorithm while zlib is a container of deflate data.
In short zlib is header deflate crc. There is no "magic" signature unlike zstd.

zlib data is ok to scan inside files due to the presence of the final crc that avoids the false positives.
I use offzip for scanning zlib:
https://aluigi.altervista.org/mytoolz.htm#offzip

For example:
offzip -a INPUT_FOLDER OUTPUT_FOLDER

The default scanner is zlib which does NOT get deflate.
deflate spits tons of false positives and therefore is not reliable, it's used if you specify the -z -15 option.
  • Author
  • Localization

TUNBudi06, posted Thu Dec 09, 2021 12:47 pm (68085)


Oh ok,thanks again bro
  • Author
  • Localization

nix132, posted Fri Feb 18, 2022 6:20 pm (69982)


Can someone help me decompress the files in Arena of valor game?
  • Author
  • Localization

TUNBudi06, posted Wed Mar 16, 2022 3:37 am (70523)


IM not play that game
  • Author
  • Localization

ArunTech, posted Fri Mar 10, 2023 3:01 am (75775)


What u need help bro tunbudi06 contact me in discord

Assault Arun#2221
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.