ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Oct 18, 2021 4:06 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Decompression in python
PostPosted: Mon Feb 22, 2021 12:13 pm 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 105
Code:
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 ?


Top
   
PostPosted: Mon Feb 22, 2021 9:42 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12549
What game and script?
Is there a comtype command?


Top
   
PostPosted: Tue Feb 23, 2021 9:18 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 105
It is nioh,
https://www.dosya.tc/server32/89s69x/ar ... 9.rar.html
this is archive
this is the bms
Code:
# 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


Top
   
PostPosted: Tue Feb 23, 2021 9:51 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12549
It's the zlib compression, search on google: zlib decompress python


Top
   
PostPosted: Tue Feb 23, 2021 10:07 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 105
Thank you


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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