idk if this is also the cause of other ppls issue for custom portrait but make sure the template pack that you download on the original mod page is a separate folder in your mods folder, don't put it in the same folder as this mod or the custom portrait wont work. I merged them and only realized after like 20 min of testing that i was dumb
[Content Patcher] Two content packs want to load the 'aedenthorn.FarmerPortraits/background' asset with the 'Exclusive' priority ((CP) Seasonal Farmer Portrait and Farmer 2.0 ESWF NPCReactionOverhaul). Neither will be applied. You should remove one of the content packs, or ask the authors about compatibility.
Hi, I'm loving this mod so far, but I was wondering if there is a way to add custom portraits for festivals (i.e. one for wedding, spirits eve, flower dance, etc.) without a separate mod. I've tried to find instructions here, but I feel like I might be missing something. If anyone has any suggestions or ways to edit the config.json file that would be helpful. I also have the optional file downloaded for the emotion reactions as well, but not the seasonal reactions, so I don't know if that would make a difference. Thanks! :)
Hi Misty, not sure if you are interested to know this minor compatibility problem:
Unique Children Talk is a framework mod that allows the farmer to talk to the children, and when we are talking to the children with the farmer's portrait installed, the whole dialogues box will shift to the left when you talk to them for the first time on that day, but it will return to the normal position when you talk to them one more time.
Hi hello! I just saw that you updated for the farmer to have reactions too! To which, wow thank you! That is way more than what I could have asked :D But I wanted to ask, what are file templates portait_6.png and portrait_unique_old.png for? Also! Do I need both farmer emotions + farmer portrait or just one folder for both my custom portrait and it's emotions? Thank you :3
Portrait_6 is just an example- basically, you can add as many emotions as you want (not just the main ones). It was a way to show that (I mention it inside the content.json)
as for unique_old- that's a file i forgot to delete. i'll post an updated version
Hi again so sorry I seem to get this error code when attempting to use the reactions-
[Content Patcher] Error preloading content pack '(CP) Farmer Portrait Emotions'. Technical details: Newtonsoft.Json.JsonReaderException: Can't parse JSON file at C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[CP] Farmer Portrait\content.json. This doesn't seem to be valid JSON. Technical details: Invalid property identifier character: {. Path 'Changes[7].Entries.Krobus', line 55, position 2. at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in E:\source\_Stardew\SMAPI\src\SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86 at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:line 76 at ContentPatcher.Framework.RawContentPack.TryReloadContent(String& error) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\RawContentPack.cs:line 80 at ContentPatcher.ModEntry.GetContentPacks()+MoveNext() in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\ModEntry.cs:line 431
I also attempted to try this with Claire from SVE! But I'm not totally sure if I did the coding right or if SVE is compatible with this mod hahah please bare with me--
UPDATE: After some tweaking and trial and error I was able to figure it out without getting an error in JSON! However, I have another error instead-- [Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #2" to aedenthorn.FarmerPortraits/reactions: failed converting String value to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Error converting value "EditData" to type 'System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]'. Path ''.. [Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #3" to aedenthorn.FarmerPortraits/reactions: failed converting String value to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Error converting value "aedenthorn.FarmerPortraits/reactions" to type 'System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]'. Path ''.. [Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #4" to aedenthorn.FarmerPortraits/reactions: failed converting entry to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Could not convert string 'Claire' to dictionary key type 'System.Int32'. Create a TypeConverter to convert from the string to the key type object. Path 'Claire'..
Here is the link to my JSON validator just in case you still need to see how I formatted it
I had been having issues getting my custom expressions to work, until I used the content image you posted here as a guide. I believe it might have been caused by there being a space between the "3" and : in the korbus reaction section in the original content file. I do not know much about modding so I assumed it was supposed to be there until seeing your link and changing it, and now all my expressions work!
I just wanted to make sure to mention this here in case others have similar issues to me, so they can fix it. Thank you for the mod btw, it is fantastic!
To sum up what this means: in the Content file, edit it in Wordpad or similar and remove the space from the Krobus section mentioned above. Make sure your portraits are named like "portrait_blush" and use all the emotions listed. Yes, that includes a picture with "unique" and one with "portrait_6" even though that one may not get used. I have yet to figure out the more than those listed by default, though. I am curious about adding more options, but I am under the impression that custom NPC emotion tags need to be added before I could create more options with this mod for my own player portraits. Next up for me is figuring out if I can make my portraits higher resolution.
Hi! I really love this mod, thanks so much for updating it. I have a problem where my farmer's portrait ends just one pixel too high above the frame and I think it's because I use portraited changing skies, which gets rid of the lighter paper border in the normal background of the portrait. Is it possible to add an option for us to move our farmer's portrait around a bit in the box? Thank you!
Hoping this new mod dev finds a way to make it so dialogue spaces properly when using the mod cause as of now using a custom portrait squishes dialogue so it runs out of the text box altogether and makes it impossible to read…
Sorry I meant this for the legacy (old) version of this mod. This current version of the mod has a “fix text” option I believe that fixes the issue I mentioned! I noticed on the older mod this issue can be remedied by clicking the “down” arrow on the text box continuation to see the rest of the conversation so problem kinda fixed!
just asking because i'm dumb (and also currently trying to draw my own custom portraits to go with the talkohlooeys' style) but what's 'portrait_6' supposed to be? is it the one used for each season's respective festival, or something else entirely? when is it used?
[Content Patcher] Patch error: (CP) Farmer Portrait > Load aedenthorn.FarmerPortraits/portrait has a FromFile which matches non-existent file 'assets\portrait.png'.[Content Patcher] Patch error: (CP) Farmer Portrait > Load aedenthorn.FarmerPortraits/background has a FromFile which matches non-existent file 'assets\background.png'.Honestly i have no idea when it comes to code so i used the template and did as the description said but its still not working and when i start smapi it showes this code, somebody help please
I am having this exact problem. It was working perfectly with a portrait I made on jazzybee. I removed that portrait and added a different one I made on jazzy, and now it won't work. I tried using the old portrait, but that won't work now and throws up the same FromFile error in the smapi log. Mine isn't showing the error for "file 'assets\background.png'.", but I never changed the background template. EDIT: Oh man. I am a dumdum. I figured out my issue. Maybe it will help you too. I had forgotten to rename the portrait with the same name as the template. Delete the templates and name the ones you're using "background" and "portrait". I hope this helps if this is the cause of your error too.
243 comments
📁 Mods
|-- 📁 FarmerPortraits
|-- 📁 [CP] Your content pack
求助这是出现了什么问题
Unique Children Talk is a framework mod that allows the farmer to talk to the children, and when we are talking to the children with the farmer's portrait installed, the whole dialogues box will shift to the left when you talk to them for the first time on that day, but it will return to the normal position when you talk to them one more time.
https://www.nexusmods.com/stardewvalley/mods/16645?_gl=1%2A1is9f8z%2A_ga%2AMTAyNjEwMzYwOC4xNzA1MzczOTIw%2A_ga_N0TELNQ37M%2AMTcxNTQzNDc2MS41OS4xLjE3MTU0MzUyMjIuMC4wLjA.&tab=description
(I mention it inside the content.json)
as for unique_old- that's a file i forgot to delete. i'll post an updated version
You can use a single one for both, yes!
[Content Patcher] Error preloading content pack '(CP) Farmer Portrait Emotions'. Technical details:
Newtonsoft.Json.JsonReaderException: Can't parse JSON file at C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[CP] Farmer Portrait\content.json. This doesn't seem to be valid JSON.
Technical details: Invalid property identifier character: {. Path 'Changes[7].Entries.Krobus', line 55, position 2.
at StardewModdingAPI.Toolkit.Serialization.JsonHelper.ReadJsonFileIfExists[TModel](String fullPath, TModel& result) in E:\source\_Stardew\SMAPI\src\SMAPI.Toolkit\Serialization\JsonHelper.cs:line 86
at StardewModdingAPI.Framework.ContentPack.ReadJsonFile[TModel](String path) in E:\source\_Stardew\SMAPI\src\SMAPI\Framework\ContentPack.cs:line 76
at ContentPatcher.Framework.RawContentPack.TryReloadContent(String& error) in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\RawContentPack.cs:line 80
at ContentPatcher.ModEntry.GetContentPacks()+MoveNext() in E:\source\_Stardew\Mods.Pathoschild\ContentPatcher\ModEntry.cs:line 431
I also attempted to try this with Claire from SVE! But I'm not totally sure if I did the coding right or if SVE is compatible with this mod hahah please bare with me--
Could you upload your file here and send the link?
(The error seems to be in the formatting, so I'd have to see your edit to figure out what's wrong)
[Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #2" to aedenthorn.FarmerPortraits/reactions: failed converting String value to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Error converting value "EditData" to type 'System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]'. Path ''..
[Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #3" to aedenthorn.FarmerPortraits/reactions: failed converting String value to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Error converting value "aedenthorn.FarmerPortraits/reactions" to type 'System.Collections.Generic.Dictionary`2[System.Int32,System.Int32]'. Path ''..
[Content Patcher] Can't apply data patch "(CP) Farmer Portrait Emotions SEASONAL > EditData aedenthorn.FarmerPortraits/reactions > entry #4" to aedenthorn.FarmerPortraits/reactions: failed converting entry to the expected type 'System.Collections.Generic.Dictionary`2[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]': Could not convert string 'Claire' to dictionary key type 'System.Int32'. Create a TypeConverter to convert from the string to the key type object. Path 'Claire'..
Here is the link to my JSON validator just in case you still need to see how I formatted it
This should work: https://smapi.io/json/content-patcher/e61a477d0a374d6086f476df0f531976
I just wanted to make sure to mention this here in case others have similar issues to me, so they can fix it. Thank you for the mod btw, it is fantastic!
Next up for me is figuring out if I can make my portraits higher resolution.
Honestly i have no idea when it comes to code so i used the template and did as the description said but its still not working and when i start smapi it showes this code, somebody help please[Content Patcher] Patch error: (CP) Farmer Portrait > Load aedenthorn.FarmerPortraits/portrait has a FromFile which matches non-existent file 'assets\portrait.png'.
[Content Patcher] Patch error: (CP) Farmer Portrait > Load aedenthorn.FarmerPortraits/background has a FromFile which matches non-existent file 'assets\background.png'.
EDIT:
Oh man. I am a dumdum. I figured out my issue. Maybe it will help you too. I had forgotten to rename the portrait with the same name as the template. Delete the templates and name the ones you're using "background" and "portrait". I hope this helps if this is the cause of your error too.