Tool SMAPI: Stardew Modding API

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

  1. Pathoschild

    Pathoschild Giant Laser Beams

    You're getting a few different errors. Here's how to fix them:
    1. Install SpaceCore (needed by Cooking Skill and Custom Farm Types).
    2. Update Custom Farming to the latest version.
    3. Remove CFAutomate, which is no longer compatible.
    4. UI Info Suite doesn't seem to have a manifest; can you post a screenshot of the files in Stardew Valley\Mods\UI Info Suite (including the full window)?
    5. You have custom data in your save file for a mod which is no longer installed; post a zip of your save files here and I'll fix it for you.
    One of your mods added custom data to the save file (ALLGreenhouse), so your save doesn't work without it. If you send me your save file, I'll remove it so you can test without that mod.

    Can you make sure your audio device (e.g. headphones or speaker) is plugged in, then try this FAQs entry?
     
      sc0rich likes this.
    • sc0rich

      sc0rich Intergalactic Tourist

      :nuruhappy:
       

        Attached Files:

      • Pathoschild

        Pathoschild Giant Laser Beams

        Attached Files:

        sc0rich likes this.
      • Junesong

        Junesong Void-Bound Voyager

        @Pathoschild Thank you so much for your swift response, I will definitely give that a try! ^_^
         
        • sc0rich

          sc0rich Intergalactic Tourist

          Thank you so much:nuruawe:. I'll have to wait until after work to try it, but thank you :nuruhappy:
           
          • longyearwinds

            longyearwinds Space Spelunker

            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 Poptop Tamer

              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 Giant Laser Beams

              • Pathoschild

                Pathoschild Giant Laser Beams

                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 Giant Laser Beams

                  @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 Giant Laser Beams

                      @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 Giant Laser Beams

                          @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 Big Damn Hero

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

                                Pathoschild Giant Laser Beams

                                @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 Big Damn Hero

                                    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 Giant Laser Beams

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

                                      Share This Page