HearthSim / UnityPack

Python deserialization library for Unity3D Asset format
https://hearthsim.info/
MIT License
719 stars 153 forks source link

Decompression failed: #104

Open nopa607 opened 3 years ago

nopa607 commented 3 years ago

i try to decpress an asset, then i get this problem. how to figure it out?

unitypack\utils.py", line 10, in lz4_decompress return decompress(data, size) _block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 222

this is my assetbundle, thanks! enemies.zip

nopa607 commented 3 years ago

i found that unitypack can run well in the assetBundle that packing by the untiy2018, however, it crashed in the case of untiy2019 and untiy2020; Does anyone else have this problem?

j5rlLqM-rvsrY96V-GpVJP0F-IZFesRzy-ShMoz commented 3 years ago

I personally haven't run into this problem, but the file you provided indeed does cause this error. The most likely cause is that Unity changed the type of compression in Unity2019.

Solution: Patch utils.py and assetbundle.py to provide decompression for whatever they came up with this time.

diewu0421 commented 2 years ago

I encountered the same problem, is it solved now?

nopa607 commented 2 years ago

I encountered the same problem, is it solved now?

you can try AssetStudio or AssetTool

GiovanH commented 2 years ago

Experiencing this same issue. Non-CLI utilities not an option in my case.

sebastientromp commented 2 years ago

I have this issue since the latest HS version (updates to Unity 2019.4.21f1). Has anyone a fix for it?

sebastientromp commented 2 years ago

@robert-nix Hey Robert, sorry for the ping, but the repo doesn't seem too much maintained anymore, so I'm trying my last card :) Does this issue ring any bell to you? Would you be able to know what is wrong? Thanks a lot for your help :)