Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[RELEASED] zip / gzip native multiplatfrom plugin

Discussion in 'Assets and Asset Store' started by elias_t, Jul 8, 2015.

  1. SirCodeWarrior

    SirCodeWarrior

    Joined:
    Sep 18, 2019
    Posts:
    16
    Hi @elias_t,

    I have just updated to version 2.9.2. I found that lzip.getTotalFiles returns the same value as lzip.getTotalEntries. Both includes the folder counts. I compared the codes, both are identical. It looks like a bug.

    Per the document in the code, getTotalFiles should only return the file counts, excluding the folder counts right?

    Thank you!
     
  2. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Hello. Yes this is an issue that will be resolved in the next update.

    But you can call lzip.getFileInfo on a zip file and use the lzip.zipFiles and lzip.zipFolders global vars to get these numbers.
     
    SirCodeWarrior likes this.
  3. SirCodeWarrior

    SirCodeWarrior

    Joined:
    Sep 18, 2019
    Posts:
    16
    OK, cool! I will try that. Thank you for your tips and quick response.
     
  4. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Update version 2.3

    - Added a function to extract multiple entries to multiple byte buffers.
    - Added a function to decompress a gzip from a buffer to disk.
    - UnGzip2 function fix.
    - zipGetTotalFiles fix
    - iOS plugins compiled with xcode 14 for amr64 and xcode 13.4 for arm64/armv7 support.
     
    Last edited: Nov 21, 2022
  5. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Update version 2.4

    - Android: added x86 and armv7 plugins that will support files larger than 2GB. (Minimum api=24, 7.0 Nougat)
    - Fixed an issue with creation of tar archives when a file path would be larger than 100 characters.
     
  6. letchuck

    letchuck

    Joined:
    Aug 14, 2015
    Posts:
    5
    Hi there,

    I'm running into the same issue. I imported the plugin into a Unity2021 project, and Webgl won't compile. There's no .a file extension files in the webGL plugins folder; only .bc. I tried making a brand new 2021 project to try and see if it imported well, but it didn't work. Same compile error as that guy.

    WebGL/zipw.bc: machine type must be wasm32 or wasm64


    How to proceed?
     
  7. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Hello.

    Last time I checked Unity supposed to download the asset according to unity version. It seems something does not work right in this scope.
    I will send you a private message with the .a WebGL plugins.

    (I will include these also in every version update from now on.)
     
  8. Chaoslife

    Chaoslife

    Joined:
    Aug 16, 2016
    Posts:
    13
    Hi elias,
    I also have this problem, can you send me a webgl plugins?
     
  9. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Check your pm.