Tool SMAPI: Stardew Modding API

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

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

    Laken Master Chief

    I'm pretty sure I installed it before installing Stardew Valley but i'll double check and get back to you on this.

    Edit: IT WORKED OMG I THOUGHT I HAD IT INSTALLED THANK YOU SOOO MUCH. :D
     
      Last edited: Jul 18, 2016
      Jinxiewinxie likes this.
    • Jinxiewinxie

      Jinxiewinxie Farmer Fashionista

      Thank you for being my "hopefully a smart person comes along" ! ^_^
       
        Laken likes this.
      • Gwenhwyfar

        Gwenhwyfar Subatomic Cosmonaut

        I was just wondering, when looking at the SMAPI mods, are they using C# or Javascript?

        I just want to confirm... It looks similar to Java but I know C# also looks like Java... And Javascript is obviously based off of Java...

        Edit:

        Whelp! Found my own answer! it's C#....
         
          Last edited: Jul 19, 2016
        • Entoarox

          Entoarox Oxygen Tank

          Yep, C#, and javascript isnt actually based off java, despite the name, both inherit their design from C, most modern programming languages do so, and are called "c-style" for that reason.
           
          • Gwenhwyfar

            Gwenhwyfar Subatomic Cosmonaut

            Huh... Didn't know that... I heard something a little different from a past co-worker, so that's how I came to that conclusion.

            Sadly, I didn't pay attention in my classes on the history of programs. I haven't used C# and Javascript in a long time, they're not what I usually use everyday, but I've been thinking of refreshing my memory on them so I can attempt to do SMAPI mods soon...
             
            • Artix133

              Artix133 Scruffy Nerf-Herder

              I've had this problem with SMAPI. For some reason every time I launch Stardew Valley with the SMAPI launcher, my options get reset. What I mean by that is every time I launch the game I have to go into the options and change things like "always show tool-hit location" and remap my keys because everything is on the default setting again.

              I have infact tested if it was any mod. I have run the game without mods but with the SMAPI launcher and the settings keep getting reset. I have launched it with each individual mod I have but nothing seems to work. It's really more of an inconvenience at best, but I don't want to have to go into the options EVERY time I launch the game and have to reset everything to my preferred settings. It gets tedious and I shouldn't have to do that every time I want to play.
               
              • Jinxiewinxie

                Jinxiewinxie Farmer Fashionista

                Are you changing your settings and then immediately exiting the game? My options don't save until I've actually slept for the night and saved the game. Then, if I relaunch, my settings are correct.

                Someone else said that they had the same problem, and that deleting their start up preferences file fixed it. You can find that file in C:\Users\[YourNAME]\AppData\Roaming\StardewValley
                 
                • Lionheart549

                  Lionheart549 Void-Bound Voyager

                  could someone help me? I've downloaded the SMAPI (new version -- I'm a new player after all) and the mods won't work. I followed Idid tutorial and everything, but nothing seems to work. I've seen something about ".net framework 4.5" but I have no idea. Help please?
                   
                  • Jinxiewinxie

                    Jinxiewinxie Farmer Fashionista

                    Read the Requirements and Installation section on this page about how to install it: https://github.com/ClxS/SMAPI
                    There is also a link to the required Microsoft .NET framework on that page, but here it is as well: https://www.microsoft.com/en-us/download/details.aspx?id=49981
                     
                    • Lionheart549

                      Lionheart549 Void-Bound Voyager

                    • WindShear34

                      WindShear34 Space Hobo

                      Hello all, I installed the stardew modding api 4.0 but when I launch I get this error.

                      C:\Users\Austin\AppData\Roaming\StardewValley\ErrorLogs\MODDED_ProgramLog.Log_LATEST.txt
                      Created log instance
                      [11:36:05.235 PM] SMAPI Version: 0.40.0 Alpha
                      [11:36:05.235 PM] SDV Version: 1.0
                      [11:36:05.238 PM] Injecting New SDV Version...
                      [11:36:05.238 PM] Starting SDV...
                      [11:36:05.236 PM] Initializing SDV Assembly...
                      [11:36:05.236 PM] Validating api paths...
                      [11:36:05.285 PM] Patching SDV Graphics Profile...
                      [11:36:05.286 PM] LOADING MODS
                      [11:36:05.286 PM] Found Manifest: E:\Stardew\Stardew Valley\Mods\TrainerMod\manifest.json
                      [11:36:05.448 PM] Created psconfigs directory @E:\Stardew\Stardew Valley\Mods\TrainerMod\psconfigs
                      [11:36:05.460 PM] Loading Mod DLL...
                      [11:36:05.462 PM] LOADED MOD: Trainer Mod by Zoryn - Version StardewModdingAPI.Version | Description: Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating. (@ E:\Stardew\Stardew Valley\Mods\TrainerMod\TrainerMod.dll)
                      [11:36:05.465 PM] Registered command: show
                      [11:36:05.465 PM] Registered command: load
                      [11:36:05.465 PM] Registered command: exit
                      [11:36:05.465 PM] Registered command: stop
                      [11:36:05.465 PM] Registered command: player_setname
                      [11:36:05.465 PM] Registered command: player_setmoney
                      [11:36:05.466 PM] Registered command: player_setstamina
                      [11:36:05.466 PM] Registered command: player_setmaxstamina
                      [11:36:05.466 PM] Registered command: player_sethealth
                      [11:36:05.466 PM] Registered command: player_setmaxhealth
                      [11:36:05.466 PM] Registered command: player_setimmunity
                      [11:36:05.466 PM] Registered command: player_setlevel
                      [11:36:05.466 PM] Registered command: player_setspeed
                      [11:36:05.466 PM] Registered command: player_changecolour
                      [11:36:05.467 PM] Registered command: player_changestyle
                      [11:36:05.467 PM] Registered command: player_additem
                      [11:36:05.467 PM] Registered command: player_addring
                      [11:36:05.468 PM] Registered command: out_items
                      [11:36:05.468 PM] Registered command: out_melee
                      [11:36:05.468 PM] Registered command: out_rings
                      [11:36:05.469 PM] Registered command: newitem
                      [11:36:05.469 PM] Registered command: world_settime
                      [11:36:05.467 PM] Registered command: player_addmelee
                      [11:36:05.471 PM] Registered command: world_setday
                      [11:36:05.471 PM] Registered command: world_setseason
                      [11:36:05.472 PM] Registered command: world_downminelevel
                      [11:36:05.472 PM] Registered command: world_setminelevel
                      [11:36:05.473 PM] LOADED 1 MODS
                      [11:36:05.473 PM] SDV Loaded Into Memory
                      [11:36:05.473 PM] Initializing Console Input Thread...
                      [11:36:05.474 PM] Registered command: help
                      [11:36:05.474 PM] Applying Final SDV Tweaks...
                      [11:36:05.462 PM] Registered command: types
                      [11:36:05.469 PM] Registered command: world_freezetime
                      [11:36:05.465 PM] Registered command: save
                      [11:36:05.463 PM] Registered command: hide
                      [11:36:05.538 PM] XNA Initialize
                      [11:36:05.837 PM] XNA LoadContent
                      [11:36:06.026 PM] Initializing Debug Assets...
                      [11:36:06.029 PM] Game failed to start: System.MissingFieldException: Field not found: 'StardewValley.Game1.thumbstickMotionMargin'.
                      at StardewModdingAPI.Inheritance.SGame.Update(GameTime gameTime)
                      at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
                      at Microsoft.Xna.Framework.Game.Run()
                      at StardewModdingAPI.Program.RunGame()
                      System.ComponentModel.InvalidAsynchronousStateException: An error occurred invoking the method. The destination thread no longer exists.
                      at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
                      at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
                      at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
                      at System.Windows.Forms.Control.Invoke(Delegate method)
                      at StardewModdingAPI.Program.StardewInvoke(Action a)
                      at StardewModdingAPI.Program.ConfigureSDV()
                      at StardewModdingAPI.Program.Main(String[] args)


                      If anybody can help or give me advice that would be great. Running a Win 10 x64. Thanks in advance!
                       
                      • Entoarox

                        Entoarox Oxygen Tank

                        Update stardew valley, you need to use version 1.07, no other version will work.
                         
                        • FoolB

                          FoolB Void-Bound Voyager

                          hi! i tried running smapi 4.0 but i get this:
                          [​IMG]
                          :( any clue what caused it? any advice on how to fix it?

                          same issue as the other person
                          i have the latest version of the game and i have smapi in the correct folder
                          i really dont understand what is going on.
                           
                            Last edited: Jul 22, 2016
                          • Jinxiewinxie

                            Jinxiewinxie Farmer Fashionista


                            The fix for him was downloading and installing the required Microsoft.Net Framework:.https://www.microsoft.com/en-us/download/details.aspx?id=49981
                             
                            • Davrial

                              Davrial Big Damn Hero

                              @ClxS How is Farmhand going? Smoothly?
                               
                              • ClxS

                                ClxS Pangalactic Porcupine

                                Fairly slowly. I've not really had any time to work on it lately. (Work + another project)
                                It's mostly functional and the installer works now. It's kinda ready for people to at least test but I'm expecting there to be a few issues with it.
                                 
                                • Davrial

                                  Davrial Big Damn Hero

                                  There will always be issues that wont be discovered until the masses have their hands on it. That's how it goes with coding. I say it would be a good idea to release a clearly labeled Beta Version. That way people know it isnt fully stable yet, but can begin messing around with it.
                                   
                                  • foghorn

                                    foghorn Pangalactic Porcupine

                                    The code is freely available to build and test out already. In it's current state, it's of no use to anyone who can't compile it.
                                    Can't really complete it until at least the 1.1 beta is actually released. No point.
                                     
                                    • Davrial

                                      Davrial Big Damn Hero

                                      First, the code being available isnt the same as them releasing a beta version for people to experiment with.
                                      Second, why wait until 1.1? ClxS has shown no indication about caring to wait until then, which makes sense as we don't know how long it will be. CA hasn't posted any updates recently so I doubt it will be any time soon.
                                       
                                      • foghorn

                                        foghorn Pangalactic Porcupine

                                        Experiment with what? Who? Non-modders can't use it, and API modders already know what to do if they want to experiment with it. As to the second point: kinda hard to release the finished version of a modding API when you don't have a binary to hook to yet.
                                        Don't get me wrong, I want Farmhand as much as everyone else (NOW would be cool :)), but unless CA isn't releasing 1.1 until 2017 (or later), there's no point in pulling overtime for a v.1.07 release.
                                         
                                        Thread Status:
                                        Not open for further replies.

                                        Share This Page