CompSciLauren / stardew-valley-daily-screenshot-mod

:honeybee: A Stardew Valley mod that automatically takes a screenshot of your entire farm at the start of each day
https://www.nexusmods.com/stardewvalley/mods/4779
MIT License
10 stars 9 forks source link

Daily screenshot does not save in the default directory #51

Open zayeed-bs opened 2 years ago

zayeed-bs commented 2 years ago

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:

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```