Issue SMAPI skips mod because it says that it's empty when it isn't

burntmcnugget

Greenhorn
im using content patcher to add a new hairstyle into my game, i used this video and followed it (except switching abigail stuff to farmer and what i believe to be the right files)
https://www.youtube.com/watch?v=gX0FT-aNRrY&t=332s&ab_channel=cozygoaty
(info: im using windows, im on the latest version of stardew, im not sure how to upload smapi log even with the website given so i just copy and pasted the error bit)


[SMAPI] Skipped mods
[SMAPI] --------------------------------------------------
[SMAPI] These mods could not be added to your game.

[SMAPI] - [CP] split_hair\assets because it's an empty folder.

1677354469127.png
1677354492805.png
1677354565161.png


i just tried adding .png to the file name (and editting it in the content.json file) and it still doesnt work. help please
 

Attachments

Last edited:
The SMAPI log has instructions on the page; you can follow those: https://smapi.io/log/

As for the short error you posted. Thanks for posting that, and the ContentPack.
You have a few typos in there.

1.
First, SMAPI says it's an empty folder because your content and manifest files have a ".txt" extension. So, it goes down into your 'assets' folder looking for the json files, but none are there either; so it says it's an empty folder.

They need to be renamed to:
Code:
content.json
manifest.json
2.
You had some extra data, and typos in the 'content.json' file.

It should look like this when fixed:
Code:
{
   "Format": "1.28.0",
   "Changes": [
      {
         "Action": "EditImage",
         "Target": "Characters/Farmer/hairstyles2",
         "FromFile": "assets/crow_and_other_hair.png"
      },
   ]
}
Delete that duplicated part at the top; where it had 2 Format & Changes sections.

And, the "FromFile" section reads from the mod's folder. So, you don't need to put the name of the modpack there; just the subfolder, and filename you're using.
Hence, it just says; "assets/crow_and_other_hair.png" now.

3.
Lastly, rename the "crow_and_other_hair.png.png" back to "crow_and_other_hair.png"
 
Last edited:
Top