Trying to recolor the pan during animation

LooneyLuny

Cowpoke
I'm working on a recolor for tools and weapons, and I've hit a serious roadblock with the panning animation. I'm sure it's set up the same as the other image edits, but unlike them it isn't working. Here's the image and code that I'm using. Maybe something will stand out to someone more experienced.

{
"LogName": "Panning animations female",
"Action": "EditImage",
"PatchMode": "Overlay",
"Target": "Characters/Farmer/farmer_girl_base",
"FromFile": "assets/panning_female.png",
"FromArea": { "X": 0, "Y": 0, "Width": 192, "Height": 16 },
"ToArea": { "X": 95, "Y": 656, "Width": 192, "Height": 16 },
},

And this is the image. The mod is going to only replace the iridium pan, but for testing I copied it to all versions.
farmer_girl_base all.png


I attached the full mod as well if anyone wants to look over it as a whole.
 

Attachments

Dyanosis

Tiller
You can remove the "FromArea" from all of your edits where the FromArea is using the entire FromFile. Here's the reasoning from CP:

FromAreaThe part of the source image to copy. Defaults to the whole source image.
This is specified as an object with the X and Y pixel coordinates of the top-left corner, and the pixel width and height of the area. Its fields may contain tokens.
As far as why Panning doesn't look right - Have you tried replacing the other Character/Farmer files as well? There are 4 files for each farmer:
  • farmer_base and farmer_girl_base
  • farmer_base_bald and farmer_girl_base_bald
  • farmer_base_mannequin and farmer_girl_base_mannequin
  • farmer_base_mannequin_cursed and farmer_girl_base_mannequin_cursed

I don't do reskins/recolors and I'm not an expert in how to do them for the farmer... but it seems to reason that if there are 4 files for each gender of farmer that you'd need to replace/overlay all of them.
 

LooneyLuny

Cowpoke
You can remove the "FromArea" from all of your edits where the FromArea is using the entire FromFile. Here's the reasoning from CP:


As far as why Panning doesn't look right - Have you tried replacing the other Character/Farmer files as well? There are 4 files for each farmer:
  • farmer_base and farmer_girl_base
  • farmer_base_bald and farmer_girl_base_bald
  • farmer_base_mannequin and farmer_girl_base_mannequin
  • farmer_base_mannequin_cursed and farmer_girl_base_mannequin_cursed

I don't do reskins/recolors and I'm not an expert in how to do them for the farmer... but it seems to reason that if there are 4 files for each gender of farmer that you'd need to replace/overlay all of them.
Alright, thank you! I've been referencing other mods for how to type out the contents, so I'm not always sure if certain text is needed.

I'll try that. The only reason I didn't is because the other mods I was referencing only replaced the one file. But I'll give it a try and see if that fixes things. If it works it works. Lol
 

Dyanosis

Tiller
Alright, thank you! I've been referencing other mods for how to type out the contents, so I'm not always sure if certain text is needed.

I'll try that. The only reason I didn't is because the other mods I was referencing only replaced the one file. But I'll give it a try and see if that fixes things. If it works it works. Lol
Looking at other mods is great, if we assume they all work as intended. Not all mods are tested though so... observe at your own potential risk :P

I've never seen other mods need to affect anything but the base either, but it can't hurt to try.
 

LooneyLuny

Cowpoke
Looking at other mods is great, if we assume they all work as intended. Not all mods are tested though so... observe at your own potential risk :P

I've never seen other mods need to affect anything but the base either, but it can't hurt to try.
Oh yeah, but I have no idea what I'm doing, so it's better than nothing. XD I always test it though and make adjustments. This one is just... ugh. lol I tried applying the recolor to the other files and still no dice.
 

LooneyLuny

Cowpoke
Update in case anyone else comes looking for an answer:
I found the problem! After a lot of enabling and disabling mods, I found that the culprit was Fashion Sense. It applies it's own farmer_base files and was conflicting with mine. Couldn't get mine to overlay with it, so I edited the FS files with my recolor, then added it as an optional merger folder to overwrite them if anyone wants the panning animation to match. Spent like 6 hours trying to figure that all out. XD
 

