Jump to content
  • 0
Sign in to follow this  
Nesquick0

RESOLVED Can't create screenshot when path doesn't exist

Question

Repro:

  1. Start game and go into some world
  2. Take screenshot (F12 default). It should show message.
  3. Screenshot should be saved. Example path: "c:\Users\XYZ\Documents\Ylands\Screenshots\October 2015\Ylands_151009_011018.png"
  4. Delete last directory "October 2015"
  5. Try to take screenshot again, but no message shown and no file created.
    You only get short freeze as game create screenshot, but can't save it.

Desired:

  • Game should be able to create path, when taking screenshot

Note: Game create this directory when going to main menu or from main menu. At least what I know.

How I found this issue:

  • I take some screenshots by accident (I have bound CTRL+F12 to video capture and game took screenshots).
  • I want to get rid of those screenshots so I remove whole directory "October 2015" presuming that game will handle it.

Build: 0.01.11067

IsolatedStorageException: Could not find a part of the path "C:\Users\nesquick.ALTAR\Documents\Ylands\Screenshots\October 2015\Ylands_151009_013109.png".
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in <filename unknown>:0

  at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in <filename unknown>:0

  at System.IO.File.Create (System.String path) [0x00000] in <filename unknown>:0

  at System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <filename unknown>:0

  at ylands.CScreenShot+<ScreenshotEncode>c__Iterator6C.MoveNext () [0x00000] in <filename unknown>:0
 
(Filename:  Line: -1)

Share this post


Link to post
Share on other sites

1 reply to this bug / suggestion

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×