Decompression in python

Programming related discussions related to game research
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Decompression in python

Post by yusuf2020 »

Code: Select all

clog "" OFFSET ZSIZE SIZE

This is the BMS code.
I guess this decompress the data

How can i do this in python ?
Also what does it do ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Decompression in python

Post by aluigi »

What game and script?
Is there a comtype command?
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Re: Decompression in python

Post by yusuf2020 »

It is nioh,
https://www.dosya.tc/server32/89s69x/ar ... 9.rar.html
this is archive
this is the bms

Code: Select all

# Nioh (LNK)
# script for QuickBMS http://quickbms.aluigi.org

idstring "K300"
get ZERO long
get FILES longlong
get DUMMY longlong
get ALIGN longlong
for i = 0 < FILES
    get OFFSET longlong
    get ZSIZE longlong
    get SIZE longlong
    get ZIP longlong    # I have no compressed samples!
    if ZIP == 0
        log "" OFFSET SIZE
    else
        clog "" OFFSET ZSIZE SIZE # ?
    endif
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Decompression in python

Post by aluigi »

It's the zlib compression, search on google: zlib decompress python
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Re: Decompression in python

Post by yusuf2020 »

Thank you