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. Chill-T

    Chill-T Phantasmal Quasar

    I was worried as well, so I planned to convert them for my personal use. As long as the authors also upload to Nexus or on this forum, like in Yellog's case, I guess it's alright. As for those exclusively on Naver.. well, I can't read hangul either. ^^; It's your call at this point.

    I'll upload 코이's hats temporarily since @Kuriiyo seemed interested. Note that this is my first time, and I pretty much looked into the code of Seyph's Ragnarok Hats to see how it works. :D I hope that is allowed. I'll take it down sometime later.

    Edit 9/18: Coii will be uploading her hats to Nexus, with three additional hats. I'd like to give my thanks to the 75 people who enjoyed the conversion!
     
      Last edited: Sep 17, 2018
      Ensifera and Kuriiyo like this.
    • houska22

      houska22 Big Damn Hero

    • coldazrael

      coldazrael Existential Complex

      I guess I'll just convert whatever things until I got the warning :D The people seems happy with those unofficial conversions anyway.

      I think there is no need to 'temporary upload'. Unless you got the message from the author for takedown.
       
      • Chill-T

        Chill-T Phantasmal Quasar

        I guess you have a point with the community being happy. You all seem to convert with good intentions and credits are given anyway. I might as well keep the file up then, I like to live dangerously. *puts shades on* :disguise:
         
          Last edited: Aug 29, 2018
        • coldazrael

          coldazrael Existential Complex

          Last edited: Aug 29, 2018
          depressedfarmer and houska22 like this.
        • coldazrael

          coldazrael Existential Complex

          We work in the dark, to serve the light. We are as- uhm.. CP converters :catvanish:
           
          • houska22

            houska22 Big Damn Hero

            Thanks a lot for such quick conversion! :) It works on my farm and such, but unfortunately in the town I have these weird glitches :(
             

              Attached Files:

            • coldazrael

              coldazrael Existential Complex

              very weird indeed, just as the codes were weird as well xD
              So I just happen to forgot to change the coordinate destination. In a nutshell, I replaced the wrong part of the tilesheet.
              Check my post before, I've updated the conversion.
               
                houska22 likes this.
              • houska22

                houska22 Big Damn Hero

                Oh happy it was easy to fix haha! :D Thank you so much, it works now!! :)
                 
                • Chill-T

                  Chill-T Phantasmal Quasar

                  :up:

                  Nothing is true. Everything is permitted. :ninja: (We are.. the Cepe Convertos of the Converter Order.)
                   
                    Last edited: Aug 29, 2018
                  • coldazrael

                    coldazrael Existential Complex

                    Anytime, mate. :D
                    Let me know if you found another buggy stuff.
                     
                      houska22 likes this.
                    • coldazrael

                      coldazrael Existential Complex

                      Out of topic is permitted
                      Double post is permitted


                      looks like the moderators are in holiday :ninja:
                       
                        Chill-T likes this.
                      • Chill-T

                        Chill-T Phantasmal Quasar

                        What a time to be alive

                        Anyway on topic, I realized I didn't update my hats conversion into the wiki. :D Let's see if I don't screw this one up. I might try helping around on converting as well when I have my hands less full.
                         
                          Last edited: Aug 29, 2018
                        • coldazrael

                          coldazrael Existential Complex

                          You are more than welcome :D Few tips from the most of pros around here : try to avoid 'load' and use 'editimage' if only comes to edit sprites.

                          I'm still waiting for the luau portraits by the way X3
                           
                            Chill-T likes this.
                          • niggy

                            niggy Void-Bound Voyager

                          • coldazrael

                            coldazrael Existential Complex

                          • randomlybookish

                            randomlybookish Subatomic Cosmonaut

                          • sheetcakeghost

                            sheetcakeghost Weight of the Sky

                            I tried to make a CP map mod of Small Farm (with switches for all the different versions) and it's not working for me. I have no idea why.

                            EDIT: Moved the folders into an assets folder to see if that was the trouble, but I think it might just be a parsing issue that I can't see? Note below.

                            [ContentPatcher] Error loading content pack '[CP] Small Farm'. Technical details:
                            Newtonsoft.Json.JsonReaderException: Can't parse JSON file at D:\Games\SteamClient\steamapps\common\Stardew Valley - French Vanilla\Mods\[CP] Small Farm\content.json.
                            Technical details: Error converting value "When" to type 'ContentPatcher.Framework.ConfigModels.PatchConfig'. Path 'Changes[1]', line 14, position 10.
                            at StardewModdingAPI.Toolkit.Serialisation.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result)
                            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
                             

                              Attached Files:

                              Last edited: Aug 30, 2018
                            • coldazrael

                              coldazrael Existential Complex

                              @sheetcakeghost
                              Code:
                              "Changes": [
                              {
                              "Action": "Load",
                              "Target": "Maps/Farm_Foraging",
                              "FromFile": "Type1/Farm_Foraging.xnb",
                              },
                              "When": { "Farm": "Type1" }
                              },
                              "Changes": [
                              {
                              "Action": "Load",
                              "Target": "Maps/Farm_Foraging",
                              "FromFile": "Type2/Farm_Foraging.xnb",
                              },
                              "When": { "Farm": "Type2" }
                              },
                              
                              (etc)
                              
                              
                              it's from the code itself o_O
                              You put alot of changes field where It's supposed to be one that is needed, the when condition must be inside the common field as well. The structure should be like this :
                              Code:
                              "Changes": [
                              {
                              "Action": "Load",
                              "Target": "Maps/Farm_Foraging",
                              "FromFile": "Type1/Farm_Foraging.xnb",
                              "When": {
                              "Farm": "Type1" }
                              },
                              {
                              "Action": "Load",
                              "Target": "Maps/Farm_Foraging",
                              "FromFile": "Type2/Farm_Foraging.xnb",
                              "When": {
                              "Farm": "Type2" }
                              },
                              
                              (more more common fields)
                              
                              ]
                              
                               
                                PandaNikita likes this.
                              • sheetcakeghost

                                sheetcakeghost Weight of the Sky

                                AH! Ty kind coder!

                                Here it is all good and working. The Small Farm mod. I also did one for Prettier Small Farm aka Forest Clearing. It was using the custom farm type mod (now broken) so I just made it also replace the foraging farm map. I didn't include it with the small farm switches because it requires custom tile sheets.

                                Seeing as these are not my mods (unofficial converting ftw) I don't know if I should be the one to upload them to the wiki.
                                 

                                  Attached Files:

                                  Last edited: Aug 30, 2018
                                  PandaNikita likes this.
                                Thread Status:
                                Not open for further replies.

                                Share This Page