Jump to content

Open Community  ·  1073 members

Stardew Valley

[BUG] Can't plant fruit trees


kariiiii

Recommended Posts

Hi,

I can't plant fruit trees in the greenhouse. There is a planting sound but the saplings won't appear on the ground and still in my inventory. Either vanilla or modded (tried multiple) greenhouses won't let me plant fruit trees. This is the error i get every time i try to plant them:

[game] An error occurred in the base update loop: InvalidCastException: Unable to cast object of type 'Microsoft.Xna.Framework.Graphics.Texture2D' to type 'System.Collections.Generic.Dictionary`2[system.Int32,System.String]'.
at Microsoft.Xna.Framework.Content.ContentReader.InnerReadObject[T](T existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.<>c__DisplayClass6_0`1.<LoadExact>b__0() in SMAPI\Framework\ContentManagers\GameContentManager.cs:line 141
at StardewModdingAPI.Framework.Utilities.ContextHash`1.Track[TResult](T key, Func`1 action) in SMAPI\Framework\Utilities\ContextHash.cs:line 53
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.LoadExact[T](IAssetName assetName, Boolean useCache)
at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.LoadLocalized[T](IAssetName assetName, LanguageCode language, Boolean useCache) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 152
at StardewValley.TerrainFeatures.FruitTree.loadData(Int32 saplingIndex)
at StardewValley.TerrainFeatures.FruitTree..ctor_PatchedBy<PeacefulEnd.AlternativeTextures>(FruitTree this, Int32 saplingIndex)
at StardewValley.Object.placementAction_PatchedBy<PeacefulEnd.AlternativeTextures__spacechase0.JsonAssets>(Object this, GameLocation location, Int32 x, Int32 y, Farmer who)
at StardewValley.Utility.tryToPlaceItem(GameLocation location, Item item, Int32 x, Int32 y)
at StardewValley.Game1.pressActionButton(KeyboardState currentKBState, MouseState currentMouseState, GamePadState currentPadState)
at StardewValley.Game1.<>c__DisplayClass913_0.<UpdateControlInput>b__0()
at MinecartPatcher.MCPModHooks.OnGame1_UpdateControlInput(KeyboardState& keyboardState, MouseState& mouseState, GamePadState& gamePadState, Action action)
at StardewValley.Game1.UpdateControlInput(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 1117
[game] An error occurred in the base update loop: InvalidCastException: Unable to cast object of type 'Microsoft.Xna.Framework.Graphics.Texture2D' to type 'System.Collections.Generic.Dictionary`2[system.Int32,System.String]'.
at Microsoft.Xna.Framework.Content.ContentReader.InnerReadObject[T](T existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.<>c__DisplayClass6_0`1.<LoadExact>b__0() in SMAPI\Framework\ContentManagers\GameContentManager.cs:line 141
at StardewModdingAPI.Framework.Utilities.ContextHash`1.Track[TResult](T key, Func`1 action) in SMAPI\Framework\Utilities\ContextHash.cs:line 53
at StardewModdingAPI.Framework.ContentManagers.GameContentManager.LoadExact[T](IAssetName assetName, Boolean useCache)
at StardewModdingAPI.Framework.ContentManagers.BaseContentManager.LoadLocalized[T](IAssetName assetName, LanguageCode language, Boolean useCache) in SMAPI\Framework\ContentManagers\BaseContentManager.cs:line 152
at StardewValley.TerrainFeatures.FruitTree.loadData(Int32 saplingIndex)
at StardewValley.TerrainFeatures.FruitTree..ctor_PatchedBy<PeacefulEnd.AlternativeTextures>(FruitTree this, Int32 saplingIndex)
at StardewValley.Object.placementAction_PatchedBy<PeacefulEnd.AlternativeTextures__spacechase0.JsonAssets>(Object this, GameLocation location, Int32 x, Int32 y, Farmer who)
at StardewValley.Utility.tryToPlaceItem(GameLocation location, Item item, Int32 x, Int32 y)
at StardewValley.Game1.pressActionButton(KeyboardState currentKBState, MouseState currentMouseState, GamePadState currentPadState)
at StardewValley.Game1.<>c__DisplayClass913_0.<UpdateControlInput>b__0()
at MinecartPatcher.MCPModHooks.OnGame1_UpdateControlInput(KeyboardState& keyboardState, MouseState& mouseState, GamePadState& gamePadState, Action action)
at StardewValley.Game1.UpdateControlInput(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 1117

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...