Error in SMAPI Log (Doesn't seem to have an in-game effect)
Zefferis opened this issue · 0 comments
Bug seems to appear in multiplayer, but it may occur in single player as well; I simply have spent more time in Multiplayer;
Config:
{
"SnapshotRules": [
{
"Name": "Daily Farm Screenshot",
"ZoomLevel": 0.25,
"Directory": "Default",
"FileName": "Default",
"Trigger": {
"Days": "Daily",
"Weather": "Any",
"Location": "Farm",
"Key": "None",
"StartTime": 600,
"EndTime": 2600
}
},
{
"Name": "Manual Screenshots",
"ZoomLevel": 0.5,
"Directory": "C:\\Users\\SSing\\AppData\\Roaming\\StardewValley\\Screenshots\\Manual Screenies",
"FileName": "Date, FarmName, UniqueID",
"Trigger": {
"Days": "Daily",
"Weather": "Any",
"Location": "Any",
"Key": "P",
"StartTime": 600,
"EndTime": 2600
}
}
]
}
SMAPI Log: https://smapi.io/log/7ddb44b65c4145ebb772bd2e7d31fe6e
19:23:35 | ERROR | Daily Screenshot | This mod failed in the Input.ButtonPressed event. Technical details: System.NullReferenceException: Object reference not set to an instance of an object. at DailyScreenshot.ModTrigger.GetLocation() in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModTrigger.cs:line 300 at DailyScreenshot.ModTrigger.CheckTrigger(SButton key) in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModTrigger.cs:line 405 at DailyScreenshot.ModEntry.RunTriggers(List1 rules, SButton key) in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModEntry.cs:line 436 at DailyScreenshot.ModEntry.OnButtonPressed(Object sender, ButtonPressedEventArgs e) in C:\Users\comps\OneDrive\Desktop\workspace\stardew-valley-daily-screenshot-mod\DailyScreenshot\ModEntry.cs:line 409 at StardewModdingAPI.Framework.Events.ManagedEvent 1.<>c__DisplayClass16_1.b__2() in C:\source_Stardew\SMAPI\src\SMAPI\Framework\Events\ManagedEvent.cs:line 138 at StardewModdingAPI.Framework.PerformanceMonitoring.PerformanceMonitor.Track(String collectionName, String sourceName, Action action) in C:\source_Stardew\SMAPI\src\SMAPI\Framework\PerformanceMonitoring\PerformanceMonitor.cs:line 87 at StardewModdingAPI.Framework.Events.ManagedEvent`1.<>c__DisplayClass16_0.b__0() in C:\source_Stardew\SMAPI\src\SMAPI\Framework\Events\ManagedEvent.cs:line 138 |
---|