Skip to content

[Exception Report]: Could not find a part of the path #376

@PencilVoid

Description

@PencilVoid

Report Verification

  • I have checked and verified there are no similar reports.

Exception Report

The installation of Sonic Adventure DX was moved from the D drive to the E drive. Despite modifying the config at E:\SteamLibrary\steamapps\common\Sonic Adventure DX\mods\.modloader\profiles\Default.json the mod loader still looks for the D drive and thus crashes immediately.

Exception Report

SAMM Information:
	Manager Version: 1.3.6
	Current Game: Sonic Adventure DX
	Game Directory: D:\laptop\Steam\steamapps\common\Sonic Adventure DX
	Manager Location: E:\SteamLibrary\steamapps\common\Sonic Adventure DX\
	Running as Admin: False
Exception Information:
	Type: DirectoryNotFoundException
	Exception: Could not find a part of the path 'D:\laptop\Steam\steamapps\common\Sonic Adventure DX\mods\.modloader\profiles'.
	Source: System.Private.CoreLib
	In Function: Void CreateDirectory(System.String, Byte[])
	StackTrace:    at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
	   at System.IO.Directory.CreateDirectory(String path)
	   at SAModManager.Util.CreateSafeDirectory(String path)
	   at SAModManager.Management.ProfileManager.ValidateProfileFolder()
	   at SAModManager.MainWindow.Load(Boolean newSetup)
	   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()

Reproduction Steps

  1. Install Sonic Adventure DX on an external drive.
  2. Install SA Mod Manager on the same drive.
  3. Connect another external drive and move Sonic Adventure DX to it through Steam.
  4. Remove the old external drive.
  5. Launch SA Mod Manager.

Please select your Operating System.

Windows

Operation System Information

Windows 11 Home

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexception reportGenerated from Manager's Exception Handler

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions