Update Valheim to use game specific image and support crossplay

This commit is contained in:
Daniel Barton 2022-09-30 05:46:34 +08:00
parent bd88f39040
commit 4e02f8d76c

View File

@ -1,21 +1,21 @@
{ {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": { "meta": {
"version": "PTDL_v1", "version": "PTDL_v2",
"update_url": null "update_url": null
}, },
"exported_at": "2022-02-18T11:17:53+01:00", "exported_at": "2022-09-29T21:43:06+00:00",
"name": "Valheim", "name": "Valheim",
"author": "magi1053@outlook.com", "author": "magi1053@outlook.com",
"description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.", "description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.",
"features": [ "features": [
"steam_disk_space" "steam_disk_space"
], ],
"images": [ "docker_images": {
"ghcr.io\/parkervcp\/games:source" "ghcr.io\/parkervcp\/games:valheim": "ghcr.io\/parkervcp\/games:valheim"
], },
"file_denylist": [], "file_denylist": [],
"startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap \"{{STOP}}\" 15; wait $!", "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" $( [[ ${ENABLE_CROSSPLAY} -eq 1 ]] && echo \" -crossplay \") > >(sed -uE \"{{FILTER}}\") & trap \"{{STOP}}\" 15; wait $!",
"config": { "config": {
"files": "{}", "files": "{}",
"startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}",
@ -37,7 +37,8 @@
"default_value": "My Server", "default_value": "My Server",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "required|string|max:60" "rules": "required|string|max:60",
"field_type": "text"
}, },
{ {
"name": "Server Password", "name": "Server Password",
@ -46,7 +47,8 @@
"default_value": "secret", "default_value": "secret",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "required|string|min:5|max:20" "rules": "required|string|min:5|max:20",
"field_type": "text"
}, },
{ {
"name": "World Name", "name": "World Name",
@ -55,7 +57,8 @@
"default_value": "Dedicated", "default_value": "Dedicated",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "required|string|max:20" "rules": "required|string|max:20",
"field_type": "text"
}, },
{ {
"name": "App ID", "name": "App ID",
@ -64,7 +67,8 @@
"default_value": "896660", "default_value": "896660",
"user_viewable": true, "user_viewable": true,
"user_editable": false, "user_editable": false,
"rules": "nullable|numeric" "rules": "nullable|numeric",
"field_type": "text"
}, },
{ {
"name": "LD Library Path", "name": "LD Library Path",
@ -73,7 +77,8 @@
"default_value": ".\/linux64", "default_value": ".\/linux64",
"user_viewable": false, "user_viewable": false,
"user_editable": false, "user_editable": false,
"rules": "required|string" "rules": "required|string",
"field_type": "text"
}, },
{ {
"name": "Console Filter", "name": "Console Filter",
@ -82,7 +87,8 @@
"default_value": "\/^\\(Filename:.*Line:[[:space:]]+[[:digit:]]+\\)$\/d; \/^([[:space:]]+)?$\/d", "default_value": "\/^\\(Filename:.*Line:[[:space:]]+[[:digit:]]+\\)$\/d; \/^([[:space:]]+)?$\/d",
"user_viewable": false, "user_viewable": false,
"user_editable": false, "user_editable": false,
"rules": "string" "rules": "string",
"field_type": "text"
}, },
{ {
"name": "Shutdown Command", "name": "Shutdown Command",
@ -91,16 +97,28 @@
"default_value": "kill -2 $!; wait;", "default_value": "kill -2 $!; wait;",
"user_viewable": false, "user_viewable": false,
"user_editable": false, "user_editable": false,
"rules": "required|string" "rules": "required|string",
"field_type": "text"
}, },
{ {
"name": "Auto Update", "name": "Auto Update",
"description": "", "description": "Enable automatic updates.",
"env_variable": "AUTO_UPDATE", "env_variable": "AUTO_UPDATE",
"default_value": "1", "default_value": "1",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "boolean" "rules": "boolean",
"field_type": "text"
},
{
"name": "Enable Crossplay",
"description": "Enable crossplay support",
"env_variable": "ENABLE_CROSSPLAY",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "boolean",
"field_type": "text"
}, },
{ {
"name": "Beta Branch", "name": "Beta Branch",
@ -109,7 +127,8 @@
"default_value": "", "default_value": "",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "max:30" "rules": "max:30",
"field_type": "text"
}, },
{ {
"name": "Betapassword", "name": "Betapassword",
@ -118,7 +137,8 @@
"default_value": "", "default_value": "",
"user_viewable": true, "user_viewable": true,
"user_editable": true, "user_editable": true,
"rules": "max:30" "rules": "max:30",
"field_type": "text"
} }
] ]
} }