HearthSim / UnityPack

Python deserialization library for Unity3D Asset format

Home Page:https://hearthsim.info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decompression failed:

nopa607 opened this issue · comments

commented

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

commented

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?

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.

I encountered the same problem, is it solved now?

commented

I encountered the same problem, is it solved now?

you can try AssetStudio or AssetTool

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

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

@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 :)