Skip to content

Map Extension Error #1024

Description

@NullnNow

Describe the bug
Mod in Question: https://www.nexusmods.com/stardewvalley/mods/46024 (Version 2.0.1)
After purchasing and reading the books that expand Lewis' basement (Ballad of the Missing Shorts Acts I - IV) the game seems to ocasionally crash. After talking on Discord, it sounds like the issue might be related to RebakeRow. I managed to (hopefully) fix the issue by making the base map bigger and removing any calls to ExtendMap.

To Reproduce
I could not reliably recreate this issue. It is why I couldn't provide my own SMAPI log. However, below are the steps that are most likely to reproduce the issue:

  1. Create a new game.
  2. CJB cheat to give you the keys to the town (not needed, but useful) and access to the minecarts (needed).
  3. Give yourself the "Ballad of the Missing Shorts Acts I through III" and read them.
  4. Save.
  5. Give yourself the "Ballad of the Missing Shorts Act IV" and read it.
  6. Save.
  7. Use the minecarts to enter Lewis' basement.
  8. The game will ocassionally crash.
    Again, this is not a consistent issue. I'd say this has between a 20% to 40% chance of occuring.

Log file
I could not reproduce the issue, but here is the original log file given to me, as well as a much briefer error log.
https://smapi.io/log/75b7fb784af044a78f96324a43bc27b1

[SMAPI] An error occurred in the game's draw loop: IndexOutOfRangeException: Index was outside the bounds of the array.   at xTile.Layers.Layer._RebakeRow(Int32 y) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\xTileSource\xTile\Layers\Layer.cs:line 393   at xTile.Layers.Layer.DrawNormal(IDisplayDevice displayDevice, Rectangle mapViewport, Location displayOffset, Int32 pixelZoom, Single sort_offset) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\xTileSource\xTile\Layers\Layer.cs:line 462   at StardewValley.Game1.DrawWorld(GameTime time, RenderTarget2D target_screen) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 15845   at StardewValley.Game1._draw(GameTime gameTime, RenderTarget2D target_screen) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 15614   at StardewModdingAPI.Framework.SGame._draw(GameTime gameTime, RenderTarget2D target_screen) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/SGame.cs:line 250
[SMAPI] An error occurred in the game's draw loop: IndexOutOfRangeException: Index was outside the bounds of the array.   at xTile.Layers.Layer._RebakeRow(Int32 y) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\xTileSource\xTile\Layers\Layer.cs:line 393

Upload your SMAPI log to https://smapi.io/log and post a link here.

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