SMAPI
SMAPI copied to clipboard
A meadowlands farm cannot be created
Description
A meadowlands farm cannot be created. The problem is the function menu.createdNewCharacter(true); or one that follows. An exception is thrown when a new meadowlands farm is created.
I think this is a general problem, but I am using a multiplayer mod. For example, if I create a new farm with Game1.whichFarm = 6; for beach and call the function, a new world is created. This means that all the necessary settings have been made correctly.
To Reproduce
If a new farm is created with Game1.whichFarm = 7; for meadowlands and the function menu.createdNewCharacter(true); is called, an exception is thrown.
Log file SMAPI-latest.txt
Error
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Stardew Valley
StackTrace:
at StardewValley.Farm.onNewGame()
at StardewValley.Game1.loadForNewGame(Boolean loadedGame)
at StardewModdingAPI.Framework.SGame.loadForNewGame(Boolean loadedGame)
at StardewValley.Menus.TitleMenu.createdNewCharacter(Boolean skipIntro)
at DedicatedServer.HostAutomatorStages.StartFarmStage.Execute(Object sender, UpdateTickedEventArgs e) in C:\Users\Chris82111\Desktop\ded\SMAPIDedicatedServerMod\DedicatedServer\HostAutomatorStages\StartFarmStage.cs:line 301