14Mal
Newcomer
Hi there,
I am attempting to start a new modded game but when I make and place chests they do not open.
Here is the error log:
[game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
at StardewMods.FuryCore.Services.GameObjects.<>c__DisplayClass28_0.<TryGetGameObject>b__0(KeyValuePair`2 inventoryItem) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Services\GameObjects.cs:line 278
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at StardewMods.FuryCore.Services.GameObjects.TryGetGameObject(Object context, IGameObject& gameObject) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Services\GameObjects.cs:line 278
at StardewMods.FuryCore.Events.ClickableMenuChanged.ItemGrabMenu_constructor_postfix(ItemGrabMenu __instance) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Events\ClickableMenuChanged.cs:line 90
at StardewValley.Menus.ItemGrabMenu..ctor_PatchedBy<furyx639.FuryCore.ClickableMenuChanged>(ItemGrabMenu this, IList`1 inventory, Boolean reverseGrab, Boolean showReceivingMenu, highlightThisItem highlightFunction, behaviorOnItemSelect behaviorOnItemSelectFunction, String message, behaviorOnItemSelect behaviorOnItemGrab, Boolean snapToBottom, Boolean canBeExitedWithKey, Boolean playRightClickSound, Boolean allowRightClick, Boolean showOrganizeButton, Int32 source, Item sourceItem, Int32 whichSpecialButton, Object context)
at StardewValley.Objects.Chest.ShowMenu()
at StardewValley.Objects.Chest.updateWhenCurrentLocation(GameTime time, GameLocation environment)
at StardewValley.GameLocation.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Locations.BuildableGameLocation.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Farm.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Game1.UpdateLocations(GameTime time)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1026
Any help is appreciated
I am attempting to start a new modded game but when I make and place chests they do not open.
Here is the error log:
[game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
at StardewMods.FuryCore.Services.GameObjects.<>c__DisplayClass28_0.<TryGetGameObject>b__0(KeyValuePair`2 inventoryItem) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Services\GameObjects.cs:line 278
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at StardewMods.FuryCore.Services.GameObjects.TryGetGameObject(Object context, IGameObject& gameObject) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Services\GameObjects.cs:line 278
at StardewMods.FuryCore.Events.ClickableMenuChanged.ItemGrabMenu_constructor_postfix(ItemGrabMenu __instance) in C:\Users\Matthew\RiderProjects\StardewMods\FuryCore\Events\ClickableMenuChanged.cs:line 90
at StardewValley.Menus.ItemGrabMenu..ctor_PatchedBy<furyx639.FuryCore.ClickableMenuChanged>(ItemGrabMenu this, IList`1 inventory, Boolean reverseGrab, Boolean showReceivingMenu, highlightThisItem highlightFunction, behaviorOnItemSelect behaviorOnItemSelectFunction, String message, behaviorOnItemSelect behaviorOnItemGrab, Boolean snapToBottom, Boolean canBeExitedWithKey, Boolean playRightClickSound, Boolean allowRightClick, Boolean showOrganizeButton, Int32 source, Item sourceItem, Int32 whichSpecialButton, Object context)
at StardewValley.Objects.Chest.ShowMenu()
at StardewValley.Objects.Chest.updateWhenCurrentLocation(GameTime time, GameLocation environment)
at StardewValley.GameLocation.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Locations.BuildableGameLocation.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Farm.UpdateWhenCurrentLocation(GameTime time)
at StardewValley.Game1.UpdateLocations(GameTime time)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1026
Any help is appreciated