Daily Screenshot

Daily Screenshot

3.9k Downloads

Daily screenshot does not save in the default directory

zayeed-bs opened this issue ยท 0 comments

commented

Screenshot is taken but not saved in the default directory, changing it to a custom one doesn't fix the issue.

Config.json

{
  "SnapshotRules": [
    {
      "Name": "Daily Farm Picture",
      "ZoomLevel": 0.25,
      "Directory": "Default",
      "FileName": "Default",
      "Trigger": {
        "Days": "Daily",
        "Weather": "Any",
        "Location": "Farm",
        "Key": "None",
        "StartTime": 600,
        "EndTime": 2600
      }
    }
  ]
}

Steps to reproduce the behavior:

  • Opening the game, loading a world, going outside.

Smapi Log:

IOException: The filename, directory name, or volume label syntax is incorrect. : 'C:\Users\zayee\AppData\Roaming\StardewValley\Screenshots\Bartleton
-Farm-Screenshots-314997482\Farm'
   at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
   at System.IO.Directory.CreateDirectory(String path)
   at DailyScreenshot.ModEntry.TakeScreenshot(ModRule rule) in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModEntry.cs:line 528
   at DailyScreenshot.ModEntry.<>c__DisplayClass62_0.<RunTriggers>b__0() in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModEntry.cs:line 441
   at DailyScreenshot.ModEntry.OnUpdateTicked(Object sender, UpdateTickedEventArgs e) in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModEntry.cs:line 486
   at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101```