New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing InvalidOpertionException when loading .pv8 game #16

Closed
jessefreeman opened this Issue Jan 15, 2019 · 2 comments

Comments

Projects
None yet
1 participant
@jessefreeman
Copy link
Contributor

jessefreeman commented Jan 15, 2019

Noticed after doing a build of a game and trying to run it, the console is outputting the following error:

System.InvalidOperationException: The specified FileSystemPath is not a directory.
  at SharpFileSystem.FileSystemPath.AppendFile (System.String fileName) [0x0002d] in <5d927ea88cf24da692204f1e92bbeef2>:0 
  at PixelVision8.Runner.Services.WorkspaceService.RunGame (System.String path, PixelVisionSDK.IEngine targetEngine, PixelVisionRunner.IRunner runner, System.Boolean showPreloader) [0x00123] in /Users/playground/Documents/Projects/PixelVision8/PixelVision8Runner/Shared/MonoGameRunner/Services/WorkspaceService.cs:363 

Looks like it's only happening on .pv8 projects and not using a Run directly from a game directory.

@jessefreeman jessefreeman added the bug label Jan 15, 2019

@jessefreeman jessefreeman added this to the Release v0.9.2 milestone Jan 15, 2019

@jessefreeman jessefreeman self-assigned this Jan 15, 2019

@jessefreeman

This comment has been minimized.

Copy link
Contributor Author

jessefreeman commented Jan 15, 2019

Looks like the cause of the problem is this line:

var tmpFilePath = FileSystemPath.Parse(path).AppendFile("saves.json");

This is going to fail if the project is a zip since you can't look into it before opening it. So I'll need to account for that.

@jessefreeman

This comment has been minimized.

Copy link
Contributor Author

jessefreeman commented Jan 24, 2019

Looks like this issue is now fixed and should stop the random crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment