Tool SMAPI: Stardew Modding API

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

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

    longyearwinds Void-Bound Voyager

    trying to run the game, seems to throw the same exceptions?

    [SMAPI] SMAPI 2.1 with Stardew Valley 1.2.33 on Microsoft Windows 10 Home
    [SMAPI] Mods go here: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
    [SMAPI] The game failed unexpectedly: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
    at new[](UInt32 )
    at Microsoft.Xna.Framework.Audio.UnsafeNativeMethods.AllocateArrayAndReadFile(String filename, Void** ppData, UInt32* pdwBufferSize)
    at Microsoft.Xna.Framework.Audio.UnsafeNativeMethods.WaveBank.CreateHandle(UInt32 hEngine, String string, Int32 length, IntPtr& pCleanup)
    at Microsoft.Xna.Framework.Audio.WaveBank..ctor(AudioEngine audioEngine, String nonStreamingWaveBankFilename)
    at StardewValley.Game1.Initialize()
    at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
    at Microsoft.Xna.Framework.Game.Run()
    at StardewModdingAPI.Program.RunInteractively() in C:\source\_Stardew\SMAPI\src\SMAPI\Program.cs:line 226
    [SMAPI] Game has ended. Press any key to exit.

    i think at one point or another i managed to get it working by closing spotify etc, now having everything closed seems unable to fix it. i've unplugged any and all headphones as well. the game runs fine w/o SMAPI.

    EDIT;; closing everything except for file explorer doesn't seem to fix it. tried running it clean with no outside mods ( other than xnb files ) and it doesn't seem to want to run either.

    EDITEDIT;; i got it to work by editing the executables large address aware and allowing it more resources. here's hoping i don't crash my computer now. but i guess the issue is just resources itself.​
     
      Last edited: Nov 28, 2017
    • ROIsher

      ROIsher Void-Bound Voyager

      So everything I have Mod-wise loads just fine, but for some reason, whenever it comes to the switch of seasons, the date just keeps increasing day by day. For example, it says I'm in summer but the day is like 35 instead of the 7th day of summer.. It makes it hard to understand the calendar as well as it doesn't work either. Ive uploaded my log... any suggestions? If it helps, i am on MAC
       

        Attached Files:

      • Pathoschild

        Pathoschild Tiy's Beard

      • Pathoschild

        Pathoschild Tiy's Beard

        SMAPI 2.2 beta is now available! This release mainly improves the existing SMAPI 2.0+ features and fixes bugs.
         
          DragonDreads likes this.
        • Pathoschild

          Pathoschild Tiy's Beard

          @ROIsher That seems to be caused by Custom Farm Types. I'm collecting info to report it to the mod author; can you do this?
          1. Make sure Custom Farm Types is installed.
          2. Load your save.
          3. Run these command in the SMAPI console:
            Code:
            world_setseason summer
            world_setday 27
            
          4. Go to bed four times in a row.
          5. Exit and post your latest SMAPI log.
          6. Remove Custom Farm Types.
          7. Repeat steps 2–5.
          8. Send me both log links.
           
          • mbare

            mbare Space Hobo

            Has anyone seen the attached error?
            Just downloaded: Lookup Anything 1.16-541-1-16.zip and SMAPI-2.1-installer.zip

            [14:50:59 INFO SMAPI] SMAPI 2.1 with Stardew Valley 1.2.33 on Microsoft Windows 7 Professional
            [14:50:59 DEBUG SMAPI] Mods go here: G:\steamGames\steamapps\common\Stardew Valley\Mods
            [14:50:59 TRACE SMAPI] Log started at 2017-11-29T19:50:59 UTC
            [14:50:59 TRACE SMAPI] Overriding content manager...
            [14:50:59 TRACE SMAPI] Starting game...
            [14:51:03 TRACE SMAPI] Detecting common issues...
            [14:51:03 TRACE SMAPI] Loading mod metadata...
            [14:51:03 TRACE SMAPI] Loading mods...
            [14:51:04 TRACE SMAPI] Loading i18n...
            [14:51:04 TRACE SMAPI] Failed: it doesn't have a manifest.
            [14:51:04 TRACE SMAPI] Loading Console Commands from ConsoleCommands\ConsoleCommands.dll...

            [14:51:04 ERROR SMAPI] Skipped 1 mods:
            [14:51:04 ERROR SMAPI] i18n because it doesn't have a manifest.

            [14:51:04 INFO SMAPI] Loaded 1 mods:
            [14:51:04 INFO SMAPI] Console Commands 2.0 by SMAPI | Adds SMAPI console commands that let you manipulate the game.

            [14:51:04 TRACE SMAPI] Context: locale set to en.
            [14:51:04 INFO SMAPI] Type 'help' for help, or 'help <cmd>' for a command's usage
            [14:51:04 TRACE SMAPI] Checking for SMAPI update...
            [14:51:04 TRACE SMAPI] Checking for updates to 0 keys...
             

              Attached Files:

            • Pathoschild

              Pathoschild Tiy's Beard

              @mbare Make sure each mod has its own subfolder under Mods (like Mods/LookupAnything/manifest.json).
               
                mbare likes this.
              • mbare

                mbare Space Hobo

                Thank you for reply, must have clicked one too many times when extracting the "LookupAnything" zip file. Created the directory and put the files in it, mod works now, but the error log has new content. Appreciate you developing this mod, it is a real time saver. Posted SMAPI-latest.txt content below for you as an FYI.

                [06:43:39 INFO SMAPI] SMAPI 2.1 with Stardew Valley 1.2.33 on Microsoft Windows 7 Professional
                [06:43:39 DEBUG SMAPI] Mods go here: G:\steamGames\steamapps\common\Stardew Valley\Mods
                [06:43:39 TRACE SMAPI] Log started at 2017-11-30T11:43:39 UTC
                [06:43:39 TRACE SMAPI] Overriding content manager...
                [06:43:39 TRACE SMAPI] Starting game...
                [06:43:44 TRACE SMAPI] Detecting common issues...
                [06:43:44 TRACE SMAPI] Loading mod metadata...
                [06:43:44 TRACE SMAPI] Loading mods...
                [06:43:44 TRACE SMAPI] Loading Console Commands from ConsoleCommands\ConsoleCommands.dll...
                [06:43:44 TRACE SMAPI] Loading LookupAnything from LookupAnything\LookupAnything.dll...

                [06:43:44 INFO SMAPI] Loaded 2 mods:
                [06:43:44 INFO SMAPI] Console Commands 2.0 by SMAPI | Adds SMAPI console commands that let you manipulate the game.
                [06:43:44 INFO SMAPI] LookupAnything 1.16 by Pathoschild | View metadata about anything by pressing a button.

                [06:43:44 DEBUG SMAPI] Couldn't read LookupAnything's i18n/config.json file: Newtonsoft.Json.JsonReaderException: The file at G:\steamGames\steamapps\common\Stardew Valley\Mods\LookupAnything\i18n\config.json doesn't seem to be valid JSON.
                Technical details: Unexpected character encountered while parsing value: {. Path 'Keyboard', line 2, position 15.
                at StardewModdingAPI.Framework.Serialisation.JsonHelper.ReadJsonFile[TModel](String fullPath) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Serialisation\JsonHelper.cs:line 69
                at StardewModdingAPI.Program.ReloadTranslations() in C:\source\_Stardew\SMAPI\src\SMAPI\Program.cs:line 867
                [06:43:44 DEBUG SMAPI] Couldn't read LookupAnything's i18n/manifest.json file: Newtonsoft.Json.JsonReaderException: The file at G:\steamGames\steamapps\common\Stardew Valley\Mods\LookupAnything\i18n\manifest.json doesn't seem to be valid JSON.
                Technical details: Unexpected character encountered while parsing value: {. Path 'Version', line 4, position 14.
                at StardewModdingAPI.Framework.Serialisation.JsonHelper.ReadJsonFile[TModel](String fullPath) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Serialisation\JsonHelper.cs:line 69
                at StardewModdingAPI.Program.ReloadTranslations() in C:\source\_Stardew\SMAPI\src\SMAPI\Program.cs:line 867
                [06:43:44 TRACE SMAPI] Context: locale set to en.
                [06:43:44 INFO SMAPI] Type 'help' for help, or 'help <cmd>' for a command's usage
                [06:43:44 TRACE SMAPI] Checking for SMAPI update...
                [06:43:45 TRACE SMAPI] Checking for updates to 1 keys...
                 
                • Pathoschild

                  Pathoschild Tiy's Beard

                  @mbare The mod's config.json has some invalid content. You can delete the file and it'll regenerate a good one, or attach it here and I'll fix it for you.
                   
                    mbare likes this.
                  • Mefis

                    Mefis Space Hobo

                    Hi, I have a problem.

                    Recently I started playing Stardew Walley, and I wanted to install a couple of mods, for which I followed the instructions of this website: https://stardewvalleywiki.com/Modding:Installing_SMAPI_on_Windows

                    The problem is that I have done all the steps and when I try to open the game, instead of running the following windows message appears:

                    "Windows can not find the file
                    E:\Angel\Programas\Steam\steamapps\common\Stardew Valley. Make sure the name is spelled correctly and try again.
                    "

                    Of course in "Set Launch Options" I wrote the addresses as requested: E:\Angel\Programas\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command%

                    And the address where Stardew Walley is installed on my computer is: E:\Angel\Programas\Steam\steamapps\common\Stardew Valley

                    I tried to change the installation folder to another site, on another hard drive, and rewrite the addresses. But that Windows message always comes out followed by a Steam message that says:

                    "Error starting the Stardew Valley process
                    The user has canceled the operation (0x4C7)
                    "

                    And I do not know what may be happening. Somebody could help me? Of course the game is very fun to play without mods, but I would like to add one or two that add options to the game.
                     
                    • 13akoors

                      13akoors Scruffy Nerf-Herder

                      Is it perhaps because the folder is "Programas" instead of "Programs"?
                       
                      • Pathoschild

                        Pathoschild Tiy's Beard

                        @Mefis Try setting the launch options to this (the quote at the beginning is important):
                        Code:
                        "E:\Angel\Programas\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" %command%
                        
                         
                        • Mefis

                          Mefis Space Hobo

                          I think no, that it has been a failure of my translation xD Sorry.
                          I'm Spanish, and the original address says "Programas"
                           
                          • 13akoors

                            13akoors Scruffy Nerf-Herder

                            Actually, I just looked at my own SMAPI install, and I never actually followed the Steam steps. I just used the "Add a Game" function that Steam natively has. Is there any reason that won't work?
                             
                            • Pathoschild

                              Pathoschild Tiy's Beard

                              @13akoors I'm not sure whether Steam achievements will work reliably if you do that.
                               
                              • 13akoors

                                13akoors Scruffy Nerf-Herder

                                Ah. Well, if that's all I need to worry about, then I'll ignore it. Achievements aren't my main reason for playing modded, after all :)
                                 
                                • Mefis

                                  Mefis Space Hobo

                                  Hey, thanks for your help. Apparently the problem is that one of the folders had an accent tilde, and it seems that the program does not recognize that character. So I renamed the folder and now it works.

                                  Thanks for the help :)
                                   
                                  • RyuukiBeat

                                    RyuukiBeat Aquatic Astronaut

                                    Hello, I have errors log in console. What has caused this? This has not happened yesterday. Just recently. I'm not adding or removing a mod.

                                    This is the error:
                                    Code:
                                    [SMAPI] An error occured in the base update loop: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
                                    Parameter name: index
                                       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
                                       at StardewValley.Menus.InventoryMenu.hover(Int32 x, Int32 y, Item heldItem)
                                       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 C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 550
                                    Thanks for the help. I can provide more information if needed. Like what mods I'm using atm, etc. Well, I don't know when exactly that error occurred. It's kinda random.
                                     
                                    • Pathoschild

                                      Pathoschild Tiy's Beard

                                    • RyuukiBeat

                                      RyuukiBeat Aquatic Astronaut

                                    Thread Status:
                                    Not open for further replies.

                                    Share This Page