Tool SMAPI: Stardew Modding API

Discussion in 'Mods' started by ClxS, Mar 6, 2016.

Thread Status:
Not open for further replies.
  1. Tsin

    Tsin Orbital Explorer

    Sure thing. I'm sorry to trouble you with this. It's more than likely user error than something wrong with the SMAPI, since this is my first time in a while messing around with mods.

    What I've got is -> C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command%
     
    • Pathoschild

      Pathoschild Tiy's Beard

      @Tsin You need a quote at the beginning too. Like this should work:
      Code:
      "C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command%
      
       
      • Pathoschild

        Pathoschild Tiy's Beard

      • Tsin

        Tsin Orbital Explorer

        Thank you! Terribly sorry about this.
         
        • CorvusSolus

          CorvusSolus Space Spelunker

          Im able to run StardewValley manually and from steam fine, but when I run StardewModdingApi I recieve this error;
          Code:
          mmangini@dell520:~/.steam/steam/steamapps/common/Stardew Valley$ sudo mono StardewModdingAPI.exe
          [13:22:01 INFO  SMAPI] SMAPI 1.15.4 with Stardew Valley 1.2.33 on Unix 4.4.0.93
          [13:22:01 DEBUG SMAPI] Mods go here: /home/mmangini/.local/share/Steam/steamapps/common/Stardew Valley/Mods
          [13:22:01 DEBUG SMAPI] Preparing SMAPI...
          [13:22:01 DEBUG SMAPI] Starting game...
          [13:22:08 ERROR SMAPI] Critical app domain exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
            at System.ThrowHelper.ThrowInvalidOperationException (ExceptionResource resource) <0x7f47338b6fd0 + 0x00021> in <filename unknown>:0
            at System.Collections.Generic.Dictionary`2+KeyCollection+Enumerator[TKey,TValue].MoveNext () <0x7f4733741330 + 0x0002c> in <filename unknown>:0
            at StardewModdingAPI.Framework.SContentManager.InvalidateCache (System.Func`3 predicate, Boolean dispose) <0x41d52670 + 0x001f1> in <filename unknown>:0
            at StardewModdingAPI.Framework.SContentManager.DisposeFor (StardewModdingAPI.Framework.ContentManagerShim shim) <0x41d52300 + 0x0019b> in <filename unknown>:0
            at StardewModdingAPI.Framework.ContentManagerShim.Dispose (Boolean disposing) <0x41d522c0 + 0x0001f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Content.ContentManager.Finalize () <0x41d36c70 + 0x0001d> in <filename unknown>:0
          [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
          [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
          [13:22:08 ERROR SMAPI] The game failed unexpectedly: System.TypeInitializationException: The type initializer for 'StardewValley.SaveGame' threw an exception. ---> System.MissingMethodException: Method 'String.Format' not found.
            at System.Xml.Serialization.Configuration.ConfigurationStrings.get_XmlSerializerSectionPath () <0x41d902b0 + 0x00013> in <filename unknown>:0
            at System.Xml.Serialization.TempAssembly.get_UseLegacySerializerGeneration () <0x41d8f020 + 0x00067> in <filename unknown>:0
            at System.Xml.Serialization.TempAssembly..ctor (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0x41d8ecd0 + 0x0012b> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly (System.Xml.Serialization.XmlMapping xmlMapping, System.Type type, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0x41d84e60 + 0x000bb> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0x41d80400 + 0x00257> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location) <0x41d94de0 + 0x0004f> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0x41d94d90 + 0x00037> in <filename unknown>:0
            at StardewValley.SaveGame..cctor () <0x41d942c0 + 0x00553> in <filename unknown>:0
            --- End of inner exception stack trace ---
            at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x41d94170 + 0x00043> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Tick () <0x41d93be0 + 0x00367> in <filename unknown>:0
            at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0x41d91150 + 0x0003f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x41d0ae20 + 0x001d4> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run () <0x41d0adc0 + 0x00027> in <filename unknown>:0
            at StardewModdingAPI.Program.RunInteractively () <0x41cebb60 + 0x00a17> in <filename unknown>:0
          [13:22:08 INFO  SMAPI] Game has ended. Press any key to exit.
          [13:22:23 ERROR SMAPI] Critical app domain exception: System.ObjectDisposedException: Cannot access a disposed object.
          Object name: 'Stream has been closed'.
            at System.IO.FileStream.Write (System.Byte[] array, Int32 offset, Int32 count) <0x7f473395ea20 + 0x001ca> in <filename unknown>:0
            at System.IO.StreamWriter.Flush (Boolean flushStream, Boolean flushEncoder) <0x7f47337cfda0 + 0x000fa> in <filename unknown>:0
            at System.IO.StreamWriter.Write (System.String value) <0x7f47337d0680 + 0x001c3> in <filename unknown>:0
            at StardewModdingAPI.Framework.Logging.LogFileManager.WriteLine (System.String message) <0x41cedec0 + 0x00048> in <filename unknown>:0
            at StardewModdingAPI.Framework.Monitor.LogImpl (System.String source, System.String message, LogLevel level, ConsoleColor color, Nullable`1 background) <0x41ced0c0 + 0x002f3> in <filename unknown>:0
            at StardewModdingAPI.Framework.Monitor.Log (System.String message, LogLevel level) <0x41cecdb0 + 0x0005f> in <filename unknown>:0
            at StardewModdingAPI.Framework.SContentManager.DisposeFor (StardewModdingAPI.Framework.ContentManagerShim shim) <0x41d52300 + 0x00069> in <filename unknown>:0
            at StardewModdingAPI.Framework.ContentManagerShim.Dispose (Boolean disposing) <0x41d522c0 + 0x0001f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Content.ContentManager.Finalize () <0x41d36c70 + 0x0001d> in <filename unknown>:0
          
          EDIT: Now attempting to run StardewValley.exe from Steam or Terminal fails. No idea where it went wrong, didn't change anything besides uninstalling reinstalling SMAPI 1.15.4. The Error returned is

          Code:
          
          [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'StardewValley.StartupPreferences' threw an exception. ---> System.MissingMethodException: Method 'String.Format' not found.
            at System.Xml.Serialization.Configuration.ConfigurationStrings.get_XmlSerializerSectionPath () <0x40847450 + 0x00013> in <filename unknown>:0
            at System.Xml.Serialization.TempAssembly.get_UseLegacySerializerGeneration () <0x408461a0 + 0x00067> in <filename unknown>:0
            at System.Xml.Serialization.TempAssembly..ctor (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0x40845e50 + 0x0012b> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly (System.Xml.Serialization.XmlMapping xmlMapping, System.Type type, System.String defaultNamespace) <0x40845d50 + 0x000bb> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.String defaultNamespace) <0x40803950 + 0x003bf> in <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type) <0x40803810 + 0x00013> in <filename unknown>:0
            at StardewValley.StartupPreferences..cctor () <0x408037b0 + 0x00043> in <filename unknown>:0
            --- End of inner exception stack trace ---
            at StardewValley.Menus.TitleMenu..ctor () <0x407fee20 + 0x0134f> in <filename unknown>:0
            at StardewValley.Game1.UpdateTitleScreen (Microsoft.Xna.Framework.GameTime time) <0x4084e4d0 + 0x0051f> in <filename unknown>:0
            at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0x408498d0 + 0x02b0b> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x40849780 + 0x00043> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Tick () <0x408491f0 + 0x00367> in <filename unknown>:0
            at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0x40848f30 + 0x0003f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x40783a90 + 0x001d4> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run () <0x40783a30 + 0x00027> in <filename unknown>:0
            at StardewValley.Program.Main (System.String[] args) <0x40770e80 + 0x000bf> in <filename unknown>:0
          
          
           
            Last edited: Sep 10, 2017
          • Asuka89

            Asuka89 Big Damn Hero

            CorvusSolus hast du mal SMAPI (StardewModdingAPI) direkt aus dem Instalationsordner (... \ Steam\steamapps\common\Stardew Valley) gestartet, wenn ja, gab es dabei irgend welche Fehler.
            Hast du die neuste SMAPI Version SMAPI 1.15.4
            Download : https://github.com/Pathoschild/SMAPI/releases/download/1.15.4/SMAPI-1.15.4.zip
            Steam Startoption sollte so aussehen:
            "G:\- Spiele -\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command%
            Das Leerzeichen zwischen " und % beachten.
            Mit SMAPI sollte dein Verzeichniss in etwa so aussehen.
            Ich habe den TrainerMod Ordner in Trainer Mod umbenannt.
            UOSU(170910-203342-93).jpg
             
              Last edited: Sep 10, 2017
            • Pathoschild

              Pathoschild Tiy's Beard

              @CorvusSolus After you run mono install.exe, you should just launch the game normally. Don't run StardewModdingAPI.exe directly, and don't change the Steam launch options (that's only needed on Windows).
               
              • Asuka89

                Asuka89 Big Damn Hero

                NEIN, install.exe, dann gibst du den Pfad zu deiner Stardew Valley.exe ein.
                In meinem Fall wäre das hier: G: \ - Spiele - \ Steam \ steamapps \ common \ Stardew Tal
                Geh unter Steam auf Stardew Valey> Rechtsklick> Eigenschaften> Lokale Dateien> Lokale Dateien Durchsuchen ...
                Dann klickst du in das Navigationsfeld oben im Fenster bis alles blau markiert ist und kopierst das mit STRG + C
                UOSU(170910-212019-31).jpg
                und drückst im CMD-Eingabefeld STRG + V
                UOSU(170910-213954-76).jpg UOSU(170910-213943-43).jpg
                Jetzt nur noch ENTER drücken und dann 1 für Installieren
                UOSU(170910-215055-90).jpg
                 
                  Last edited: Sep 10, 2017
                • Pathoschild

                  Pathoschild Tiy's Beard

                  @Gaetia After you reboot, make sure you don't launch the game before running the installer.
                   
                  • snthe

                    snthe Aquatic Astronaut

                    Hello guys..
                    I have a problem, my smapi always crash when i reach lv 20 in mine. How to know which mod cause this?
                    I have some mods to be suspected..
                    Where i can see smapi log?
                     
                    • Pathoschild

                      Pathoschild Tiy's Beard

                    • snthe

                      snthe Aquatic Astronaut

                    • Pathoschild

                      Pathoschild Tiy's Beard

                    • snthe

                      snthe Aquatic Astronaut

                      I already backup them, so i must replace it with original files? Or i mist reinstal smapi?
                      Is it possible to know specific which xnb files have problem sir?
                       
                      • Entoarox

                        Entoarox Oxygen Tank

                        replace with originals, dont need to reinstall SMAPI, and it looks like `Content/Data/weapons.xnb` is at fault, but there might be other issues being hidden - That is why repairing the vanilla Content completely is the recommended action.
                         
                        • snthe

                          snthe Aquatic Astronaut

                          Youre right, the problem is weapon.xnb
                          Game work well now..
                          Thank you for you both @Pathoschild
                           
                          • 78star

                            78star Void-Bound Voyager

                            Hello. I am getting a runtime error IndexOutOfRangeException. I will attach the error log bellow, but I am going to college for computer science so if you could explain how you figured out how to fix it please let me know so I can help others/do it myself in the future :D.


                            Code:
                            [13:02:46 INFO  SMAPI] SMAPI 1.15.3 with Stardew Valley 1.2.33 on Microsoft Windows 10 Pro
                            [13:02:46 DEBUG SMAPI] Mods go here: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
                            [13:02:46 DEBUG SMAPI] Preparing SMAPI...
                            [13:02:46 TRACE SMAPI] Overriding content manager...
                            [13:02:46 ERROR SMAPI] The game crashed last time you played. That can be due to bugs in the game, but if it happens repeatedly you can ask for help here: http://community.playstarbound.com/threads/108375/.
                            [13:02:46 ERROR SMAPI] If you ask for help, make sure to attach this file: C:\Users\78star\AppData\Roaming\StardewValley\ErrorLogs\SMAPI-crash.txt
                            [13:02:46 INFO  SMAPI] Press any key to delete the crash data and continue playing.
                            [13:02:48 DEBUG SMAPI] Starting game...
                            [13:02:54 TRACE SMAPI] Detecting common issues...
                            [13:02:54 DEBUG SMAPI] Loading mod metadata...
                            [13:02:54 DEBUG SMAPI] Loading mods...
                            [13:02:54 TRACE SMAPI] Loading All Professions from AllProfessions\AllProfessions.dll...
                            [13:02:54 TRACE SMAPI] Loading Better Ranching from BetterRanching\BetterRanching.dll...
                            [13:02:54 TRACE SMAPI]    Rewrote BetterRanching.dll to fix StardewValley.Game1.player field...
                            [13:02:54 TRACE SMAPI]    Rewrote BetterRanching.dll to fix StardewValley.Game1.activeClickableMenu field...
                            [13:02:54 TRACE SMAPI] Loading Chest Label System from ChestLabelSystem\ChestLabelSystem.dll...
                            [13:02:54 TRACE SMAPI]    Rewrote ChestLabelSystem.dll to fix StardewValley.Game1.activeClickableMenu field...
                            [13:02:54 TRACE SMAPI]    Rewrote ChestLabelSystem.dll to fix StardewValley.Game1.gameMode field...
                            [13:02:54 TRACE SMAPI] Loading LovedLabels from LovedLabels\LovedLabels.dll...
                            [13:02:54 TRACE SMAPI] Loading Simple Crop Label from SimpleCropLabel\SimpleCropLabel.dll...
                            [13:02:54 TRACE SMAPI] Loading Better Sprinklers from SMAPISprinklerMod\SMAPISprinklerMod.dll...
                            [13:02:54 TRACE SMAPI] Loading Trainer Mod from TrainerMod\TrainerMod.dll...
                            [13:02:54 INFO  SMAPI] Loaded 7 mods:
                            [13:02:54 INFO  SMAPI]    All Professions 1.3 by cantorsdust & community | Gives you all possible professions when you level up, instead of just the one chosen.
                            [13:02:54 INFO  SMAPI]    Better Ranching 1.3 by Urbanyeti | Removes delay on failed milk/shear attempts and displays when animals can be milked/sheared.
                            [13:02:54 INFO  SMAPI]    Better Sprinklers 2.3.1-pathoschild-update.3 by Maurício Gomes (Speeder) | Make the Sprinklers work better.
                            [13:02:54 INFO  SMAPI]    Chest Label System 1.5.1-pathoschild-update by Maurício Gomes (Speeder) | Lets you label your chests.
                            [13:02:54 INFO  SMAPI]    LovedLabels 2.1 by Advize & Jinxiewinxie | Gives pets customizable tooltips so you can see who needs the love.
                            [13:02:54 INFO  SMAPI]    Simple Crop Label 5.1 by TheMusketeer | Identify crops and trees on farm
                            [13:02:54 INFO  SMAPI]    Trainer Mod 1.15.1 by SMAPI | Adds SMAPI console commands that let you manipulate the game.
                            [13:02:55 INFO  Simple Crop Label] config file value "mouse_hover" is False
                            [13:02:55 DEBUG SMAPI] Starting console...
                            [13:02:55 TRACE SMAPI] Context: locale set to en.
                            [13:02:55 INFO  SMAPI] Type 'help' for help, or 'help <cmd>' for a command's usage
                            [13:02:55 ALERT SMAPI] You can update SMAPI from version 1.15.3 to 1.15.4
                            [13:03:28 TRACE Console.Out] gameMode was 'titleScreenGameMode (0)', set to 'loadingMode (6)'.
                            [13:03:28 TRACE Console.Out] getLoadEnumerator('Olivia_163328549')
                            [13:03:33 TRACE Console.Out] gameMode was 'loadingMode (6)', set to 'playingGameMode (3)'.
                            [13:03:33 TRACE SMAPI] Context: loaded saved game 'Olivia_163328549', starting fall 26 Y2.
                            [13:03:42 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:42 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] An error occured in the overridden update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                               at StardewValley.Game1.Update(GameTime gameTime)
                               at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 259
                            [13:03:43 ERROR SMAPI] SMAPI requested an immediate game shutdown: the game crashed when updating, and SMAPI was unable to recover the game.
                            
                            Also there was this file.

                            Code:
                            Message: Index was outside the bounds of the array.
                            InnerException:
                            Stack Trace:    at StardewValley.Game1.Update(GameTime gameTime)
                               at Microsoft.Xna.Framework.Game.Tick()
                               at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
                               at Microsoft.Xna.Framework.GameHost.OnIdle()
                               at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
                               at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
                               at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
                               at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
                               at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
                               at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
                               at System.Windows.Forms.Application.Run(Form mainForm)
                               at Microsoft.Xna.Framework.WindowsGameHost.Run()
                               at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
                               at StardewValley.Program.Main(String[] args)
                             
                            • Badtimefrank99

                              Badtimefrank99 Intergalactic Tourist

                              Keeps crashing when I try to go to bed on spring 28.
                               

                                Attached Files:

                              • Pathoschild

                                Pathoschild Tiy's Beard

                                Unfortunately we can't directly diagnose errors in the game's Update method (see proposed game change to fix that). Here are some things to try:
                                1. Update to the latest version of SMAPI.
                                2. Remove all your SMAPI mods temporarily; does it still happen? If not, reinstall your mods one at a time until it starts happening again.
                                3. If it still happens with no SMAPI mods installed, try resetting your content files.
                                Let me know what the results are and I'll help you from there. :)

                                Can you try it again, then post your SMAPI-crash.txt file instead?
                                 
                                • Badtimefrank99

                                  Badtimefrank99 Intergalactic Tourist

                                  [22:56:16 ERROR SMAPI] An error occured in the base update loop: System.IndexOutOfRangeException: Index was outside the bounds of the array.
                                  at StardewValley.Object.getDescription()
                                  at StardewValley.Menus.InventoryMenu.hover(Int32 x, Int32 y, Item heldItem)
                                  at StardewValley.Menus.MenuWithInventory.performHoverAction(Int32 x, Int32 y)
                                  at StardewValley.Menus.ItemGrabMenu.performHoverAction(Int32 x, Int32 y)
                                  at StardewValley.Game1.updateActiveMenu(GameTime gameTime)
                                  at StardewValley.Game1.Update(GameTime gameTime)
                                  at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 614

                                  I can't seem to make it crash now, but that's being spammed.
                                   
                                  Thread Status:
                                  Not open for further replies.

                                  Share This Page