X-Hax / SA-Mod-Manager

A new mod manager for the Sonic Adventure games.
MIT License
79 stars 17 forks source link

[Error Report]: Crash building Code List - Directory not found Patches.dat #196

Closed CosmicXIII closed 1 month ago

CosmicXIII commented 3 months ago

Exception Report

SAMM Information:
    Manager Version: 1.2.11
    Current Game: Sonic Adventure DX
    Game Directory: 
    Manager Location: C:\Users\User\Downloads\SA Mod Manager\
    Running as Admin: False
Exception Information:
    Type: DirectoryNotFoundException
    Exception: Could not find a part of the path 'C:\Users\User\Downloads\SA Mod Manager\mods\Patches.dat'.
    Source: System.Private.CoreLib
    In Function: Microsoft.Win32.SafeHandles.SafeFileHandle CreateFile(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, System.IO.FileOptions)
    StackTrace:    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, Nullable`1 unixCreateMode)
       at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
       at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
       at System.IO.File.Create(String path)
       at SAModManager.Codes.CodeList.WriteDatFile(String path, IList`1 codes)
       at SAModManager.MainWindow.BuildCodeFiles()
       at SAModManager.MainWindow.Save()
       at SAModManager.MainWindow.comboProfile_SelectionChanged(Object sender, SelectionChangedEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.Controls.ComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
       at SAModManager.MainWindow.SetManagerBindings()
       at SAModManager.MainWindow.SetBindings()
       at SAModManager.MainWindow.MainWindowManager_Loaded(Object sender, RoutedEventArgs e)
       at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location ---
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at SAModManager.App.Main()
ProximalElk6186 commented 3 months ago

Open the game's folder, a window will pop up. Double-Click the 'mods' folder. Is the 'Patches.dat' file there? Also I'd move the mod loader folder outside the downloads folder, e.g. to the desktop.

CosmicXIII commented 3 months ago

Fixed it I think, idk what I did, but I moved the mod loader to saw main folder, deleted the files (not the mods) in the saw mod folder and it seemed to work, it was something wrong with the file itself.

On Thu, Aug 29, 2024, 7:12 AM ProximalElk6186 @.***> wrote:

Open the game's folder, a window will pop up. Double-Click the 'mods' folder. Is the 'Patches.dat' file there? Also I'd move the mod loader folder outside the downloads folder, e.g. to the desktop.

— Reply to this email directly, view it on GitHub https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2317346279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJQ7TTHDJWU4F7Q6SGLPZDZT36YFAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGM2DMMRXHE . You are receiving this because you authored the thread.Message ID: @.***>

ProximalElk6186 commented 3 months ago

k

CosmicXIII commented 3 months ago

Sa2*

On Thu, Aug 29, 2024, 12:01 PM ProximalElk6186 @.***> wrote:

k

— Reply to this email directly, view it on GitHub https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2318233945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJQ7TQONDCNMDB4V7EREOLZT5AWRAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJYGIZTGOJUGU . You are receiving this because you authored the thread.Message ID: @.***>

Sora-yx commented 1 month ago

This should hopefully be fixed in the last version. If your Manager isn't in a game folder and you have a mods folder with it (usually empty) you can delete it.

CosmicXIII commented 1 month ago

So there's an update to the manager?

On Thu, Oct 10, 2024, 12:38 PM Sora @.***> wrote:

This should hopefully be fixed in the last version. If your Manager isn't in a game folder and you have a mods folder with it (usually empty) you can delete it.

— Reply to this email directly, view it on GitHub https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405579909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJQ7TQ5GG5UES55B5KMO23Z22UPLAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGU3TSOJQHE . You are receiving this because you authored the thread.Message ID: @.***>

ProximalElk6186 commented 1 month ago

Yeah, ready for you to download it!

Чт, 10 окт. 2024 г. в 19:59, CosmicXIII @.***>:

So there's an update to the manager?

On Thu, Oct 10, 2024, 12:38 PM Sora @.***> wrote:

This should hopefully be fixed in the last version. If your Manager isn't in a game folder and you have a mods folder with it (usually empty) you can delete it.

— Reply to this email directly, view it on GitHub < https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405579909>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AVJQ7TQ5GG5UES55B5KMO23Z22UPLAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGU3TSOJQHE>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405622283, or unsubscribe https://github.com/notifications/unsubscribe-auth/A75Q2WD2F4YB5L76QOHSIPLZ22XABAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGYZDEMRYGM . You are receiving this because you commented.Message ID: @.***>

CosmicXIII commented 1 month ago

Okay, feel like it's been months since my recent report about it.

I'll download it when my Internet is back on, cause I had to deal with Hurricane Milton.

kozu1677, my discord.

On Thu, Oct 10, 2024, 1:21 PM ProximalElk6186 @.***> wrote:

Yeah, ready for you to download it!

Чт, 10 окт. 2024 г. в 19:59, CosmicXIII @.***>:

So there's an update to the manager?

On Thu, Oct 10, 2024, 12:38 PM Sora @.***> wrote:

This should hopefully be fixed in the last version. If your Manager isn't in a game folder and you have a mods folder with it (usually empty) you can delete it.

— Reply to this email directly, view it on GitHub <

https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405579909>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AVJQ7TQ5GG5UES55B5KMO23Z22UPLAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGU3TSOJQHE>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405622283>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/A75Q2WD2F4YB5L76QOHSIPLZ22XABAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGYZDEMRYGM>

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/X-Hax/SA-Mod-Manager/issues/196#issuecomment-2405662325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJQ7TSWXMHTWQDMOTXBZALZ22ZTDAVCNFSM6AAAAABNHLIGL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGY3DEMZSGU . You are receiving this because you authored the thread.Message ID: @.***>