ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Nov 13, 2019 2:30 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri May 24, 2019 11:41 am 

Joined: Thu May 23, 2019 12:14 pm
Posts: 2
I'm trying to debug a problem where the game I'm trying to mod is crashing when it loads. So I thought I would try to extract the file I want to edit and then reimport it with no changes to see if its a problem with the way offzip is rebuilding the file.

My question is.. If I reimport the same file with no changes should it look the same as the original in the pack2 file?
Image

I'm not sure if CRC checking is going on or there is a problem with the data structure of the file when its loading.


Top
   
PostPosted: Sat May 25, 2019 6:14 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10821
It's all normal because different implementations of the zlib algorithm (header+deflate+crc) and even different versions of the same library produce different outputs.


Top
   
PostPosted: Sat May 25, 2019 9:57 am 

Joined: Thu May 23, 2019 12:14 pm
Posts: 2
Ok,I also notices Looking at the zLib headers the original us using 78 DA (Best compression) and Offzip imported with 78 01 (No compression/Low)

is there a way to set that via command line in offzip, packzip, etc?


Top
   
PostPosted: Sat May 25, 2019 10:07 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10821
No, that field is not related to the compression level. It's the FCHECK field:
Code:
            CM CINFO FCHECK FDICT FLEVEL
zopfli      8  7     1      0     1
advancecomp 8  7     26     0     1
uberflate   8  7     1      0     1

All my tools use the best compression level and settings.
packzip allows to set the mode with the -m option:
Code:
-m MODE  mode:
         zlib/deflate
           0 default strategy
           1 filtered
           2 huffman only
           3 rle
           4 fixed


Top
   
PostPosted: Wed Aug 14, 2019 7:58 pm 

Joined: Fri Nov 30, 2018 8:46 pm
Posts: 9
hi

aluigi, do you have an example for the -m option in packzip...

i tried packzip.exe -m 2 -o 0x00000000 00000000.dat archive file but it failed (error wrong argument)...

if i use this argument only -o 0x00..... it works but i got same problem than this subject...so file is not readable in the game...

Any idea?

thx


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