Coding Help [Closed] Wanting to replace pig icon at Marnie's shop

bloodmoon

Newcomer
Hey yall,

I am making my first mod to replace the pigs and also the pig icon in Marnie's shop. Replacing the portrait and name in Marnie's shop is where I'm stuck, this is what I have so far:

Code:
{
  "Format": “2.0”,
  "Changes": [
   
        {
          "Action": "Load",
          "Target": "Animals/BabyPig",
          "FromFile": "assets/BabyPig.png"
       },

    {
          "Action": "Load",
          "Target": "Animals/Pig",
          "FromFile": "assets/Pig.png"
       },

       {
          "Action": "Load",
          "Target": "Animals/Pig",
          "FromFile": "assets/PigIcon.png"
       },
       {
          "Action": "EditImage",
          "Target": "LooseSprites/Cursors",
          "FromFile": "assets/ShopIcons.png",
          "FromArea": { "X": 32, "Y": 0, "Width": 64, "Height": 16 },
          "ToArea": { "X": 32, "Y": 448, "Width": 64, "Height": 16 },
          "Patchmode": "Replace",
          "When": {
          "ShopIcons": "True",
          }
       },
    ]
}
The "editimage" part is just something I copypasted from another mod to try and get me started but I'm still lost.

The asset I have for Marnie's shop is just the sprite of the new pig named "PigIcon". The new name I want is "Boar".

Can someone help me finish this out?? Thanks a ton!!
 
Last edited:

bloodmoon

Newcomer
I got some help finishing up the code, but now Im getting this error. Unsure what this means. I changed the format to 2.0.0 and the quotations to "
Smapi validators said nothing was wrong
 

Attachments

Last edited:
Top