Modding Discussion Migrating XNB mods to Content Patcher packs

Discussion in 'Mods' started by Pathoschild, Mar 5, 2018.

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

    comaelina Aquatic Astronaut

    i really really would love to see a converion of seaside interior as well!!
     
    • dreamsicl

      dreamsicl Void-Bound Voyager

      I actually made one recently, wasn't gonna upload it until now. see attachment.

      I also updated Vintage Menu Interface to fix the fonts. there was a weird bug with the title screen buttons where they start out with the original sprites and update later, but it seems to have fixed itself. no promises that it won't act weird though
       

        Attached Files:

        Last edited: Aug 7, 2018
        Medicell likes this.
      • comaelina

        comaelina Aquatic Astronaut

        I think you uploaded the wrong thing? That's hojichas wallpaper and flooring only :)
         
        • dreamsicl

          dreamsicl Void-Bound Voyager

          oops, fixed lol
           
          • a4k

            a4k Scruffy Nerf-Herder

          • comaelina

            comaelina Aquatic Astronaut

            Thank you! Perfect conversion!
             
            • sunnrock

              sunnrock Void-Bound Voyager

              I second this! So far, I've managed to create a simple version that replaces the fruit trees (attached below), but the other trees are a bit more complicated, since even replacing the XNB files doesn't work. As far as I can tell, that's because you also have to edit the <season>_outdoorsTileSheet.xnb files in order for the changes to take effect. Unfortunately, Rue hasn't provided replacement files for those, so simply replacing the tree files themselves doesn't work. Could someone with better artistic/modding skills figure out how to edit the outdoorsTileSheet files?
               

                Attached Files:

                PandaNikita and Medicell like this.
              • macaro0n

                macaro0n Void-Bound Voyager


                when trying to convert the walls and floors myself (at the second attempt), I got this :

                08: 03:40 ERROR ContentPatcher] Error loading content pack 'Barfy's Fancy Farmhouses'. Technical details:

                Newtonsoft.Json.JsonReaderException: Can't parse JSON file at D :\SteamLibrary\steamapps\common\Stardew Valley\Mods\[CP] Barfy's Walls and Floors\content.json.

                Technical details: Unexpected end when deserializing array. Path 'Changes[4]', line 44, position 9.

                at StardewModdingAPI.Toolkit.Serialisation.JsonHelper.ReadJsonFile[TModel](String fullPath)

                at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:line 57

                at ContentPatcher.Framework.ManagedContentPack.ReadJsonFile[TModel](String path) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\ManagedContentPack.cs:line 75

                at ContentPatcher.ModEntry.<LoadContentPacks>d__13.MoveNext() in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\ModEntry.cs:line 0


                and here is the entire content.json of this CP mod :


                {
                "Format": "1.3",
                "Changes": [
                // Floors
                {
                "Action": "EditImage",
                "Target": "walls_and_floors",
                "FromFile": "assets/walls_and_floors.png",
                "FromArea": { "X": 96, "Y": 432, "Width": 96, "Height": 32 },
                "ToArea": { "X": 96, "Y": 432, "Width": 96, "Height": 32 }
                },

                {
                "Action": "EditImage",
                "Target": "walls_and_floors",
                "FromFile": "assets/walls_and_floors.png",
                "FromArea": { "X": 192, "Y": 400, "Width": 32, "Height": 32 },
                "ToArea": { "X": 192, "Y": 400, "Width": 32, "Height": 32 }
                },

                {
                "Action": "EditImage",
                "Target": "walls_and_floors",
                "FromFile": "assets/walls_and_floors.png",
                "FromArea": { "X": 64, "Y": 400, "Width": 32, "Height": 32 },
                "ToArea": { "X": 64, "Y": 400, "Width": 32, "Height": 32 }
                },

                {
                "Action": "EditImage",
                "Target": "walls_and_floors",
                "FromFile": "assets/walls_and_floors.png",
                "FromArea": { "X": 224, "Y": 368, "Width": 32, "Height": 32 },
                "ToArea": { "X": 224, "Y": 368, "Width": 32, "Height": 32 }
                },

                //Walls
                {
                "Action": "EditImage",
                "Target": "walls_and_floors",
                "FromFile": "assets/walls_and_floors.png",
                "FromArea": { "X": 160, "Y": 240, "Width": 80, "Height": 45 },
                "ToArea": { "X": 160, "Y": 240, "Width": 80, "Height": 45 }
                },


                any ideas how to get this work?
                 
                • paradigmnomad

                  paradigmnomad Scruffy Nerf-Herder

                  There's a missing {

                  after
                  Code:
                  {
                  "Action": "EditImage",
                  "Target": "walls_and_floors",
                  "FromFile": "assets/walls_and_floors.png",
                  "FromArea": { "X": 224, "Y": 368, "Width": 32, "Height": 32 },
                  "ToArea": { "X": 224, "Y": 368, "Width": 32, "Height": 32 }
                  },
                  And if that's also the entire content.json you're missing some ending punctuation:

                  Code:
                  "FromArea": { "X": 160, "Y": 240, "Width": 80, "Height": 45 },
                  "ToArea": { "X": 160, "Y": 240, "Width": 80, "Height": 45 }
                  },
                  ]
                  }
                   
                  • macaro0n

                    macaro0n Void-Bound Voyager


                    aahh thanks so much!

                    and I guess I'll share this combined Hojichas and Barfy's cute wallpaper and flooring. enjoy <3
                     

                      Attached Files:

                    • Allayna

                      Allayna Ketchup Robot

                      Sorry about that, I didn't look at the map itself when I made the CP mod, I had to hunt down the tilesheets. This should work now.
                      Edit- you can use this image if you use Eemiestardew's recolors. Not seasonal because of CP limitations, but it looks better
                       

                        Attached Files:

                        Last edited: Aug 20, 2018
                        PandaNikita likes this.
                      • Allayna

                        Allayna Ketchup Robot

                        Made a CP Version of Farm Expansion
                        If anyone uses my Expanded maps, I'm updating it in a bit to be compatible
                        edit - sorry, uploaded the wrong files
                         
                          Last edited: Aug 9, 2018
                        • RainbowPantuflas

                          RainbowPantuflas Void-Bound Voyager

                        • paradigmnomad

                          paradigmnomad Scruffy Nerf-Herder

                          Done & Posted
                           

                            Attached Files:

                          • aDoseOfDee

                            aDoseOfDee Intergalactic Tourist

                          • SpringsSong

                            SpringsSong Cosmic Narwhal

                            That is a pure SMAPI mod, not an XNB mod. Also, for chest labeling and other such features, consider Pathos' Chests Anywhere, which adds labeling and other features.
                             
                            • pablin_1456

                              pablin_1456 Aquatic Astronaut

                              Someone could fix the mapping of this CP ... This is a little messy ... some textures are missing in the contours of the rooms ... I would appreciate it very much
                               

                                Attached Files:

                              • Ches713

                                Ches713 Void-Bound Voyager

                                Attached Files:

                                Medicell likes this.
                              • Allayna

                                Allayna Ketchup Robot

                                can anyone test this and tell me if it works? I tested it before uploading and it was fine, but now me and another are getting stuck in a loading screen when entering the map
                                 
                                • Moragaine

                                  Moragaine Existential Complex

                                Thread Status:
                                Not open for further replies.

                                Share This Page