tenshiya
Cowpoke
Hello! I downloaded the Farmer Portraits mod, which shows a portrait of your farmer on the left side of dialogue boxes. I have some drawings of my farmer that I'm trying to use, and was able to get one portrait to work with this as my content.json contents:
I believe I have everything setup correctly since I was able to get one custom portrait to work. However, I am now trying to use dynamic tokens to set different portraits for different seasons/festivals but can't seem to get any custom portraits to show up now with the updated content.json. It's only showing the non-custom portrait/pixel character sprite even though I have "UseCustomPortrait" set to True. I'm also not getting any errors about this in SMAPI. Here's the content.json fileI've edited -- does anyone know why this isn't working? I thought the {{style}} placeholder in the line - "FromFile": "assets/piper_{{style}}.png" - would populate based on my values I set in the DynamicTokens section, but maybe I'm not understanding how to do this correctly? Any help/input would be greatly appreciated!!!
Code:
{
"Format": "1.4",
"Changes": [
{
"Action": "Load",
"Target": "aedenthorn.FarmerPortraits/portrait",
"FromFile": "assets/spring_portrait.png",
"When": {
"Season": "spring",
"Weather": "sun, wind, rain"}
}
]
}
Code:
{
"Format": "1.4",
"DynamicTokens": [
{
"Name": "Style",
"Value": "spring",
"When": {
"Season": "spring",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "summer",
"When": {
"Season": "summer",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "fall",
"When": {
"Season": "fall",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "winter",
"When": {
"Season": "winter",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "aerobics",
"When": {
"DayOfWeek": "Tuesday",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "flowerdance",
"When": {
"DayEvent": "flower dance",
"Season": "spring",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "spiritseve",
"When": {
"DayEvent": "spirit's eve",
"Season": "fall",
"Weather": "sun, wind, rain, storm, snow"
}
},
{
"Name": "Style",
"Value": "wedding",
"When": {
"DayEvent": "wedding"
}
}
],
"Changes": [
{
"Action": "Load",
"Target": "aedenthorn.FarmerPortraits/portrait",
"FromFile": "assets/piper_{{style}}.png"
}
]
}