MapStudioProject / Track-Studio

A powerful MK8 map editor for creating and editing track models, objects, paths and animations.
MIT License
80 stars 13 forks source link

DirectoryNotFoundException upon fresh install #3

Closed VikeMK closed 2 years ago

VikeMK commented 2 years ago

Getting errors in the console such as the following:

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\camer\AppData\Local\MapStudio'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options)
   at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.Directory.GetDirectories(String path)
   at MapStudio.UI.ProjectList.Init() in C:\projects\track-studio\MapStudio.UI\src\Dialogs\ProjectDialog\ProjectList.cs:line 26
   at MapStudio.UI.ProjectList..ctor() in C:\projects\track-studio\MapStudio.UI\src\Dialogs\ProjectDialog\ProjectList.cs:line 22
   at TrackStudio.MainWindow.OpenProject() in C:\projects\track-studio\Track Studio\src\MainWindow.cs:line 438
   at UIFramework.MenuItem.Execute() in C:\projects\track-studio\MapStudio.UI\src\UIFramework\MenuItem\MenuItem.cs:line 113
   at MapStudio.UI.ImGuiHelper.<>c__DisplayClass11_0.<DrawMenuItem>b__0() in C:\projects\track-studio\MapStudio.UI\src\Imgui\Helpers\ImGuiHelper.cs:line 191
   at UIFramework.Framework.OnRenderFrame(FrameEventArgs e) in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Framework.cs:line 77
   at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
   at OpenTK.GameWindow.DispatchRenderFrame()
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
   at OpenTK.GameWindow.Run()
   at TrackStudio.Program.Main(String[] args) in C:\projects\track-studio\Track Studio\src\Program.cs:line 53

Before this I had another one which complained about a Dashboard folder missing from the net5.0 folder. I was able to fix that by manually creating the folder there. This is on v1.0.153

KillzXGaming commented 2 years ago

Should be fixed https://github.com/MapStudioProject/Track-Studio/commit/659954f8a1048252e2c555170b8e73f3363101da