Skip to content

Mod Database

streetclaw edited this page Mar 8, 2018 · 2 revisions

Base

Structure

KeyType(s)RequiredInformation
"mods"ObjectYesContains all Mods

Example

{ "mods": {} }

Mods Object

Structure

KeyType(s)RequiredInformation
(modId)Object--Contains all Mod data

Example

"mods": { "mod1" : { }, ... }

Mod Data

Structure

KeyType(s)RequiredInformation
"name"StringYesMod name
"description"StringYesMod description (if empty: "")
"archive_link"StringYeszip file; Containing the mod data
"hash"ObjectYesHash for the zip file
"version"String (1.2.3)YesVersion String
"license"String or nullNoMod license
"page"Array or nullNoAdditional links/pages
"dir"Object or nullNoInstall directory

Example

"ExampleMod" : { "name" : "example mod", "description" : "only an example", "license" : "MIT", "page" : [{ "name" : "GitHub", "url" : "https://github.com/CCDirectLink/CCModDB" }], "archive_link" : "https:://example.com/mod.zip", "hash" : { "sha256" : "exampleHash" }, "version" : "1.5.8" }

Hash Object

KeyType(s)RequiredInformation
"sha256"StringYesSha256-Hash

Other Hash-types are currently not supported

Page Array

Containing Objects:

KeyType(s)RequiredInformation
"name"StringYesPage name/type
"url"StringYesPage url

Install-dir Object

Use the key any to definie an install dir for all Systems. Use the system String (based on process.platform). A matching system will always override any.

KeyType(s)RequiredInformation
(system)StringYesInstall dir

Defined Environment variables:

PathInformation
rootCrossCode main install dir