idermailer
Cowpoke
I'm making a mod. I got NotImplementedException, but I cannot guess the cause at all. I made sure using .NET 5.0 and latest SMAPI(3.15.1). Can you give me a hint please?
Here is the ModEntry.cs:
and i got this:
and here is the SMAPI log:
https://smapi.io/log/75ca6e77944643a0a53d36086ad1d860
Here is the ModEntry.cs:
C#:
using System;
using Microsoft.Xna.Framework;
using StardewModdingAPI;
using StardewModdingAPI.Enums;
using StardewModdingAPI.Events;
using StardewModdingAPI.Utilities;
using StardewValley;
namespace RandomStartDay
{
/// <summary>The mod entry point.</summary>
public class ModEntry : Mod
{
/*********
** Public methods
*********/
/// <summary>The mod entry point, called after the mod is first loaded.</summary>
/// <param name="helper">Provides simplified APIs for writing mods.</param>
public override void Entry(IModHelper helper)
{
helper.Events.Specialized.LoadStageChanged += this.Specialized_LoadStageChanged;
}
private void Specialized_LoadStageChanged(object sender, LoadStageChangedEventArgs e)
{
if (e.NewStage == LoadStage.CreatedBasicInfo)
{
Game1.currentSeason = "fall";
Game1.dayOfMonth = 3;
}
throw new NotImplementedException();
}
}
}
Code:
[14:05:23 ERROR Random Start Day] This mod failed in the Specialized.LoadStageChanged event. Technical details:
NotImplementedException: The method or operation is not implemented.
at RandomStartDay.ModEntry.Specialized_LoadStageChanged(Object sender, LoadStageChangedEventArgs e) in C:\Users\IN\source\repos\RandomStartDay\RandomStartDay\ModEntry.cs:line 31
at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101
https://smapi.io/log/75ca6e77944643a0a53d36086ad1d860