From e7014a765c4824edcd82edc967c27dfec04ad481 Mon Sep 17 00:00:00 2001 From: Hendalf <56977415+Hendalf-DEV@users.noreply.github.com> Date: Fri, 26 Apr 2024 09:55:01 +0300 Subject: [PATCH] Removing hardcoded port Added variable Removed hardcoded code for port --- game_eggs/path_of_titans/egg-path-of-titans.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/game_eggs/path_of_titans/egg-path-of-titans.json b/game_eggs/path_of_titans/egg-path-of-titans.json index 56141ed5..9e5948ac 100644 --- a/game_eggs/path_of_titans/egg-path-of-titans.json +++ b/game_eggs/path_of_titans/egg-path-of-titans.json @@ -15,7 +15,7 @@ "file_denylist": [], "startup": ".\/AlderonGamesCmd-Linux --game path-of-titans --server true --beta-branch {{BETA_BRANCH}} --auth-token {{AG_AUTH_TOKEN}} --install-dir .\/server\/ && .\/server\/PathOfTitansServer.sh {{SERVER_MAP}}?listen?MaxPlayers={{SERVER_MAX_PLAYERS}} -nullRHI -ServerName={{SERVER_NAME}} -ServerGUID={{SERVER_GUID}} -BranchKey={{BETA_BRANCH}} -Database={{SERVER_DB}} -log", "config": { - "files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"7778\"\r\n }\r\n }\r\n}", + "files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"{{QUERY_PORT}}\"\r\n }\r\n }\r\n}", "startup": "{\r\n \"done\": \"Server ready\"\r\n}", "logs": "{}", "stop": "^C" @@ -97,6 +97,16 @@ "user_editable": true, "rules": "required|string|max:1500", "field_type": "text" + }, + { + "name": "Query port", + "description": "", + "env_variable": "QUERY_PORT", + "default_value": "7778", + "user_viewable": true, + "user_editable": true, + "rules": "required|numeric|max:8", + "field_type": "text" } ] }