RELEASED Content Patcher *

Loads content packs that change the game's images and data without replacing XNB files.

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

    Bauerdog2015 Space Hobo

    Is there another site to download from because there is no captcha on nexus so I am unable to log in
     
    • Pathoschild

      Pathoschild Cosmos Killer

      Attached Files:

    • Bauerdog2015

      Bauerdog2015 Space Hobo

      I have noticed an issue with nexus. you are unable to log in as there is no captcha so I can't use that
       
      • Pathoschild

        Pathoschild Cosmos Killer

        @Bauerdog2015 I don't know what the issue with Nexus is, but it's probably temporary. I attached a copy of the latest version above in the meantime.
         
        • andiluxe

          andiluxe Big Damn Hero

          @Pathoschild
          I have this massive content pack for personal use. It's always worked just fine, but suddenly my farmhouse_tiles aren't loading entirely. It's loading the extra bathroom tiles, but not my bed and kitchen.

          https://www.dropbox.com/s/dymnr29zx0gccsy/Screenshot 2019-03-02 12.18.24.png?dl=0
          https://www.dropbox.com/s/l0mvl6bo0q3gcng/Screenshot 2019-03-02 12.18.42.png?dl=0

          Do you have any idea what might be going on? Smapi isn't giving me any errors at all.

          SMAPI 2.11 with Stardew Valley 1.3.36 on MacOS Unix 18.2.0.0
           
          • Pathoschild

            Pathoschild Cosmos Killer

            @andiluxe Yesterday's Stardew Valley 1.3.36 update made some changes to the tilesheets. It's hard to say how that might affect your mod though, since it's a personal pack. If you post a zip here, I could see if I can spot a possible issue in 1.3.36.
             
            • andiluxe

              andiluxe Big Damn Hero

              Oh wow. I thought I checked the tilesheets, but I didn't notice those subtle changes. I'm still confused why this isn't working though.

              I apologize in advance for the size of this thing. I tried editing the farmhouse_tiles in assets/wren. The others are not edited.

              https://www.dropbox.com/s/tntmlbk2ffvyqgu/! Custom Farmer Pack.zip?dl=0
               
              • Pathoschild

                Pathoschild Cosmos Killer

                @andiluxe You have a patch to load farmhouse_tiles, but none for Maps/farmhouse_tiles. It seems to work fine after I added that.

                Also, you can apply a patch to multiple targets now (if you update the Format field to 1.6). For example, these two blocks:
                Code:
                  {
                    "Action": "EditImage",
                    "Target": "walls_and_floors",
                    "FromFile": "assets/walls_and_floors.png",
                    "When": {
                      "farmer": "luxie, evie, nora, wren"
                    }
                  },
                  {
                    "Action": "EditImage",
                    "Target": "Maps/walls_and_floors",
                    "FromFile": "assets/walls_and_floors.png",
                    "When": {
                      "farmer": "luxie, evie, nora, wren"
                    }
                  }
                
                Can be combined into this:
                Code:
                  {
                    "Action": "EditImage",
                    "Target": "walls_and_floors, Maps/walls_and_floors",
                    "FromFile": "assets/walls_and_floors.png",
                    "When": {
                      "farmer": "luxie, evie, nora, wren"
                    }
                  }
                
                 
                • andiluxe

                  andiluxe Big Damn Hero

                  :O :O :O Thank you, @Pathoschild !

                  Ok, I have a new error though. I have a custom tilesheet I use for my Winery re-skin. Previously, I had


                  Code:
                       {
                            "Action": "Load",
                            "Target": "winery",
                            "FromFile": "assets/winery_{{Interior Color}}.png",
                          },
                  But now it's looking for winery.xnb to replace it. Obviously this doesn't exist, and I can't just not have a Target, can I?
                   
                    Last edited: Mar 3, 2019
                  • SpringsSong

                    SpringsSong Cosmic Narwhal

                    Make the following change:

                    Code:
                    "Target": "winery"
                    to
                    Code:
                    "Target": "Maps/winery"
                    That fixed the error for me :3
                     
                    • andiluxe

                      andiluxe Big Damn Hero

                      Well, okay! I'm not sure I understand that but if it works, I'll take it! Thank you!
                       
                      • SpringsSong

                        SpringsSong Cosmic Narwhal

                        Basically, with this update, CA changed the logic for custom tilesheets I guess? Originally we could just plop them in Content and be done with it; now we place them in Content/Maps (and with Content Patcher, just putting "winery" was telling it to place the sheet directly in Content)
                         
                        • Pathoschild

                          Pathoschild Cosmos Killer

                        • andiluxe

                          andiluxe Big Damn Hero

                        • 13akoors

                          13akoors Scruffy Nerf-Herder

                          Hey, Pathos. I have a weird question that may confuse you.

                          I have a map mod I'm working on, and up until now I've used both all and XNBLoader to load the mod (ALL for everything but the Farm, and XNBLoader for the Farm). Will XNBLoader most likely not getting updated much longer, I wanted to switch over to ContentPatcher to load the Farm maps. My issue is, this would require me making the mod be a Content Pack of both ALL and ContentPatcher, which as of repeated attempts seems impossible. Am I correct that it's not possible to make a manifest that makes a mod a Content Pack for 2 mods. or am I missing an obvious solution?
                           
                          • Pathoschild

                            Pathoschild Cosmos Killer

                            @andiluxe Your content pack works fine for me, including the interior. Can you come ask in #modding on the Stardew Valley Discord, so we can run some tests?

                            @13akoors One content pack can't be for two mods, but you can have two content packs in one folder. If a folder only contains subfolders (with no loose files), SMAPI will look inside it for mods/packs. For example, a structure like this should work fine (even if the player leaves them nested in the folder):
                            Code:
                            YourModName/
                               [CP] YourModName/
                                  content.json
                                  manifest.json
                               [ALL] YourModName/
                                  locations.json
                                  manifest.json
                            
                             
                              andiluxe likes this.
                            • 13akoors

                              13akoors Scruffy Nerf-Herder

                              Ah, I hadn't considered trying that. Thanks! :)
                               
                              • andiluxe

                                andiluxe Big Damn Hero

                                It's a busy weekend, but it works fine until you go visit Robin to try to build a Slime Hutch or if you have a Slime Hutch already. If there isn't one on your save, it's ok.
                                 
                                • Pathoschild

                                  Pathoschild Cosmos Killer

                                  @andiluxe Yep, did that. I set the exterior to Black2, loaded a save with no slime hutch, bought the winery from Robin, waited until it finished construction, and peeked inside. Everything worked fine for me.
                                   
                                  • andiluxe

                                    andiluxe Big Damn Hero

                                    Out of curiosity, do you have a winery.xnb from another mod lingering in your Content or Maps folders? I had to pack one up and place copies there to make this work. I'm bewildered that you're saying this works for you!
                                     
                                    Thread Status:
                                    Not open for further replies.

                                    Share This Page