JSON validator
Validation
Oops, found some issues with your JSON. (You have no schema selected, so only the basic JSON syntax was checked.)
Line | Field | Error |
---|---|---|
7 | Changes[0].Target | Invalid JavaScript property identifier character: /. Path 'Changes[0].Target', line 7, position 72. |
Content
You can change JSON format () or edit this file.
{
"Format": "2.7.0", //if you have a 1.5 NPC, make sure this is updated once you have the NPC converted, or certain things like map patches will break
"Changes":
[ {
"LogName": "Blank JSON load", //The logline is not required, but it's useful down the road for labeling your patches so you can tell your problem is, say "NPC Dialogue Patch" and not "NPC Patch #14"
"Action": "Load",
"Target": "Characters/Dialogue/{{ModId}}_PILindsay", Characters/schedules/{{ModId}}_PILindsay",
"FromFile": "assets/data/blank.json", //this should be wherever you put it in your assets folder - put it in a subfolder if you want.
}, {
"LogName": "Prairie Island, adding Lindsay,
"Action": "Include",
"FromFile": "assets/data/dispos.json"
},
{
"LogName": "Base Portraits",
"Action": "Load",
"Target": "Portraits/{{ModId}}_PILindsay",
"FromFile": "assets/images/portraits/Lindsay_Portraits.png",
},
{
"LogName": "Base Sprites",
"Action": "Load",
"Target": "Characters/{{ModId}}_PILindsay",
"FromFile": "assets/images/characters/Lindsay_Sprites.png",
},
{
"LogName": "Lindsay Dialogue",
"Action": "Include",
"FromFile": "assets/data/dialogue.json"
},
]
}
{
"Format": "2.7.0",
"Changes": [
// add location data
{
"Action": "EditData",
"Target": "Data/Locations",
"Entries": {
"{{ModId}}_PrairieIslandEntrance": {
"CreateOnLoad": {
"MapPath": "Maps/{{ModId}}_PrairieIslandEntrance"
}
}
}
},
// add the map file
{
"Action": "Load",
"Target": "Maps/{{ModId}}_ExampleCave",
"FromFile": "assets/maps/PrairieIslandEntrance.tmx"
},
// add a warp from another map
{
"Action": "EditMap",
"Target": "Maps/Town",
"AddWarps": [
"29 67 {{ModId}}_ExampleCave 0 30" // warp from town (center of plaza) to custom location (tile 0, 30)
]
}
]
}