nesrak1 / UABEA

c# uabe for newer versions of unity
MIT License
1.1k stars 143 forks source link

LZ4 compression error #214

Closed c0nd3v closed 8 months ago

c0nd3v commented 1 year ago

Hello, I tried using Asset Studio to unpack a bundle that I edited with UABEA. I get the following error:

image

Is this a problem with UABEA or Asset Studio?

(Unity game has no problem loading this bundle, only Asset Studio)

nesrak1 commented 1 year ago

If you have the latest asset studio and latest uabea and it's still doing this, it might be a problem with uabea (or at least the lz4 compression library I use.) It's hard to debug these kinds of things because the issue could be anywhere.

nesrak1 commented 8 months ago

Someone else brought this up to me and it seems like this happens because the compress function overwrites the original file but does not trim it. It turns out someone else reported this fix to me, so it was fixed way back in April before release 6. So I'm going to close this issue now. If someone else sees this in the future, I think just decompressing and recompressing the bundle will fix it.