nesrak1 / UABEA

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

How to show "*.bundle" file's info ? #199

Closed louisome closed 1 year ago

louisome commented 1 year ago

It can open .bundle file, but cannot show the info~

nesrak1 commented 1 year ago

Have you tried at3 nightly? https://nightly.link/nesrak1/UABEA/workflows/dotnet-desktop/at3/uabea-windows.zip

louisome commented 1 year ago

Ohh~ U help me a lot, I want to buy u a coffee.

louisome commented 1 year ago

But when i change something, then save. It will not be load by game. log like this: "E/Unity: async texture load: failed to load FingerIcon from archive:/CAB-0831a91bb38d60ce779a931cfdcecb00/CAB-0831a91bb38d60ce779a931cfdcecb00.resS"

louisome commented 1 year ago

ohhh, if i use other computer, it's everything ok. why this happen?

louisome commented 1 year ago

My computer cannot decompress the file, another computer is success. That is the diff.

louisome commented 1 year ago

Here is the log.

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'length') at AssetsTools.NET.SegmentStream..ctor(Stream baseStream, Int64 baseOffset, Int64 length) at AssetsTools.NET.AssetBundleFile.Pack(AssetsFileReader reader, AssetsFileWriter writer, AssetBundleCompressionType compType, Boolean blockDirAtEnd, IAssetBundleCompressProgress progress) at UABEAvalonia.MainWindow.CompressBundle(Object args) in D:\a\UABEA\UABEA\UABEAvalonia\MainWindow.axaml.cs:line 880 at System.Threading.Thread.StartCallback()

nesrak1 commented 1 year ago

I'm not sure how that happened, but I fixed a different issue involving compression. I don't know if it'll fix your issue or why it would only happen on one computer but not another.

louisome commented 1 year ago

Thank you for your reply, but the error still exist~ I try to find the different between two computer ( maybe some environment setting or dotnet version, but most of them are the same~).

louisome commented 1 year ago

The newest version decompress .bundle file suceess(save to disk not memory), but cannot show the info(click the info button)... The previous one can show the info, but decompress .bundle file fail ~

Here is the demo file:

screens_assets_all_494611d168cb2a20171970f010bebb30.zip

nesrak1 commented 1 year ago

I can't reproduce on the latest at3 nightly. I can decompress to both memory and file, make some changes and save, reload the file just fine, compress to both lz4 and lzma and reopen those fine as well. You're sure you're using the latest version? Maybe you are unpacking a new version of uabea on top of an old version? There's nothing in the code besides the texture plugin that would be platform specific.

louisome commented 1 year ago

ok..i try to delete all verion uabea and try again later..

And i find the different is i7 10700(it doesn't work) and i5 12490(it work).

louisome commented 1 year ago

ohh ~ it's ok for some .bundle, I delete all versions, and redownload the newest one. But one of .bundle file, replace one texture and save successfully, then it will crash when running the game. But other .bundle file has not this problem, confusing... (same image, different .bundle files which also has the same image)