First time Modder and I need help!

szsboof

Greenhorn
I recently started modding my own NPC's and starting making their house. I want their house located on the Forest map and have already created on Tiled, a house on the Forest map and interior map. I can't, however, wrap my head around the content.json, or the manifest. I have no clue what I need to change.
The Content.json I wrote out is;
{
"Name": "Zane and Zel",
"Author": "MelRozx",
"Version": "1.0.0",
"Description": "New characters to explore",
"UniqueID": "MelRozx.ZaneandZel",
"UpdateKeys": [],
"ContentPackFor": {
"UniqueID": "MelRozx.ZaneandZel"
}
}
{
"Changes": [
{
"Action": "EditMap",
"Target": "Maps/Forest",
"FromFile": "assets/Newforest.tmx",
"FromArea": { "X": 15, "Y": 40, "Width": 16, "Height": 13 },
"ToArea": { "X": 30, "Y": 64, "Width": 16, "Height": 13 }
},
]
}

Smapi did not approve and said this;

SMAPI log parser - SMAPI.io

This is only for the map and I still have to make the actual NPC's next :sweat: :sebastian:

If anyone could help me that would be great
 

yaguarasu

Greenhorn
{
"Name": "Zane and Zel",
"Author": "MelRozx",
"Version": "1.0.0",
"Description": "New characters to explore",
"UniqueID": "MelRozx.ZaneandZel",
"UpdateKeys": [],
"ContentPackFor": {
"UniqueID": "MelRozx.ZaneandZel"
}
}
this part should be in its own file (manifest.json), rather than in the content.json. also it might be a little confused at the fact that in this manifest you said your mod is a content pack for itself? (albeit i don't know extensively about modding as i've only recently been messing around with it). otherwise i think the formatting seems right?
 

Dyanosis

Tiller
I'm going to make an assumption that you're making a Content Patcher mod. Here's where your issues are:

The first part should be in a file called manifest.json, as @yaguarasu said. That file should look like this:

JSON:
{
    "Name": "Zane and Zel",
    "Author": "MelRozx",
    "Version": "1.0.0",
    "Description": "New characters to explore",
    "UniqueID": "MelRozx.ZaneandZel",
    "UpdateKeys": [],
    "ContentPackFor": {
        "UniqueID":"Pathoschild.ContentPatcher"
    }
}
Next, your content.json file needs to have a Format. Here's an update to your content.json to get you started:

JSON:
{
    "Format": "2.0.0",
    "Changes": [
        {
            "Action": "EditMap",
            "Target": "Maps/Forest",
            "FromFile": "assets/Newforest.tmx",
            "FromArea": { "X": 15, "Y": 40, "Width": 16, "Height": 13 },
            "ToArea": { "X": 30, "Y": 64, "Width": 16, "Height": 13 }
        }
    ]
}
Also, for correctness, do not use trailing commas. That's not proper JSON form. If you want to ensure that your JSON is properly formatted, use a website like JSON Formatter.
 
Top