nesrak1 / UABEA

c# uabe for newer versions of unity
MIT License
1.04k stars 133 forks source link

Having crash opening the folder #305

Closed baiki1 closed 4 months ago

baiki1 commented 4 months ago

Describe the bug I use assetstudio to export MonoBehaviour files and when I drag the exported file into uabea the application crash.

Desktop Screenshot 2024 02 10 - 23 02 54 40

System.UnauthorizedAccessException: Access to the path 'C:\Users\luudo\OneDrive\Desktop\test\monobehaviour' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.File.OpenRead(String path) at UABEAvalonia.FileTypeDetector.DetectFileType(String filePath) in D:\a\UABEA\UABEA\UABEAvalonia\Logic\FileTypeDetector.cs:line 11 at UABEAvalonia.MainWindow.OpenFiles(String[] files) in D:\a\UABEA\UABEA\UABEAvalonia\Forms\MainWindow.axaml.cs:line 90 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore() at Avalonia.Threading.DispatcherOperation.Execute() at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job) at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback) at Avalonia.Threading.Dispatcher.Signaled() at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg) at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken) at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl) at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode) at UABEAvalonia.Program.Main(String[] args) in D:\a\UABEA\UABEA\UABEAvalonia\Program.cs:line 53

nesrak1 commented 4 months ago

Opening folders isn't supported, but you can select all files in a folder and drag it into UABEA. Also I'm not sure what

I use assetstudio to export MonoBehaviour

means. I don't think anything AssetStudio exports should be openable in UABEA.

baiki1 commented 4 months ago

Is there a way to use uabea to open the compressed .bundle file instead of export it to another file? I'm trying to localzation the .bundle file but when I finish editing and compressing it again, the game crash and the problem lies in what I edited. Edit directly instead of export it in parts like assetstudio

nesrak1 commented 4 months ago

Clicking the info button allows you to edit the bundle without exporting the assets file inside.

baiki1 commented 4 months ago

Nhấp vào nút thông tin cho phép bạn chỉnh sửa gói mà không cần xuất tệp nội dung bên trong.

Thanks man, I've successfully localzation the thing that's been giving me headaches all week. This is a great app. I hope you can maintain and develop it.