games-standalone/ksp/egg-k-s-p-d-m-p.json

99 lines
4.4 KiB
JSON
Raw Permalink Normal View History

{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-06-01T00:16:51+00:00",
"name": "KSP DMP",
"author": "rufanyin29@gmail.com",
"uuid": "8e9458cb-014a-4995-94b9-cebfe658d687",
"description": "Dark Multiplayer mod server for Kerbal Space Program",
"features": null,
"docker_images": {
"Mono": "ghcr.io\/parkervcp\/yolks:mono_latest"
},
"file_denylist": [],
"startup": "mono DMPServer.exe",
"config": {
"files": "{\r\n \"Config\/Settings.txt\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"modpackMode\": \"{{server.build.env.MODPACKMODE}}\",\r\n \"warpMode\": \"{{server.build.env.WARPMODE}}\",\r\n \"gameMode\": \"{{server.build.env.GAMEMODE}}\",\r\n \"gameDifficulty\": \"{{server.build.env.DIFFICULTY}}\",\r\n \"whitelisted\": \"{{server.build.env.WHITELIST}}\",\r\n \"serverName\": \"{{server.build.env.SERVERNAME}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Ready!\"\r\n}",
"logs": "{}",
"stop": "\/exit"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nV=$(curl -s https:\/\/d-mp.org\/downloads | grep \"DMP Server\" | awk -F 'href=\"' 'NR==2 {print $2}' | awk -F '\"' '{print $1}') # \/builds\/release\/v0.3.8.3\/DMPServer.zip\r\n\r\necho \"Download link: https:\/\/d-mp.org${V}\"\r\ncurl -sSL -o DMPServer.zip https:\/\/d-mp.org${V}\r\n\r\nunzip -o DMPServer.zip\r\nmv DMPServer\/* .\/\r\n\r\nrm -rf DMPServer\r\nrm DMPServer.zip\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Mod Pack Mode",
"description": "Specify the modpack type.",
"env_variable": "MODPACKMODE",
"default_value": "NONE",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:NONE,CKAN,GAMEDATA",
"sort": null,
"field_type": "text"
},
{
"name": "Warp Mode",
"description": "Specify the warp type.",
"env_variable": "WARPMODE",
"default_value": "SUBSPACE",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:MCW_FORCE,MCW_VOTE,MCW_LOWEST,SUBSPACE_SIMPLE,SUBSPACE,NONE",
"sort": null,
"field_type": "text"
},
{
"name": "Game Mode",
"description": "Specify the game type.",
"env_variable": "GAMEMODE",
"default_value": "SANDBOX",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:SANDBOX,CAREER,SCIENCE",
"sort": null,
"field_type": "text"
},
{
"name": "Game Difficulty",
"description": "Specify the gameplay difficulty of the server.",
"env_variable": "DIFFICULTY",
"default_value": "NORMAL",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:EASY,NORMAL,MODERATE,HARD,CUSTOM",
"sort": null,
"field_type": "text"
},
{
"name": "Whitelisted",
"description": "Enable white-listing.",
"env_variable": "WHITELIST",
"default_value": "False",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:True,False",
"sort": null,
"field_type": "text"
},
{
"name": "Server Name",
"description": "Name of the server.",
"env_variable": "SERVERNAME",
"default_value": "DMP Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"sort": null,
"field_type": "text"
}
]
}