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.

Offzip reimported difference

Featured Replies

  • Author
  • Localization

Yazoodle, posted Fri May 24, 2019 11:41 am (47986)


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

aluigi, posted Sat May 25, 2019 6:14 am (48003)


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

Yazoodle, posted Sat May 25, 2019 9:57 am (48006)


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

aluigi, posted Sat May 25, 2019 10:07 am (48008)


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

yamato, posted Wed Aug 14, 2019 7:58 pm (50310)


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

aluigi, posted Sat Mar 28, 2020 7:52 pm (55303)


you didn't specify the output file:
Code:
packzip.exe -m 2 -o 0x00000000 input_file output_file
  • Author
  • Localization

lorak, posted Sat Aug 21, 2021 2:51 pm (65806)


Many files contain compressed and uncompressed files. It seems that offzip only detects, extracts and reimports compressed files and uncompressed files are totally ignored.

Is offzip capable to extract and reimport uncompressed files from and into another file?
If not, as I suppose is the case, which tool would help me do to it?
  • Author
  • Localization

aluigi, posted Sat Aug 21, 2021 8:22 pm (65810)


Data in files have a starting and ending point, offzip scans the compressed data in files for finding these two parameters and dumping the data.
Therefore it's impossible to dump uncompressed data because it can be anywhere.
You need to a tool/script correctly parsing that specific format (ask in Game Archive).
  • Author
  • Localization

lorak, posted Sat Aug 21, 2021 11:35 pm (65813)


Thanks for the information!
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.