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.

PackZip 0.3 and files bigger 2GB

Featured Replies

  • Author
  • Localization

defang, posted Fri Jul 24, 2015 8:00 pm (6589)


Hello, I was trying to replace textures in Witcher 3. They are in texture.cache files. I tried QuickBMS, it works on small files from DLCs. But it failed when I tried export textures from main pack which was about 3.9GB. So I tried OffZip. It exported textures, and PackZip was able to import them back. But again, only small archives were ok. Big archive failed with "-seek offset....Invalid argument". So I checked your code and found this: you are using "fseek()" which cant work with files bigger than 2GB. I replaced it with "fseeko64()" and it works.
Code:
packzip.c
71:  u32     offset      = 0,      ->  unsigned long long     offset      = 0x0,
138:     case 'o': offset        = get_num(argv[ i]);   break;       ->             case 'o': offset        = strtoull(argv[ i],NULL,0);   break;
179:fprintf(stderr,
        "- offset        0xx\n"
        "- windowbits    %d\n",
        offset, wbits);

    if(offset) {
        fprintf(stderr, "- seek offset\n");
        if(fseek(fdo, offset, SEEK_SET)) std_err();
    }
   
   
   
    ->
   
    ?    fprintf(stderr,
        "- offset        %llx\n",
       
        offset);
fprintf(stderr,
       
        "- windowbits    %d\n"
        ,wbits);
    //fseek();
   if(offset) {
        fprintf(stderr, "- seek offset\n");
        if(fseeko64(fdo, offset, SEEK_SET)) std_err();
    }



So, OffZip/PackZip can modify Witcher 3 textures.
  • Author
  • Localization

aluigi, posted Sat Jul 25, 2015 8:36 pm (6627)


Yeah you are right, differently than other tools like offzip and quickbms, packzip doesn't have the support for big files.
I guess the reason is simply because the last times I updated it was in 2013 and 2011 :)
Anyway no problem, I will copy&paste the needed code from offzip and then I will release the new version.
Thanks.

It's strange that quickbms fails with that cache file, I remember that there were some problems but then I found a good way to handle that file.
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.