Dyanosis

Tiller
Update in case anyone else comes looking for an answer:
I found the problem! After a lot of enabling and disabling mods, I found that the culprit was Fashion Sense. It applies it's own farmer_base files and was conflicting with mine. Couldn't get mine to overlay with it, so I edited the FS files with my recolor, then added it as an optional merger folder to overwrite them if anyone wants the panning animation to match. Spent like 6 hours trying to figure that all out. XD
Have you tried adding Fashion Sense as an optional Dependency in your manifest.json file? That'll tell CP to load your mod after Fashion Sense, which should allow your recolor overwrite whatever Fashion Sense does.
 

LooneyLuny

Cowpoke
Have you tried adding Fashion Sense as an optional Dependency in your manifest.json file? That'll tell CP to load your mod after Fashion Sense, which should allow your recolor overwrite whatever Fashion Sense does.
I did try that and it still wouldn't work, but I might've also just typed something wrong. I'll try it again to be sure. The image for the girl farmer animations is odd though. Fashion Sense only has the copper pan with the other upgrades missing. The male farmer file has them all as normal though. This is why the pan showed copper no matter what I tried.

UPDATE: Tried it again and it still wouldn't overlay the animation. This thing is frustrating. (눈_눈)
 
Last edited:

Dyanosis

Tiller
Just to make sure we're on the same page, you added this to your manifest.json? Btw, I found an error in how your manifest is set up and noticed that you didn't specify an UpdateKeys value, so people won't know if/when you post updates unless they check your nexus page.

JSON:
"Dependencies": [
    {
        "UniqueID": "PeacefulEnd.FashionSense",
        "IsRequired": false
    }
]
For example, your manifest would look like:
Code:
{
    "Name":"[CP] Rose Iridium Tools and Weapons",
    "Author":"Luny",
    "Version":"1.2.0",
    "Description":"Reskins tools and weapons with a custom pastel rose set",
    "UniqueID":"Luny.RoseIridiumTools",
    "UpdateKeys":[
        "Nexus:99792"
    ],
    "ContentPackFor":{
        "UniqueID":"Pathoschild.ContentPatcher",     
    },
    "Dependencies":[
        {
            "UniqueID":"PeacefulEnd.FashionSense",
            "IsRequired":false
        }
    ]
}
Update: I also noticed that your mod name doesn't contain "[CP]", which is a nice naming convention to remind people that your mod adds content via Content Patcher and doesn't actually change the functionality of the game.
 

LooneyLuny

Cowpoke
Just to make sure we're on the same page, you added this to your manifest.json? Btw, I found an error in how your manifest is set up and noticed that you didn't specify an UpdateKeys value, so people won't know if/when you post updates unless they check your nexus page.

JSON:
"Dependencies": [
    {
        "UniqueID": "PeacefulEnd.FashionSense",
        "IsRequired": false
    }
]
For example, your manifest would look like:
Code:
{
    "Name":"[CP] Rose Iridium Tools and Weapons",
    "Author":"Luny",
    "Version":"1.2.0",
    "Description":"Reskins tools and weapons with a custom pastel rose set",
    "UniqueID":"Luny.RoseIridiumTools",
    "UpdateKeys":[
        "Nexus:99792"
    ],
    "ContentPackFor":{
        "UniqueID":"Pathoschild.ContentPatcher",    
    },
    "Dependencies":[
        {
            "UniqueID":"PeacefulEnd.FashionSense",
            "IsRequired":false
        }
    ]
}
Update: I also noticed that your mod name doesn't contain "[CP]", which is a nice naming convention to remind people that your mod adds content via Content Patcher and doesn't actually change the functionality of the game.
I did, yeah. I'm pretty sure FS is just doing something wonky, since the girl base is actually set up differently.
Also, I actually JUST figured out the update keys, so I'll be fixing that next time. :D
And yeah, I'll add [CP] to them. It's so common now I just think of it as standard. ^^; Thanks for the advice!
 

LooneyLuny

Cowpoke
Oh! Fashion Sense updated the sleeve files that have the pan animation! :o I'll have to test some things later and see if it works better!
 
Top