Tool Storm Modding API

Discussion in 'Mods' started by Handsome Matt, Mar 7, 2016.

  1. hjzz

    hjzz Space Spelunker

    hello can i get some help. i installed Storm and tried running but it crashed and here is the error log

    [CecilInjectorFactory] Loaded 1469 injectors.
    [CecilEventCallbackInjector] Invalid param count on callback!
    StardewValley.Crop .ctor (System.Int32,System.Int32,System.Int32)System.Void
    PreCropConstructorCallback (Storm.StardewValley.Accessor.CropAccessor,System.Int32,System.Int32,System.Int32)Storm.Manipulation.DetourEvent


    [CecilEventCallbackInjector] Invalid param count on callback!
    StardewValley.Crop .ctor (System.Int32,System.Int32,System.Int32)System.Void
    PostCropConstructorCallback (Storm.StardewValley.Accessor.CropAccessor,System.Int32,System.Int32,System.Int32)Storm.Manipulation.DetourEvent


    [CecilEventCallbackInjector] Instruction 2801 out of bounds
    StardewValley.Game1 Draw (Microsoft.Xna.Framework.GameTime)System.Void
    PostDrawCallback (Storm.StardewValley.Accessor.StaticContextAccessor)Storm.Manipulation.DetourEvent

    System.Int32[]
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.Farmer temporarySpeedBuff System.Single
    TemporarySpeedBuff System.Single False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.Farmer movementMultiplier System.Single
    MovementMultiplier System.Single False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.TerrainFeatures.Flooring whichView System.Int32
    WhichView System.Int32 False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.TerrainFeatures.Flooring isSteppingStone System.Boolean
    IsSteppingStone System.Boolean False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.TerrainFeatures.FruitTree greenHouseTree System.Boolean
    GreenHouseTree System.Boolean False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.Game1 thumbstickMotionMargin System.Int32
    ThumbstickMotionMargin System.Int32 False
    [CecilFieldAccessorMutatorInjector] Could not find field!
    StardewValley.Object health System.Int32
    Health System.Int32 False
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Method '_GetThumbstickMotionMargin' in type 'StardewValley.Game1' from assembly 'Storm-Hooked-Game, Version=1.0.5900.15624, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    at StardewValley.Program.Main(String[] args)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Storm.StardewValley.ManagedStardewValleyLauncher.Launch()
    at Storm.Program.Main(String[] args)
     
    • MattyG

      MattyG Scruffy Nerf-Herder

      I want to thank those of you who are involved in making this modding platform! I can see why you discontinued smapi. Can't wait for a fairly stable build to grace us! Nice work, folks!
       
        false_chicken likes this.
      • cantorsdust

        cantorsdust Existential Complex

        From literally the last page:

         
        • hjzz

          hjzz Space Spelunker

          ok so i it says the game still work fine..mine crash and that it made a log is all it says
           
          • cantorsdust

            cantorsdust Existential Complex

            For everyone with the Invalid param count on callback! error, the most recent build of Storm has that fixed.
             
            • CookinAndCodin

              CookinAndCodin Space Hobo

              So I'm trying to build the API on my computer, but I evidently don't have the appropriate Windows version to use VS 2015. (I'm on a Windows 7 system.) Using VS 2013 I attempted to build it and received a number of errors, partially consisting of:
              Code:
              Invalid token '=' in class, struct, or interface member declaration   D:\Modding\Storm\Storm\Storm\Manipulation\Json\JsonParamContainer.cs   22   68   Storm
              Code:
              Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)   D:\Modding\Storm\Storm\Storm\Manipulation\Json\JsonParamContainer.cs   22   94   Storm
              Code:
              Invalid token ';' in class, struct, or interface member declaration   D:\Modding\Storm\Storm\Storm\Manipulation\Json\JsonParamContainer.cs   22   96   Storm
              On lines 27-31 of JsonParamContainer.cs

              And then a bunch of similar kinds of errors elsewhere.
              It seems like the majority of them have to do with assigning to a variable with an accessor as it's initialized.
              Do I need to change my compiler or something?
               
              • Master Crisp

                Master Crisp Void-Bound Voyager

                I would post a log file if I could generate one, but every time I install Storm regardless of the version, three Stormloader.exe processes generate and nothing happens. (appears to go into an Uninterruptable Sleep state that refuses termination of any kind, forcing me to reboot to try another version) I've done complete, clean installs of the base game to no avail. Is there something obvious that I'm missing? The only thing I can spot in the instructions that I have to adjust is the location of where I put the Appdata files. Stardew Valley Appdata files exist in the Roaming subfolder, not the Appdata folder like the instructions suggest. Other than that, I'm doing everything correct to the best of my knowledge. Any ideas? Or just keep trying updates as they appear and pray? Thanks in advance.
                 
                • Svered

                  Svered Astral Cartographer

                  @CookinAndCodin What version of Windows 7 do you have? I have Windows 7 and I could install VS2015 community just fine. Make sure your .NET version is updated to at least 4.2 I think. Whatever it says on the git page.
                   
                  • CookinAndCodin

                    CookinAndCodin Space Hobo

                    I'm running Windows 7 Home Premium SP1. Every time I try to upgrade to VS2015 it says I don't have an appropriate edition of Windows. :/
                    I'm updating my .NET framework to the latest version now, so we'll see what that does. I appreciate your help!

                    EDIT: It was trying to run the installer for VS 2015 in compatibility mode for Vista. We'll see if it works now that I've changed it.
                     
                    • DT2

                      DT2 Void-Bound Voyager

                      Won't launch the game?
                       

                        Attached Files:

                      • Zoryn4163

                        Zoryn4163 Big Damn Hero

                        Make sure your injectors and game are up to date. IIRC latest storm requires 1.05.
                         
                          DT2 likes this.
                        • CookinAndCodin

                          CookinAndCodin Space Hobo

                          @Svered I got it working after updating both .NET and VS 2015 per your advice. Thanks again!
                           
                          • rzn

                            rzn Intergalactic Tourist

                            I am getting this error when I try and run StormLoader.exe (attached). I had it working, but when I tried to run it through steam after setting launch options, it crashes and directs me to the storm_log.txt. Now even without trying to run it through steam it crashes. Any help would be greatly appreciated.
                             

                              Attached Files:

                            • Handsome Matt

                              Handsome Matt Aquatic Astronaut

                              rzn looks like ur running 1.04 maybe? we only support 1.05
                               
                              • hjzz

                                hjzz Space Spelunker

                                Alright still gets the crash and error

                                [CecilInjectorFactory] Loaded 1486 injectors.
                                [CecilEventCallbackInjector] Instruction 2801 out of bounds
                                StardewValley.Game1 Draw (Microsoft.Xna.Framework.GameTime)System.Void
                                PostDrawCallback (Storm.StardewValley.Accessor.StaticContextAccessor)Storm.Manipulation.DetourEvent

                                System.Int32[]
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.Farmer temporarySpeedBuff System.Single
                                TemporarySpeedBuff System.Single False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.Farmer movementMultiplier System.Single
                                MovementMultiplier System.Single False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.TerrainFeatures.Flooring whichView System.Int32
                                WhichView System.Int32 False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.TerrainFeatures.Flooring isSteppingStone System.Boolean
                                IsSteppingStone System.Boolean False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.TerrainFeatures.FruitTree greenHouseTree System.Boolean
                                GreenHouseTree System.Boolean False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.Game1 thumbstickMotionMargin System.Int32
                                ThumbstickMotionMargin System.Int32 False
                                [CecilFieldAccessorMutatorInjector] Could not find field!
                                StardewValley.Object health System.Int32
                                Health System.Int32 False
                                System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Method '_GetThumbstickMotionMargin' in type 'StardewValley.Game1' from assembly 'Storm-Hooked-Game, Version=1.0.5900.15624, Culture=neutral, PublicKeyToken=null' does not have an implementation.
                                at StardewValley.Program.Main(String[] args)
                                --- End of inner exception stack trace ---
                                at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
                                at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
                                at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
                                at Storm.StardewValley.ManagedStardewValleyLauncher.Launch()
                                at Storm.Program.Main(String[] args)

                                 
                                • rzn

                                  rzn Intergalactic Tourist

                                  Thanks for your response. I believe I am running 1.05, is there a way to check? I opted-in to beta updates and it did a quick update, now when I try to run StormLoader.exe it flashes a windowed white screen and dissapears.
                                   

                                    Attached Files:

                                  • destinedtai

                                    destinedtai Intergalactic Tourist

                                    Greetings folks, I've attempted to download Storm from the Builds and I'm on Storm-0.1.1.0_GIT-335d632. Here's my log, as the game refuses to even load. Any ideas?

                                    Edit:
                                    Forgot to mention I'm using the Steam version with Beta builds enabled. I believe it's at 1.05.
                                     

                                      Attached Files:

                                    • Deltervees

                                      Deltervees Tentacle Wrangler

                                      I currently have smapi installed, how would I replace it with this?
                                       
                                      • Zoryn4163

                                        Zoryn4163 Big Damn Hero

                                        Simply follow the steps to install Storm and then launch your game via StormLoader.exe instead of StardewModdingAPI.exe.

                                        OP Says:
                                         
                                        • Pyrii

                                          Pyrii Existential Complex

                                          I just deleted a 1.2Gb Log file from my AppData folder. Someone needs to reign that shit in. Though it could be caused by a faulty mod.
                                           

                                          Share This Page