Tool SMAPI: Stardew Modding API

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

  1. Pathoschild

    Pathoschild Oxygen Tank

    SMAPI 2.0 beta is now available for Linux/Mac/Windows! (download link)

    This is a preview release. Most mods are already updated, but you can check if your mods are compatible first (more mods will be updated before SMAPI 2.0 is out of beta). Feel free to try it out; you can downgrade later by just reinstalling SMAPI 1.15.4.

    This is a big release (see release notes). Highlights:
    • Mod update checks
      SMAPI now checks if your mods have updates available, and will alert you in the console with a convenient link to the mod page. This works with mods from the Chucklefish mod site, GitHub, or Nexus Mods. SMAPI 2.0 will launch with update-check support for 245+ existing mods, and more will be added as modders enable the feature.

    • Mod stability warnings
      SMAPI now detects when a mod contains code which can destabilise your game or corrupt your save, and shows a warning in the console.

    • Simpler console
      The console is now simpler and easier to read, some commands have been streamlined, and the colors now adjust to fit your terminal background color.

    • New features for modders
      SMAPI 2.0 adds several features to enable new kinds of mods (see API documentation).

      The content API lets you edit, inject, and reload XNB data loaded by the game at any time. This let SMAPI mods do anything previously only possible with XNB mods, and enables new mod scenarios not possible with XNB mods (e.g. seasonal textures, NPC clothing that depend on the weather or location, etc).

      The input events unify controller + keyboard + mouse input into one event and constant for easy handling, and add metadata like the cursor position and grab tile to support click handling. They also let you prevent the game from receiving input, to enable new scenarios like action highjacking and simple UI overlays.

      The mod manifest has a few changes too:
      - The new UpdateKeys field lets you specify your Chucklefish, GitHub, or Nexus mod IDs. SMAPI will automatically check for newer versions and notify the player.
      - The Version field is now a semantic string like "1.0-alpha". (Mods which still use the version structure will still work fine.)
      - The Dependencies field now lets you add optional dependencies which should be loaded first if available.

      Finally, the SDate utility now has a DayOfWeek field for more convenient date calculations, and ISemanticVersion now implements IEquatable<ISemanticVersion>.

    • Goodbye deprecated code
      SMAPI 2.0 removes all deprecated code to unshackle future development. That includes...
      • removed all code marked obsolete;
      • removed TrainerMod's save and load commands;
      • removed support for mods with no Name, Version, or UniqueID in their manifest;
      • removed support for multiple mods having the same UniqueID value;
      • removed access to SMAPI internals through the reflection helper.
    • Command-line install
      For power users and mod managers, the SMAPI installer can now be scripted using command-line arguments (see readme).
    Feedback and bug reports are welcome here! For help with mod compatibility, see how to fix mods broken in SMAPI 2.0.

    [Edit: download removed. See latest version instead.]
     
      Last edited: Oct 14, 2017
    • Zombino

      Zombino Space Hobo

    • NEWGAMER444

      NEWGAMER444 Master Chief

      welp when i launch the Stardew modding API it stop working :( i bought stardew valley on GOG
       
      • Pathoschild

        Pathoschild Oxygen Tank

        @NEWGAMER444 There should be a window behind the "stopped working" message with some text. Can you post a screenshot of it?
         
        • NEWGAMER444

          NEWGAMER444 Master Chief

          Capture.PNG
           

            Attached Files:

          • NEWGAMER444

            NEWGAMER444 Master Chief

            Problem signature:
            Problem Event Name: CLR20r3
            Problem Signature 01: 2UEK12MATRWBZUMOECIJ3XCLHIWFWGEG
            Problem Signature 02: 1.15.4.0
            Problem Signature 03: 59b2d253
            Problem Signature 04: mscorlib
            Problem Signature 05: 4.6.1590.0
            Problem Signature 06: 5787ed44
            Problem Signature 07: 1103
            Problem Signature 08: 22
            Problem Signature 09: System.BadImageFormatException
            OS Version: 6.1.7601.2.1.0.256.1
            Locale ID: 1033
            Additional Information 1: 0a9e
            Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
            Additional Information 3: 0a9e
            Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
             
            • Pathoschild

              Pathoschild Oxygen Tank

              @NEWGAMER444 That error happens with some pirated versions that change the game's executable in an incompatible way. That's a bug in the version of the game you have, not SMAPI itself. Unfortunately that's not something I can help with, sorry!
               
              • NEWGAMER444

                NEWGAMER444 Master Chief

                i bought it on gog
                 
                • NEWGAMER444

                  NEWGAMER444 Master Chief

                • Pathoschild

                  Pathoschild Oxygen Tank

                  Did you install it using GOG Galaxy?
                   
                  • NEWGAMER444

                    NEWGAMER444 Master Chief

                    so it will not work if i dont have GOG Galaxy ?
                     
                    • Pathoschild

                      Pathoschild Oxygen Tank

                      I suggest using GOG Galaxy, it gives you more options to troubleshoot the install.
                       
                      • NEWGAMER444

                        NEWGAMER444 Master Chief

                        ok thanks now it work
                         
                          Pathoschild likes this.
                        • Badtimefrank99

                          Badtimefrank99 Intergalactic Tourist

                          Here's a CTD, just went to bed when it crashed.
                           

                            Attached Files:

                          • Pathoschild

                            Pathoschild Oxygen Tank

                            @Badtimefrank99 Your error was in a part of the game that doesn't provide any error info, so it's hard to diagnose. Does it still happen if you temporarily remove all your SMAPI mods? If not, put each mod back one at a time until the issue comes back.
                             
                              Badtimefrank99 likes this.
                            • Badtimefrank99

                              Badtimefrank99 Intergalactic Tourist

                              removed all but my xnb loader and entorax, got the same error, removed xnb loader and it happened again. Guess it's time to redo all of that from scratch.
                               
                              • Aryade

                                Aryade Void-Bound Voyager

                                Game crashed. Instance: Exiting forest back into farm, ended up in the hill next to the entrance/exit to forest/farm. Using the Alternate Hill Top Farm mod which extends the Hill Top farm for more land/space. Here is the Crash Dump:
                                 

                                  Attached Files:

                                • Pathoschild

                                  Pathoschild Oxygen Tank

                                  @Aryade Unfortunately we can't directly diagnose errors in the game's Update method (I'm hoping for a change in Stardew Valley 1.3 to fix that). Here are some things to try:
                                  1. Remove all your SMAPI mods temporarily; does it still happen? If not, reinstall your mods one at a time until it starts happening again. That should tell you which mod causes it.
                                  2. 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. :)
                                   
                                  • Jaata

                                    Jaata Master Chief

                                    reinstalling with newest update let's see which mods work this go round haha :)
                                     
                                    • Loony Luna

                                      Loony Luna Master Chief

                                      Can someone help me? My game keeps crashing with this message.
                                      An error occured in the overridden update loop: System.NullReferenceException: Object reference not set to an instance of an object.
                                      at StardewValley.Game1.Update(GameTime gameTime)
                                      at StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) in D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:line 260
                                       

                                      Share This Page