REQUEST Mod Request: Place Furniture Outside

Discussion in 'Mods' started by shykitten, Mar 7, 2016.

?

Are you interested in a mod like this?

Poll closed Mar 24, 2016.
  1. Yes

    98.8%
  2. No

    0 vote(s)
    0.0%
  3. Don't Care Either Way

    1.2%
  1. shykitten

    shykitten Subatomic Cosmonaut

    I think it would be great if we could put furniture outside. Personally I enjoy decorating in games like this, but the inability to place furniture outside is a bit of a letdown. If somebody could make a mod for this or tell me how to go about doing so, that would be fantastic!
     
      Jadzi, 9600bauds, Davrial and 5 others like this.
    • PhoenixLabella

      PhoenixLabella Seal Broken

      Agreed. I would like to decorate my farm, put something near the lake with some lamps.
       
        KayokoSalsa and shykitten like this.
      • shykitten

        shykitten Subatomic Cosmonaut

        Yeah, I want to put some of the statues you get outside and maybe make a little picnic area near the lake.
         
        • shykitten

          shykitten Subatomic Cosmonaut

          Is anyone else interested in a mod like this?
           
            9600bauds and EltonScone like this.
          • michiewolf

            michiewolf Scruffy Nerf-Herder

            I was actually really disappointed when i bought a bench and couldn't place it in front on my house. this needs to be a thing!
             
            • shykitten

              shykitten Subatomic Cosmonaut

              I'm not really sure how to go about making this mod, but I think what needs to be done is to change what the "furniture" tag means as far as placement options go.
               
              • BlushingCreep

                BlushingCreep Phantasmal Quasar

                +1 to this request, because my house is only so big and has only so much space for decoration.
                 
                  shykitten likes this.
                • shykitten

                  shykitten Subatomic Cosmonaut

                  Glad to know I'm not the only one wanting something like this! Now to find somebody to make or figure out how to do it myself.(still have no idea what I'm doing in regards to making mods)
                   
                  • Haebaragi

                    Haebaragi Weight of the Sky

                    I actually went and put this in suggestions a long time ago but it got glossed over with the sheer amount of things in there so I'd be happy with a mod too :3
                     
                      shykitten likes this.
                    • shykitten

                      shykitten Subatomic Cosmonaut

                      I'm really hoping this doesn't get glossed over. I'm also hoping somebody that knows what they are doing will pick it up.
                       
                      • NykeSquarda

                        NykeSquarda Scruffy Nerf-Herder

                        +1
                        I really love the idea. So YES - Please someone mod this!
                         
                          shykitten likes this.
                        • describeplease

                          describeplease Space Hobo

                          Really want this for the pond area to be prettier!
                           
                            shykitten likes this.
                          • swpau

                            swpau Ketchup Robot

                            that is a great idea and suggestion
                             
                              shykitten likes this.
                            • KingJoey

                              KingJoey Phantasmal Quasar

                              I'm messing around a little bit with this for my 'bigger cave' mod, cause I wanted to place furniture as well. I have yet to found something that controls wether you can put furniture or not. Maybe because I have no idea where and what to look for either.
                               
                                shykitten and taintedwheat like this.
                              • Asgador

                                Asgador Poptop Tamer


                                Code:
                                public override bool placementAction(GameLocation location, int x, int y, Farmer who = null)
                                    {
                                      if (location is FarmHouse)
                                      {
                                        Point point = new Point(x / Game1.tileSize, y / Game1.tileSize);
                                        List<Rectangle> walls = FarmHouse.getWalls((location as FarmHouse).upgradeLevel);
                                        this.tileLocation = new Vector2((float) point.X, (float) point.Y);
                                        bool flag1 = false;
                                        if (this.furniture_type == 6 || this.furniture_type == 13 || this.parentSheetIndex == 1293)
                                        {
                                          int num = this.parentSheetIndex == 1293 ? 3 : 0;
                                          bool flag2 = false;
                                          foreach (Rectangle rectangle in walls)
                                          {
                                            if ((this.furniture_type == 6 || this.furniture_type == 13 || num != 0) && (rectangle.Y + num == point.Y && rectangle.Contains(point.X, point.Y - num)))
                                            {
                                              flag2 = true;
                                              break;
                                            }
                                          }
                                          if (!flag2)
                                          {
                                            Game1.showRedMessage("Must be placed on wall");
                                            return false;
                                          }
                                          flag1 = true;
                                        }
                                        for (int index1 = point.X; index1 < point.X + this.getTilesWide(); ++index1)
                                        {
                                          for (int index2 = point.Y; index2 < point.Y + this.getTilesHigh(); ++index2)
                                          {
                                            if (location.doesTileHaveProperty(index1, index2, "NoFurniture", "Back") != null)
                                            {
                                              Game1.showRedMessage("Furniture can't be placed here");
                                              return false;
                                            }
                                            if (!flag1 && Utility.pointInRectangles(walls, index1, index2))
                                            {
                                              Game1.showRedMessage("Can't place on wall");
                                              return false;
                                            }
                                            if (location.getTileIndexAt(index1, index2, "Buildings") != -1)
                                              return false;
                                          }
                                        }
                                        this.boundingBox = new Rectangle(x / Game1.tileSize * Game1.tileSize, y / Game1.tileSize * Game1.tileSize, this.boundingBox.Width, this.boundingBox.Height);
                                        foreach (Furniture furniture in (location as FarmHouse).furniture)
                                        {
                                          if (furniture.furniture_type == 11 && furniture.heldObject == null && furniture.getBoundingBox(furniture.tileLocation).Intersects(this.boundingBox))
                                          {
                                            furniture.performObjectDropInAction((StardewValley.Object) this, false, who == null ? Game1.player : who);
                                            return true;
                                          }
                                        }
                                        foreach (Character character in location.getFarmers())
                                        {
                                          if (character.GetBoundingBox().Intersects(this.boundingBox))
                                          {
                                            Game1.showRedMessage("Can't place on top of a person.");
                                            return false;
                                          }
                                        }
                                        this.updateDrawPosition();
                                        return base.placementAction(location, x, y, who);
                                      }
                                      Game1.showRedMessage("Can only be placed in House");
                                      return false;
                                    }


                                Found this in the StardewValley.exe.
                                Looks like this is the check from the program where you are when you try to place furniture. I hope someone can make a mod. I tried it myself but failed pretty hard.
                                 
                                  shykitten and KingJoey like this.
                                • shykitten

                                  shykitten Subatomic Cosmonaut

                                  I've had no luck either Asqador.
                                   
                                  • Asgador

                                    Asgador Poptop Tamer

                                    Maybe my brother would look at this. He studied computer science and is now developing programs in C++. I'll ask him tomorrow.
                                     
                                      shykitten likes this.
                                    • Calacene

                                      Calacene Phantasmal Quasar

                                      I was wanting to stick my old television in game into my greenhouse originally X3
                                       
                                        shykitten likes this.
                                      • Asgador

                                        Asgador Poptop Tamer

                                        I'm sure that I know how the mod should work and what it should do and so, but the last time i coded something was 1996 and was written in Basic :D
                                         
                                          RoastedCoconutz and shykitten like this.
                                        • daikiraikimi

                                          daikiraikimi Astral Cartographer

                                          I would be super interested in a mod like this! I got that huuuuge bear statue and like, I don't want to throw it out but also it takes up so much space in my house. If we could put statues and benches on the farm we could almost have a zoo aesthetic going on. Very fancy.
                                           
                                            shykitten likes this.

                                          Share This Page