Open davispuh opened 2 years ago
I'm also having the issue _block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 16 ever since hearthstone update to 21.6 where they updated the unity engine. Does anyone have a solution
I switched to UnityPy. I had to update my code, but the project is actively maintained and has an active Discord community, so it felt like a worthy investment.
diff --git a/unitypack/assetbundle.py b/unitypack/assetbundle.py
index 4c5a77c..8c6f7a1 100644
--- a/unitypack/assetbundle.py
+++ b/unitypack/assetbundle.py
@@ -98,6 +98,8 @@ class AssetBundle:
self.ciblock_size = buf.read_uint()
self.uiblock_size = buf.read_uint()
flags = buf.read_uint()
+ if self.format_version >= 7:
+ buf.seek((buf.tell() + 15) // 16 * 16)
compression = CompressionType(flags & 0x3F)
eof_metadata = flags & 0x80
if eof_metadata:
(note that there are other differences in asset format that it still doesn't work fully, but I was only interested in block format)
maybe you can try to use this fork: https://github.com/CancerGary/UnityPack/tree/fix/2020.1
Hi,
I'm trying to extract images from UnityFS bundles but unfortunately it fails
Header is
Any ideas?