From f023e173e754fa2af61d2d2699d0817f6687ce39 Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 10 Feb 2021 10:50:54 -0600 Subject: [PATCH 1/4] Fix Valheim stop command following server update --- steamcmd_servers/valheim/egg-valheim.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamcmd_servers/valheim/egg-valheim.json b/steamcmd_servers/valheim/egg-valheim.json index 979c6153..f8366c86 100644 --- a/steamcmd_servers/valheim/egg-valheim.json +++ b/steamcmd_servers/valheim/egg-valheim.json @@ -4,13 +4,13 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-07T19:36:46-06:00", + "exported_at": "2021-02-10T11:01:34-06:00", "name": "Valheim", "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.", "features": null, "image": "quay.io\/parkervcp\/pterodactyl-images:debian_source", - "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" -public 1 | sed -uE \"{{FILTER}}\" & trap \"echo 1 > server_exit.drp && wait\" 15; wait $!", + "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" -public 1 > >(sed -uE \"{{FILTER}}\") & trap 'kill -2 $!; wait' 2 15; wait $!", "config": { "files": "{}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", From bff922a00763c096d088f7cce95f93bdf90e3e96 Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 10 Feb 2021 11:02:22 -0600 Subject: [PATCH 2/4] Update Valheim variables --- steamcmd_servers/valheim/egg-valheim.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamcmd_servers/valheim/egg-valheim.json b/steamcmd_servers/valheim/egg-valheim.json index f8366c86..b30cb40c 100644 --- a/steamcmd_servers/valheim/egg-valheim.json +++ b/steamcmd_servers/valheim/egg-valheim.json @@ -32,7 +32,7 @@ "default_value": "My Server", "user_viewable": true, "user_editable": true, - "rules": "required|string|max:20" + "rules": "required|string|max:60" }, { "name": "Server Password", @@ -47,7 +47,7 @@ "name": "World Name", "description": "Name to load if switching between multiple saved worlds.", "env_variable": "WORLD", - "default_value": "world", + "default_value": "Dedicated", "user_viewable": true, "user_editable": true, "rules": "required|string|max:20" From 1f62dca1a0104aa2e7ef6c8fbd7e02a49043059b Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 10 Feb 2021 11:26:41 -0600 Subject: [PATCH 3/4] Remove startup flag --- steamcmd_servers/valheim/egg-valheim.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steamcmd_servers/valheim/egg-valheim.json b/steamcmd_servers/valheim/egg-valheim.json index b30cb40c..a1239442 100644 --- a/steamcmd_servers/valheim/egg-valheim.json +++ b/steamcmd_servers/valheim/egg-valheim.json @@ -10,7 +10,7 @@ "description": "A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture.", "features": null, "image": "quay.io\/parkervcp\/pterodactyl-images:debian_source", - "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" -public 1 > >(sed -uE \"{{FILTER}}\") & trap 'kill -2 $!; wait' 2 15; wait $!", + "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap 'kill -2 $!; wait' 2 15; wait $!", "config": { "files": "{}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", From 987743f7c41a42f982d05f454aa85be1eea53b79 Mon Sep 17 00:00:00 2001 From: Magi1053 Date: Wed, 10 Feb 2021 11:37:20 -0600 Subject: [PATCH 4/4] Move shutdown command to variable --- steamcmd_servers/valheim/egg-valheim.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/steamcmd_servers/valheim/egg-valheim.json b/steamcmd_servers/valheim/egg-valheim.json index a1239442..59ecf682 100644 --- a/steamcmd_servers/valheim/egg-valheim.json +++ b/steamcmd_servers/valheim/egg-valheim.json @@ -4,13 +4,13 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-10T11:01:34-06:00", + "exported_at": "2021-02-10T11:36:40-06:00", "name": "Valheim", "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.", "features": null, "image": "quay.io\/parkervcp\/pterodactyl-images:debian_source", - "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap 'kill -2 $!; wait' 2 15; wait $!", + "startup": ".\/valheim_server.x86_64 -nographics -batchmode -name \"{{SERVER_NAME}}\" -port {{SERVER_PORT}} -world \"{{WORLD}}\" -password \"{{PASSWORD}}\" > >(sed -uE \"{{FILTER}}\") & trap \"{{STOP}}\" 15; wait $!", "config": { "files": "{}", "startup": "{\r\n \"done\": \"DungeonDB Start\"\r\n}", @@ -78,6 +78,15 @@ "user_viewable": false, "user_editable": false, "rules": "string" + }, + { + "name": "Shutdown Command", + "description": "Commands to trigger a server shutdown.", + "env_variable": "STOP", + "default_value": "kill -2 $!; wait;", + "user_viewable": false, + "user_editable": false, + "rules": "required|string" } ] }