Skip to content

Game crash when equiping Orange Gi #36

@Scowley4

Description

@Scowley4

Attempted to equip Orange Gi and the game immediately crashed. Appears to be something related to attribute access ("texture").

[21:14:04 ERROR SMAPI] An error occurred in the game's draw loop: ArgumentNullException: Value cannot be null. (Parameter 'texture')
   at Microsoft.Xna.Framework.Graphics.SpriteBatch.CheckValid(Texture2D texture) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Graphics\SpriteBatch.cs:line 172
   at Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw_PatchedBy<spacechase0.SpaceCore>(SpriteBatch this, Texture2D texture, Vector2 position, Nullable`1 sourceRectangle, Color color, Single rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, Single layerDepth)
   at Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw_PatchedBy<spacechase0.SpaceCore>(SpriteBatch this, Texture2D texture, Vector2 position, Nullable`1 sourceRectangle, Color color, Single rotation, Vector2 origin, Single scale, SpriteEffects effects, Single layerDepth)
   at StardewValley.FarmerRenderer.draw(SpriteBatch b, AnimationFrame animationFrame, Int32 currentFrame, Rectangle sourceRect, Vector2 position, Vector2 origin, Single layerDepth, Int32 facingDirection, Color overrideColor, Single rotation, Single scale, Farmer who)
   at StardewValley.Farmer.draw(SpriteBatch b)
   at DynamicReflections.Framework.Utilities.SpriteBatchToolkit.RenderPuddleReflectionPlayerSprite()
   at DynamicReflections.Framework.Patches.Tiles.LayerPatch.DrawNormalPrefix(Layer __instance, IDisplayDevice displayDevice, Rectangle mapViewport, Location displayOffset, Int32 pixelZoom, Single sort_offset)
   at xTile.Layers.Layer.DrawNormal_PatchedBy<PeacefulEnd.DynamicReflections>(Layer this, IDisplayDevice displayDevice, Rectangle mapViewport, Location displayOffset, Int32 pixelZoom, Single sort_offset)
   at StardewValley.Game1.DrawWorld(GameTime time, RenderTarget2D target_screen)
   at StardewValley.Game1._draw(GameTime gameTime, RenderTarget2D target_screen)
   at StardewModdingAPI.Framework.SGame._draw(GameTime gameTime, RenderTarget2D target_screen)
[21:14:04 CRITICAL SMAPI] The game crashed when drawing, and SMAPI was unable to recover the game.

Though I did notice here under "adding and removing a shirt or pants causes game-breaking crash", someone mentioned it may actually be related to Fishing Info Overlays, which I'm also using. It happened with a shirt I found on the game-day it crashed (so I lost the shirt).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions