2013-04-02 20:06:43 +03:00
|
|
|
// This is schema for checking game settings from settings.json
|
|
|
|
// Any new settings should be added in this file for correct serialization and initialization
|
|
|
|
{
|
|
|
|
"type" : "object",
|
2023-05-19 20:14:01 +02:00
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2023-07-21 14:47:20 +02:00
|
|
|
"required" : [ "general", "video", "adventure", "battle", "input", "server", "logging", "launcher", "gameTweaks" ],
|
2013-04-06 20:45:02 +03:00
|
|
|
"definitions" : {
|
2017-06-04 19:33:28 +02:00
|
|
|
"logLevelEnum" : {
|
|
|
|
"type" : "string",
|
2013-04-06 20:45:02 +03:00
|
|
|
"enum" : [ "trace", "debug", "info", "warn", "error" ]
|
|
|
|
}
|
2013-04-11 22:24:14 +03:00
|
|
|
},
|
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" :
|
2013-04-02 20:06:43 +03:00
|
|
|
{
|
|
|
|
"general" : {
|
|
|
|
"type" : "object",
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-01-16 12:26:43 +02:00
|
|
|
"required" : [
|
|
|
|
"playerName",
|
|
|
|
"music",
|
|
|
|
"sound",
|
2023-06-16 11:59:20 +02:00
|
|
|
"saveRandomMaps",
|
|
|
|
"lastMap",
|
2023-01-29 18:21:55 +02:00
|
|
|
"language",
|
2023-03-14 13:37:22 +02:00
|
|
|
"gameDataLanguage",
|
2023-06-16 11:59:20 +02:00
|
|
|
"lastSave",
|
2023-06-22 01:05:29 +02:00
|
|
|
"lastSettingsTab",
|
2023-06-16 11:59:20 +02:00
|
|
|
"lastCampaign",
|
2023-01-16 12:26:43 +02:00
|
|
|
"saveFrequency",
|
|
|
|
"notifications",
|
|
|
|
"extraDump",
|
|
|
|
"userRelativePointer",
|
2023-01-30 23:15:37 +02:00
|
|
|
"relativePointerSpeedMultiplier",
|
2023-07-13 20:53:10 +02:00
|
|
|
"hapticFeedback",
|
2023-07-08 18:47:38 +02:00
|
|
|
"longTouchTimeMilliseconds",
|
2023-07-08 23:04:01 +02:00
|
|
|
"autosaveCountLimit",
|
|
|
|
"useSavePrefix",
|
2023-07-13 22:07:42 +02:00
|
|
|
"savePrefix",
|
|
|
|
"startTurnAutosave"
|
2023-01-16 12:26:43 +02:00
|
|
|
],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
|
|
|
"playerName" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2013-04-02 20:06:43 +03:00
|
|
|
"default" : "Player"
|
|
|
|
},
|
|
|
|
"music" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 88
|
|
|
|
},
|
|
|
|
"sound" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 88
|
2013-09-21 21:29:26 +03:00
|
|
|
},
|
2017-06-04 19:33:28 +02:00
|
|
|
"saveRandomMaps" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2018-03-18 17:29:09 +02:00
|
|
|
},
|
|
|
|
"lastMap" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2018-03-18 17:29:09 +02:00
|
|
|
"default" : "Maps/Arrogance"
|
|
|
|
},
|
2022-12-25 23:06:22 +02:00
|
|
|
"language" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2023-07-28 02:33:42 +02:00
|
|
|
"enum" : [ "english", "czech", "chinese", "finnish", "french", "german", "hungarian", "italian", "korean", "polish", "portuguese", "russian", "spanish", "swedish", "turkish", "ukrainian", "vietnamese" ],
|
2022-12-25 23:06:22 +02:00
|
|
|
"default" : "english"
|
|
|
|
},
|
2023-03-14 13:37:22 +02:00
|
|
|
"gameDataLanguage" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2023-07-28 02:33:42 +02:00
|
|
|
"enum" : [ "auto", "english", "czech", "chinese", "finnish", "french", "german", "hungarian", "italian", "korean", "polish", "portuguese", "russian", "spanish", "swedish", "turkish", "ukrainian", "vietnamese", "other_cp1250", "other_cp1251", "other_cp1252" ],
|
2023-03-14 13:37:22 +02:00
|
|
|
"default" : "auto"
|
|
|
|
},
|
2018-03-18 17:29:09 +02:00
|
|
|
"lastSave" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2018-03-18 17:29:09 +02:00
|
|
|
"default" : "NEWGAME"
|
|
|
|
},
|
2023-01-30 23:15:37 +02:00
|
|
|
"lastSettingsTab" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 0
|
|
|
|
},
|
2018-03-18 17:29:09 +02:00
|
|
|
"lastCampaign" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2018-03-18 17:29:09 +02:00
|
|
|
"default" : ""
|
2018-04-03 03:37:09 +02:00
|
|
|
},
|
|
|
|
"saveFrequency" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 1
|
2020-03-22 15:57:13 +02:00
|
|
|
},
|
|
|
|
"notifications" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2020-12-02 08:28:57 +02:00
|
|
|
},
|
|
|
|
"extraDump" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-01-16 12:26:43 +02:00
|
|
|
},
|
|
|
|
"userRelativePointer" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"relativePointerSpeedMultiplier" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 1
|
2023-06-16 11:59:20 +02:00
|
|
|
},
|
|
|
|
"longTouchTimeMilliseconds" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 1000
|
2023-07-08 18:47:38 +02:00
|
|
|
},
|
|
|
|
"hapticFeedback" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-07-13 20:53:10 +02:00
|
|
|
},
|
2023-07-08 23:04:01 +02:00
|
|
|
"autosaveCountLimit" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default": 5
|
|
|
|
},
|
|
|
|
"useSavePrefix" : {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"savePrefix" : {
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
2023-07-13 22:07:42 +02:00
|
|
|
},
|
|
|
|
"startTurnAutosave" : {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2017-06-04 19:33:28 +02:00
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"video" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2023-03-05 21:06:52 +02:00
|
|
|
"required" : [
|
2023-07-05 16:17:43 +02:00
|
|
|
"resolution",
|
|
|
|
"reservedWidth",
|
|
|
|
"fullscreen",
|
|
|
|
"realFullscreen",
|
|
|
|
"cursor",
|
|
|
|
"showIntro",
|
|
|
|
"spellbookAnimation",
|
|
|
|
"driver",
|
2023-03-05 21:06:52 +02:00
|
|
|
"displayIndex",
|
|
|
|
"showfps",
|
|
|
|
"targetfps"
|
|
|
|
],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
2023-04-30 18:20:40 +02:00
|
|
|
"resolution" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-04-30 18:20:40 +02:00
|
|
|
"required" : [ "width", "height", "scaling" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
|
|
|
"width" : { "type" : "number" },
|
2023-04-30 18:20:40 +02:00
|
|
|
"height" : { "type" : "number" },
|
|
|
|
"scaling" : { "type" : "number" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-06-20 23:26:12 +02:00
|
|
|
"defaultIOS" : {"width" : 800, "height" : 600, "scaling" : 200 },
|
|
|
|
"defaultAndroid" : {"width" : 800, "height" : 600, "scaling" : 200 },
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {"width" : 800, "height" : 600, "scaling" : 100 }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-07-05 16:17:43 +02:00
|
|
|
"reservedWidth" : {
|
|
|
|
"type" : "number",
|
|
|
|
"defaultIOS" : 0.1, // iOS camera cutout / notch is excluded from available area by SDL
|
|
|
|
"default" : 0
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"fullscreen" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2017-07-08 18:01:58 +02:00
|
|
|
},
|
|
|
|
"realFullscreen" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2013-10-27 16:05:01 +03:00
|
|
|
},
|
2023-01-19 18:14:10 +02:00
|
|
|
"cursor" : {
|
|
|
|
"type" : "string",
|
2023-06-20 23:26:12 +02:00
|
|
|
"enum" : [ "hardware", "software" ],
|
|
|
|
"default" : "hardware"
|
2023-01-05 22:38:52 +02:00
|
|
|
},
|
2014-08-04 14:03:57 +03:00
|
|
|
"showIntro" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
2013-10-27 16:05:01 +03:00
|
|
|
"spellbookAnimation" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"driver" : {
|
2014-05-24 15:14:37 +03:00
|
|
|
"type" : "string",
|
|
|
|
"default" : "opengl",
|
|
|
|
"description" : "preferred graphics backend driver name for SDL2"
|
2016-08-30 20:38:31 +02:00
|
|
|
},
|
|
|
|
"displayIndex" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 0
|
2023-03-05 21:06:52 +02:00
|
|
|
},
|
|
|
|
"showfps" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"targetfps" : {
|
|
|
|
"type" : "number",
|
2023-07-03 13:30:13 +02:00
|
|
|
"defaultIOS" : 30, // reduce battery usage
|
|
|
|
"defaultAndroid" : 30, // reduce battery usage
|
2023-03-05 21:06:52 +02:00
|
|
|
"default" : 60
|
2014-05-24 15:14:37 +03:00
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
},
|
2023-07-21 14:47:20 +02:00
|
|
|
"input" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"default" : {},
|
|
|
|
"required" : [ "radialWheelGarrisonSwipe" ],
|
|
|
|
"properties" : {
|
|
|
|
"radialWheelGarrisonSwipe" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"adventure" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2023-07-16 11:00:40 +02:00
|
|
|
"required" : [ "heroMoveTime", "enemyMoveTime", "scrollSpeedPixels", "heroReminder", "quickCombat", "objectAnimation", "terrainAnimation", "alwaysSkipCombat", "borderScroll", "leftButtonDrag" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
2023-02-19 00:36:40 +02:00
|
|
|
"heroMoveTime" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "number",
|
2023-02-19 00:36:40 +02:00
|
|
|
"default" : 150
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-02-19 00:36:40 +02:00
|
|
|
"enemyMoveTime" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "number",
|
2023-02-19 00:36:40 +02:00
|
|
|
"default" : 150
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-02-19 00:36:40 +02:00
|
|
|
"scrollSpeedPixels" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "number",
|
2023-02-19 00:36:40 +02:00
|
|
|
"default" : 800
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"heroReminder" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2013-06-23 10:54:33 +03:00
|
|
|
},
|
|
|
|
"quickCombat" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-02-21 23:16:24 +02:00
|
|
|
},
|
|
|
|
"objectAnimation" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
|
|
|
"terrainAnimation" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2022-11-16 00:50:47 +02:00
|
|
|
},
|
|
|
|
"alwaysSkipCombat" : {
|
|
|
|
"type" : "boolean",
|
2023-04-06 17:53:52 +02:00
|
|
|
"default" : false
|
2023-06-01 17:48:31 +02:00
|
|
|
},
|
|
|
|
"borderScroll" :
|
|
|
|
{
|
|
|
|
"type" : "boolean",
|
2023-06-20 23:26:12 +02:00
|
|
|
"defaultIOS" : false,
|
|
|
|
"defaultAndroid" : false,
|
2023-06-01 17:48:31 +02:00
|
|
|
"default" : true
|
2023-07-16 11:00:40 +02:00
|
|
|
},
|
|
|
|
"leftButtonDrag" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-06-22 01:05:29 +02:00
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"battle" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2023-07-17 23:25:16 +02:00
|
|
|
"required" : [ "speedFactor", "mouseShadow", "cellBorders", "stackRange", "movementHighlightOnHover", "rangeLimitHighlightOnHover", "showQueue", "swipeAttackDistance", "queueSize", "stickyHeroInfoWindows" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
2023-01-28 16:49:35 +02:00
|
|
|
"speedFactor" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"type" : "number",
|
2023-01-28 16:49:35 +02:00
|
|
|
"default" : 2
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"mouseShadow" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "boolean",
|
2013-04-02 20:06:43 +03:00
|
|
|
"default" : true
|
|
|
|
},
|
|
|
|
"cellBorders" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"stackRange" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
2023-04-05 23:22:58 +02:00
|
|
|
"movementHighlightOnHover" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
2023-06-23 18:50:39 +02:00
|
|
|
"rangeLimitHighlightOnHover" : {
|
2023-05-14 20:07:47 +02:00
|
|
|
"type" : "boolean",
|
2023-06-11 18:36:46 +02:00
|
|
|
"default" : false
|
2023-05-14 20:07:47 +02:00
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"showQueue" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2017-07-20 06:08:49 +02:00
|
|
|
},
|
2023-06-05 14:09:10 +02:00
|
|
|
"swipeAttackDistance" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 250
|
|
|
|
},
|
2017-07-20 06:08:49 +02:00
|
|
|
"queueSize" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "auto",
|
|
|
|
"enum" : [ "auto", "small", "big" ]
|
2023-07-17 23:25:16 +02:00
|
|
|
},
|
|
|
|
"stickyHeroInfoWindows" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"server" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2023-06-29 14:41:12 +02:00
|
|
|
"required" : [ "server", "port", "localInformation", "playerAI", "alliedAI", "friendlyAI", "neutralAI", "enemyAI", "reconnect", "uuid", "names" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties" : {
|
|
|
|
"server" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2013-04-02 20:06:43 +03:00
|
|
|
"default" : "127.0.0.1"
|
|
|
|
},
|
|
|
|
"port" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 3030
|
|
|
|
},
|
|
|
|
"localInformation" : {
|
|
|
|
"type" : "number",
|
|
|
|
"default" : 2
|
|
|
|
},
|
|
|
|
"playerAI" : {
|
|
|
|
"type" : "string",
|
2023-03-25 13:17:35 +02:00
|
|
|
"default" : "Nullkiller"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-06-29 14:41:12 +02:00
|
|
|
"alliedAI" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "VCAI"
|
|
|
|
},
|
2017-01-17 13:17:37 +02:00
|
|
|
"friendlyAI" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "BattleAI"
|
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"neutralAI" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "StupidAI"
|
2017-01-17 13:17:37 +02:00
|
|
|
},
|
|
|
|
"enemyAI" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "BattleAI"
|
2022-10-01 16:28:45 +02:00
|
|
|
},
|
|
|
|
"reconnect" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"uuid" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : ""
|
2022-10-04 03:09:03 +02:00
|
|
|
},
|
|
|
|
"names" : {
|
|
|
|
"type" : "array",
|
2022-10-25 03:27:53 +02:00
|
|
|
"default" : [],
|
2023-05-19 20:14:01 +02:00
|
|
|
"items" :
|
2022-10-04 03:09:03 +02:00
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"default" : ""
|
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
2013-04-05 13:29:46 +03:00
|
|
|
},
|
|
|
|
"logging" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-05 13:29:46 +03:00
|
|
|
"default" : {},
|
2013-04-09 17:31:36 +03:00
|
|
|
"required" : [ "console", "file", "loggers" ],
|
2013-04-05 13:29:46 +03:00
|
|
|
"properties" : {
|
|
|
|
"console" : {
|
|
|
|
"type" : "object",
|
2013-04-09 17:31:36 +03:00
|
|
|
"default" : {},
|
|
|
|
"required" : [ "format", "threshold", "coloredOutputEnabled", "colorMapping" ],
|
2013-04-05 13:29:46 +03:00
|
|
|
"properties" : {
|
|
|
|
"format" : {
|
|
|
|
"type" : "string",
|
2013-04-11 22:24:14 +03:00
|
|
|
"default" : "%m"
|
2013-04-05 13:29:46 +03:00
|
|
|
},
|
|
|
|
"threshold" : {
|
2013-04-06 20:45:02 +03:00
|
|
|
"$ref" : "#/definitions/logLevelEnum",
|
2013-08-20 22:32:21 +03:00
|
|
|
"default" : "info"
|
2013-04-05 13:29:46 +03:00
|
|
|
},
|
|
|
|
"coloredOutputEnabled" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
|
|
|
"colorMapping" : {
|
|
|
|
"type" : "array",
|
|
|
|
"default" : [
|
|
|
|
{ "domain" : "global", "level" : "trace", "color" : "gray"},
|
|
|
|
{ "domain" : "global", "level" : "debug", "color" : "white"},
|
|
|
|
{ "domain" : "global", "level" : "info", "color" : "green"},
|
|
|
|
{ "domain" : "global", "level" : "warn", "color" : "yellow"},
|
|
|
|
{ "domain" : "global", "level" : "error", "color" : "red"}
|
|
|
|
],
|
|
|
|
"items" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-09 17:31:36 +03:00
|
|
|
"default" : {},
|
2013-04-05 13:29:46 +03:00
|
|
|
"required" : [ "domain", "level", "color" ],
|
|
|
|
"properties" : {
|
|
|
|
"domain" : { "type" : "string" },
|
2013-04-06 20:45:02 +03:00
|
|
|
"level" : { "$ref" : "#/definitions/logLevelEnum" },
|
2013-04-05 13:29:46 +03:00
|
|
|
"color" : { "type" : "string", "enum" : [ "default", "green", "red", "magenta", "yellow", "white", "gray", "teal" ] }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"file" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-09 17:31:36 +03:00
|
|
|
"default" : {},
|
|
|
|
"required" : [ "format" ],
|
2013-04-05 13:29:46 +03:00
|
|
|
"properties" : {
|
|
|
|
"format" : {
|
|
|
|
"type" : "string",
|
2023-01-08 18:23:07 +02:00
|
|
|
"default" : "[%c] %l %n - %m"
|
2013-04-05 13:29:46 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"loggers" : {
|
2013-04-09 17:31:36 +03:00
|
|
|
"type" : "array",
|
2013-04-20 14:34:01 +03:00
|
|
|
"default" : [ { "domain" : "global", "level" : "trace" } ],
|
2013-04-09 17:31:36 +03:00
|
|
|
"items" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-09 17:31:36 +03:00
|
|
|
"required" : [ "level", "domain" ],
|
2013-04-05 13:29:46 +03:00
|
|
|
"properties" : {
|
2013-04-09 17:31:36 +03:00
|
|
|
"domain" : { "type" : "string" },
|
|
|
|
"level" : { "$ref" : "#/definitions/logLevelEnum" }
|
2013-04-05 13:29:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-08-19 14:50:53 +03:00
|
|
|
},
|
|
|
|
"launcher" : {
|
|
|
|
"type" : "object",
|
2023-05-19 20:14:01 +02:00
|
|
|
"default" : {},
|
2013-08-19 14:50:53 +03:00
|
|
|
"additionalProperties" : false,
|
2023-06-29 14:41:12 +02:00
|
|
|
"required" : [
|
|
|
|
"setupCompleted",
|
|
|
|
"defaultRepositoryEnabled",
|
|
|
|
"defaultRepositoryURL",
|
|
|
|
"extraRepositoryURL",
|
|
|
|
"extraRepositoryEnabled",
|
|
|
|
"enableInstalledMods",
|
|
|
|
"autoCheckRepositories",
|
|
|
|
"updateOnStartup",
|
|
|
|
"updateConfigUrl",
|
|
|
|
"lobbyUrl",
|
|
|
|
"lobbyPort",
|
|
|
|
"lobbyUsername",
|
|
|
|
"connectionTimeout"
|
|
|
|
],
|
2013-08-19 14:50:53 +03:00
|
|
|
"properties" : {
|
2023-06-29 14:41:12 +02:00
|
|
|
"defaultRepositoryEnabled" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true,
|
|
|
|
},
|
|
|
|
"defaultRepositoryURL" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "https://raw.githubusercontent.com/vcmi/vcmi-mods-repository/develop/vcmi-1.3.json",
|
|
|
|
},
|
|
|
|
"extraRepositoryEnabled" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false,
|
|
|
|
},
|
|
|
|
"extraRepositoryURL" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "",
|
2013-08-22 17:22:49 +03:00
|
|
|
},
|
2023-03-11 00:57:55 +02:00
|
|
|
"setupCompleted" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
2013-08-22 17:22:49 +03:00
|
|
|
"enableInstalledMods" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2014-11-03 17:47:37 +02:00
|
|
|
},
|
|
|
|
"autoCheckRepositories" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
2022-09-04 18:32:48 +02:00
|
|
|
},
|
|
|
|
"updateOnStartup" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : true
|
|
|
|
},
|
|
|
|
"updateConfigUrl" : {
|
|
|
|
"type" : "string",
|
|
|
|
"default" : "https://raw.githubusercontent.com/vcmi/vcmi-updates/master/vcmi-updates.json"
|
2022-10-23 21:24:33 +02:00
|
|
|
},
|
|
|
|
"lobbyUrl" : {
|
|
|
|
"type" : "string",
|
2022-11-16 02:22:48 +02:00
|
|
|
"description" : "ip address or web link to remote proxy server",
|
2022-11-08 02:44:34 +02:00
|
|
|
"default" : "beholder.vcmi.eu"
|
2022-10-23 21:24:33 +02:00
|
|
|
},
|
|
|
|
"lobbyPort" : {
|
|
|
|
"type" : "number",
|
2022-11-16 02:22:48 +02:00
|
|
|
"description" : "connection port for remote proxy server",
|
2022-10-23 21:24:33 +02:00
|
|
|
"default" : 5002
|
|
|
|
},
|
|
|
|
"lobbyUsername" : {
|
|
|
|
"type" : "string",
|
2022-11-16 02:22:48 +02:00
|
|
|
"description" : "username for the client on the remote proxy server",
|
2022-10-23 21:24:33 +02:00
|
|
|
"default" : ""
|
2022-11-16 02:22:48 +02:00
|
|
|
},
|
|
|
|
"connectionTimeout" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "maximum time in ms, should be enough to establish socket connection to remote proxy server.",
|
|
|
|
"default" : 2000
|
2013-08-19 14:50:53 +03:00
|
|
|
}
|
|
|
|
}
|
2023-02-15 00:45:45 +02:00
|
|
|
},
|
|
|
|
"gameTweaks" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"default" : {},
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"required" : [
|
2023-02-15 00:45:45 +02:00
|
|
|
"showGrid",
|
|
|
|
"forceMovementInfo",
|
|
|
|
"numericCreaturesQuantities",
|
|
|
|
"availableCreaturesAsDwellingLabel",
|
2023-02-15 21:29:29 +02:00
|
|
|
"compactTownCreatureInfo",
|
2023-03-07 02:29:04 +02:00
|
|
|
"infoBarPick",
|
2023-07-16 14:52:43 +02:00
|
|
|
"skipBattleIntroMusic",
|
|
|
|
"infoBarCreatureManagement"
|
2023-02-15 00:45:45 +02:00
|
|
|
],
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"showGrid" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"forceMovementInfo" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"numericCreaturesQuantities" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-02-15 00:45:45 +02:00
|
|
|
},
|
|
|
|
"availableCreaturesAsDwellingLabel" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
|
|
|
"compactTownCreatureInfo" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-02-15 21:29:29 +02:00
|
|
|
},
|
2023-03-07 02:29:04 +02:00
|
|
|
"infoBarPick" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
|
|
|
},
|
2023-02-15 21:29:29 +02:00
|
|
|
"skipBattleIntroMusic" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-07-16 14:52:43 +02:00
|
|
|
},
|
|
|
|
"infoBarCreatureManagement": {
|
|
|
|
"type" : "boolean",
|
|
|
|
"default" : false
|
2023-02-15 00:45:45 +02:00
|
|
|
}
|
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|