This Node.js script generates infered JSON-schemas based on the files in the PA /media/pa
and /media/pa_ex1
directory
- AI builds
- Ammo
- Animation Trees
- Build arms
- .pfx files
- Tools
- Units / Structures
The generated spec files are put in the /specs folder.
npm start <path to Planetary Annihilation Titans>
Visual Studio: Code supports JSON-schema validation by adding one of the following $schema
properties with a link to the schema in the JSON file you are working in.
{
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/ai_builds_spec.json",
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/ammo_spec.json",
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/anim_tree_spec.json",
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/pfx_spec.json",
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/tool_spec.json",
"$schema": "https://raw.githubusercontent.com/mrh0/pa-spec-generator/main/specs/unit_spec.json",
}