Modding Help Custom Portraits Won't Load and Please Help With My Coding?

Discussion in 'Mods' started by Spikefan74, Jan 19, 2021.

  1. Spikefan74

    Spikefan74 Void-Bound Voyager

    I am trying to practice modding. I gathered all my favorite portraits and sprites from the internet (for personal use) and created a content patcher version of several villagers in separate folders. I have Content Patcher and Pytk. Smapii says the folder is empty for each one. I have an assets folder with the png's inside. I have a content.json and manifest.json with each one. I'm not sure if I did the coding wrong or not. Any help is great. Sorry, I'm new at this and it's my first mod creation.

    Here is the smapi error log:
    https://smapi.io/log/a9aa7ea0024c41048270445bcba896e8

    Here is an example of the code for my content.json:


    {

    “Format”: “1.0”,

    “Changes”: [

    {

    “Logname”: “Portraits”,

    “Action”: “Load”,

    “Target”: “Portraits/Linus”,

    “FromFile”: “assets/Linus.png”

    },

    {

    “Action”: “Load”,

    “Target”: “Characters/Linus_Sprite”,

    “FromFile”: “assets/LinusSprite.png”

    },

    ]

    }


    Here is the code for my manifest Json:


    {

    “Name” : “Cute Linus”,

    “Author”: “Spikefan74”,

    “Description”: “Cute Linus Portrait”,

    “Version”: “0.0.1”,

    “UniqueID”: “Spikefan74.CuteLinus”,

    “ContentPackFor”: {“UniqueID”: “Pathoschild.ContentPatcher”},

    “UpdateKeys”: [“”],

    }
     
    • Spikefan74

      Spikefan74 Void-Bound Voyager

      1) turns out Microsoft Word doesn't save as Json files. Had to resave in Notpad++.
      2) My sprites are not showing up, but my portraits are.
       
        Last edited: Jan 19, 2021

      Share This Page