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 Tiy's Beard

      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 Tiy's Beard

        @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 Phantasmal Quasar

          @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 Tiy's Beard

            @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 Phantasmal Quasar

              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 Tiy's Beard

                @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 Phantasmal Quasar

                  :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 Phantasmal Quasar

                      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 Tiy's Beard

                        • andiluxe

                          andiluxe Phantasmal Quasar

                        • 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 Tiy's Beard

                            @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 Phantasmal Quasar

                                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 Tiy's Beard

                                  @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 Phantasmal Quasar

                                    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