Tractor Mod

Tractor Mod

130k Downloads

[Content Patcher] Colour changing fails when farmer_base, or farmer_girl_base are loaded as PNGs

HanPrower opened this issue ยท 5 comments

commented

Whilst porting Slightly Cuter Character Sprites I originally made the farmer_base's PNGs and didn't think much else of it.

The male sprites are invoked with "Action": "Load" while the female sprites were invoked with "Action": "EditImage" as the mod had skirts, as well.

When using PNGs the colours of the skin and eyes failed to work entirely (only some pixels actually change colour), however upon converting the PNGs directly to XNBs and updating the content.json in kind the colour sliders work correctly.

Oddly the pant layer is unaffected by being a PNG.

commented

@hanfox Can you attach a minimal content pack that reproduces the PNG issue?

commented

Sure, in the attached mod the male is set to XNB and the female is set to PNG.

Farner Colour Debug.zip

commented

Okay, so I managed to get on my g/fs Windows machine and this seems to be a Linux issue (maybe also Mac).

It's extra frustrating because the XNBs I made with mgs (mono game) seem to throw a load of junk in to the file which Windows does not like.

commented

Can confirm this bug also occurs on MacOS.

commented

@hanfox @swmbyh That should be fixed in SMAPI 2.8 (via Pathoschild/SMAPI#279). Thanks for reporting it, and feel free to reopen if it still happens with that version.