RELEASED Custom Farm Types 1.1.7

Allow adding custom farm types.

  1. Crunchyleaf

    Crunchyleaf Void-Bound Voyager

    I'm having an issue when starting a new game where the list of custom farms cuts off. I can still roll over and click the first three or so custom farm types, even though their icons are invisible, but the rest of them fall outside the boundaries of the screen and are therefore unclickable. Does anybody know what could be causing this?
     

      Attached Files:

    • spacechase0

      spacechase0 Ketchup Robot

      Just put your mouse over the list and scroll down.
       
      • Crunchyleaf

        Crunchyleaf Void-Bound Voyager

        Don't have a mouse, my laptop's only got a touchpad. So is this how it's supposed to be then?
         
        • Standardheld

          Standardheld Subatomic Cosmonaut

          Hey there!
          After a long time I wanted to play SDV again, so I downloaded the acutal version plus new SMAPI and, of course, this amazing mod because I need it so much. Sadly, I can't get it to work. It's loaded well by SMAPI and I can choose all custom farm types from the menu ... I don't find any issues in the console (except of a warning, the code uses deprecated code (IReflectionHelper.GetPrivate* is deprecated since SMAPI 2.3) but when I choose a custom farm and start a new game it's always the Standard SDV farm.

          @spacechase0 Please, I need help, this mod is essential for me.
           

            Attached Files:

            Last edited: Jan 17, 2018
            Husky110 likes this.
          • Pathoschild

            Pathoschild Tiy's Beard

            This unofficial update fixes the issue where you can't start a new custom farm with SMAPI 2.1 or later. This requires SMAPI 2.4+. I also sent a pull request to @spacechase0 for an official update. :)
             
              Standardheld likes this.
            • spacechase0

              spacechase0 Ketchup Robot

            • Alvadea

              Alvadea Pangalactic Porcupine

              I get an error with the newest update:

              [Custom Farm Types] EXCEPTION FIXING FARM TYPES: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. [=means something like objectreference isn't defined to an objectinstance]
              bei SpaceCore.Log.debug(String str) in G:\StardewValley\Mods\SpaceCore\Log.cs:Zeile 15.
              bei SpaceCore.Utilities.Hijack.hijack(MethodInfo target, MethodInfo replaceWith) in G:\StardewValley\Mods\SpaceCore\Utilities\Hijack.cs:Zeile 28.
              bei CustomFarmTypes.TypeFixes.fix() in G:\StardewValley\Mods\CustomFarmTypes\TypeFixes.cs:Zeile 21.
              bei CustomFarmTypes.Mod.Entry(IModHelper helper) in G:\StardewValley\Mods\CustomFarmTypes\Mod.cs:Zeile 33.

              Also he's asking if I have a second copy of SpaceCore? Is SpaceCore not longer needed as a separate mod now?
               
                Standardheld likes this.
              • spacechase0

                spacechase0 Ketchup Robot

                Standardheld likes this.
              • KittehKatBar

                KittehKatBar Void-Bound Voyager

                So I made the Trio Falls Forest Map into a custom farm map but I'm getting debris in the river (while screenshots show the farm w/ debris, but none in the river). Any ideas why this is?
                 
                • spacechase0

                  spacechase0 Ketchup Robot

                  It's a bug with the version fixed for SMAPI 2.4. I'm going to have an update out tomorrow which should fix it.
                   
                    KittehKatBar and Standardheld like this.
                  • spacechase0

                    spacechase0 Ketchup Robot

                    KittehKatBar likes this.
                  • Fallingfeathers54

                    Fallingfeathers54 Void-Bound Voyager

                    Hi Spacechase0,
                    I had posted an issue I was having, but I'm just dumb. I have now learned quite a bit about .json files, and I fixed my issue.
                    Thank you so much for making this excellent Mod!!
                     

                      Attached Files:

                      Last edited: Feb 4, 2018
                    • hopieluff

                      hopieluff Scruffy Nerf-Herder

                      Hi! This may be a silly question, but is there a way to change the farm type midway through a save? I have no buildings, fences or anything, as I was planning to change the farm map anyway. I currently have Rosalie's Enchanted Forest listed, but I'd like Ali's White River farm.
                       
                        .Lavender. likes this.
                      • .Lavender.

                        .Lavender. Pangalactic Porcupine

                        So I just tested this out because I was wondering the same thing, and you can!
                        Go to your save file and there should be a json called "custom-farm-type". Open that and change the "Farm": to the ID of the new one you want to use. Of course, expect the typical problems that come from changing your map.

                        Now to just find a way to change from a vanilla farm to a custom one...
                         
                        • spacechase0

                          spacechase0 Ketchup Robot

                          Yeah, what .Lavender. said.

                          To go vanilla -> custom, just copy that custom farm type file into the vanilla save.
                           
                          • Vegetable Lamb

                            Vegetable Lamb Existential Complex

                            Is anyone making additional content for this? I'm seeing a lot of maps, but folks don't seem to be adding them to this mod.
                             
                            • pgraham1124

                              pgraham1124 Void-Bound Voyager

                              I was looking into adding a custom location for a specific custom farm and using smapi to implement it. Is there a way to get the custom farm type from another mod?
                               
                              • spacechase0

                                spacechase0 Ketchup Robot

                                Sure, just do this:

                                Code:
                                  public class SaveData
                                  {
                                  public Dictionary<string, string> FarmTypes { get; set; } = new Dictionary<string, string>();
                                  }
                                var data = this.Helper.ReadJsonFile<SaveData>($"{Constants.CurrentSavePath}/custom-farm-type.json");
                                
                                 
                                  anothersarah likes this.
                                • pgraham1124

                                  pgraham1124 Void-Bound Voyager

                                  Hey, thanks! It worked great!

                                  I also seemed to have broken your mod... In any map where the type.json doesn't have fishing data, I get these error messages in SMAPI and the game crashes (it's at the end):

                                  https://log.smapi.io/M5Rg9qwh

                                  I was able to fix it with:

                                  Code:
                                  ,
                                    "Behavior": {
                                      "FishPoolToDrawFrom": [
                                        {
                                          "Area": {
                                            "x": 0,
                                            "y": 0,
                                            "width": 80,
                                            "height": 65
                                          },
                                          "PoolId": 0,
                                          "ListFromLocationID": 1
                                        }
                                      ],
                                      "FishPools": [
                                        [
                                          {
                                            "Chance": 1.0,
                                            "LuckFactor": 0.0,
                                            "OnlyTryIfNoneSelectedYet": false,
                                            "LocationPreset": "Farm",
                                            "ObjectID": 0
                                          }
                                        ]
                                      ]
                                    }
                                   
                                  • Ahrnie

                                    Ahrnie Void-Bound Voyager

                                    Hi! I've run into an issue, when I change the objects that you receive in the gift box. I changed it to be a bread, but then the message from Lewis disappeared. I can't find it anywhere in the original .json, so is it because the message is specifically programmed for the parsnip seeds?
                                    Also, is there anyway to change the gift box back to a package rather than a chest?
                                    Thanks for a great mod! :)
                                     

                                    Share This Page