From 40a7a8f871726166aa2d8b131f5d53b5531e7ff3 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 20 Oct 2024 01:21:27 +0200 Subject: [PATCH] chore: steam query coldstarter adjustments --- scrolls/lgsm/.build/scroll.yaml.tmpl | 6 ++- scrolls/lgsm/.build/vars.json | 55 +++++++++++++++++++++---- scrolls/lgsm/cs2server/scroll.yaml | 17 ++++++++ scrolls/lgsm/csgoserver/scroll.yaml | 17 ++++++++ scrolls/lgsm/dayzserver/scroll.yaml | 3 ++ scrolls/lgsm/gmodserver/scroll.yaml | 17 ++++++++ scrolls/lgsm/pwserver/scroll.yaml | 3 ++ scrolls/lgsm/pzserver/scroll.yaml | 17 ++++++++ scrolls/lgsm/sdtdserver/scroll.yaml | 17 ++++++++ scrolls/lgsm/terrariaserver/scroll.yaml | 17 ++++++++ scrolls/lgsm/untserver/scroll.yaml | 17 ++++++++ 11 files changed, 176 insertions(+), 10 deletions(-) diff --git a/scrolls/lgsm/.build/scroll.yaml.tmpl b/scrolls/lgsm/.build/scroll.yaml.tmpl index 649d3128..084a3406 100644 --- a/scrolls/lgsm/.build/scroll.yaml.tmpl +++ b/scrolls/lgsm/.build/scroll.yaml.tmpl @@ -2,8 +2,9 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: {{ .Version }} version: 0.0.2 app_version: {{ .Version }} -{{- if .Vars.lua_query_game_name }} +{{- if or .Vars.lua_query_game_name .Vars.main_port_protocol }} ports: +{{- if .Vars.lua_query_game_name }} - name: query protocol: udp sleep_handler: packet_handler/query.lua @@ -18,9 +19,12 @@ ports: value: {{ .Vars.lua_query_map }} - name: ServerListName value: "{{ .Vars.lua_query_servername }}" +{{- end }} +{{- if .Vars.main_port_protocol }} - name: main protocol: {{ .Vars.main_port_protocol }} {{- end }} +{{- end }} init: "console" commands: console: diff --git a/scrolls/lgsm/.build/vars.json b/scrolls/lgsm/.build/vars.json index ae49b81e..762d0660 100644 --- a/scrolls/lgsm/.build/vars.json +++ b/scrolls/lgsm/.build/vars.json @@ -11,30 +11,67 @@ "cs2server": { "rcon": "enabled", "postinstall": "enabled", - "port": "main=27015/udp;rcon=27015" + "port": "main=27015/udp;rcon=27015", + "lua_query_game_name": "CS2: Druid Server", + "lua_query_folder": "csgo", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "pwserver": { - "port": "main=8211/udp;rcon=25575" + "port": "main=8211/udp;rcon=25575", + "main_port_protocol": "udp" }, "gmodserver": { - "port": "query=27005/udp;main=/udp;sourcetv=27020/udp;steam=27015" + "port": "query=27005/udp;main=/udp;sourcetv=27020/udp;steam=27015", + "lua_query_game_name": "GMod Server", + "lua_query_folder": "garrysmod", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "sdtdserver": { - "port": "main=26900/udp;main2=26902/udp;maintcp=26900" + "port": "main=26900/udp;main2=26902/udp;maintcp=26900", + "lua_query_game_name": "7 Days To Die", + "lua_query_folder": "7DTD", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "dayzserver": { - "port": "main=2302/udp;battle-eye=2304/udp;query=27016/udp" + "port": "main=2302/udp;battle-eye=2304/udp;query=27016/udp", + "main_port_protocol": "udp" }, "untserver": { - "port": "main=27015/udp;mainv6=27016" + "port": "main=27015/udp;mainv6=27016", + "lua_query_game_name": "Unturned Server", + "lua_query_folder": "Unturned", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "csgoserver": { - "port": "query=27005/udp;main=27015/udp;sourcetv=27020/udp;steam=27015" + "port": "query=27005/udp;main=27015/udp;sourcetv=27020/udp;steam=27015", + "lua_query_game_name": "Counter-Strike: Global Offensive", + "lua_query_folder": "csgo", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "terrariaserver": { - "port": "todo=8211/udp" + "port": "todo=8211/udp", + "lua_query_game_name": "Terraria Server", + "lua_query_folder": "terraria", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" }, "pzserver": { - "port": "main=26900/udp;main2=26902/udp;maintcp=26900" + "port": "main=26900/udp;main2=26902/udp;maintcp=26900", + "lua_query_game_name": "Project Zomboid", + "lua_query_folder": "zomboid", + "lua_query_map": "server idle", + "lua_query_servername": "Druid Gameserver (idle) - Start server by joining", + "main_port_protocol": "udp" } } diff --git a/scrolls/lgsm/cs2server/scroll.yaml b/scrolls/lgsm/cs2server/scroll.yaml index 5f7b77eb..3c7fea8c 100644 --- a/scrolls/lgsm/cs2server/scroll.yaml +++ b/scrolls/lgsm/cs2server/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: cs2server version: 0.0.2 app_version: cs2server +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "CS2: Druid Server" + - name: GameSteamFolder + value: csgo + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/csgoserver/scroll.yaml b/scrolls/lgsm/csgoserver/scroll.yaml index 3389d5c2..c6b6ca1f 100644 --- a/scrolls/lgsm/csgoserver/scroll.yaml +++ b/scrolls/lgsm/csgoserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: csgoserver version: 0.0.2 app_version: csgoserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "Counter-Strike: Global Offensive" + - name: GameSteamFolder + value: csgo + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/dayzserver/scroll.yaml b/scrolls/lgsm/dayzserver/scroll.yaml index 7ea08257..7d09389c 100644 --- a/scrolls/lgsm/dayzserver/scroll.yaml +++ b/scrolls/lgsm/dayzserver/scroll.yaml @@ -2,6 +2,9 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: dayzserver version: 0.0.2 app_version: dayzserver +ports: + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/gmodserver/scroll.yaml b/scrolls/lgsm/gmodserver/scroll.yaml index d6728181..e370f475 100644 --- a/scrolls/lgsm/gmodserver/scroll.yaml +++ b/scrolls/lgsm/gmodserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: gmodserver version: 0.0.2 app_version: gmodserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "GMod Server" + - name: GameSteamFolder + value: garrysmod + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/pwserver/scroll.yaml b/scrolls/lgsm/pwserver/scroll.yaml index 641b20c6..46aea92d 100644 --- a/scrolls/lgsm/pwserver/scroll.yaml +++ b/scrolls/lgsm/pwserver/scroll.yaml @@ -2,6 +2,9 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: pwserver version: 0.0.2 app_version: pwserver +ports: + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/pzserver/scroll.yaml b/scrolls/lgsm/pzserver/scroll.yaml index 6af7258b..f70bf4b1 100644 --- a/scrolls/lgsm/pzserver/scroll.yaml +++ b/scrolls/lgsm/pzserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: pzserver version: 0.0.2 app_version: pzserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "Project Zomboid" + - name: GameSteamFolder + value: zomboid + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/sdtdserver/scroll.yaml b/scrolls/lgsm/sdtdserver/scroll.yaml index 53cab606..4af49687 100644 --- a/scrolls/lgsm/sdtdserver/scroll.yaml +++ b/scrolls/lgsm/sdtdserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: sdtdserver version: 0.0.2 app_version: sdtdserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "7 Days To Die" + - name: GameSteamFolder + value: 7DTD + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/terrariaserver/scroll.yaml b/scrolls/lgsm/terrariaserver/scroll.yaml index 097b75ec..a755a155 100644 --- a/scrolls/lgsm/terrariaserver/scroll.yaml +++ b/scrolls/lgsm/terrariaserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: terrariaserver version: 0.0.2 app_version: terrariaserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "Terraria Server" + - name: GameSteamFolder + value: terraria + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: diff --git a/scrolls/lgsm/untserver/scroll.yaml b/scrolls/lgsm/untserver/scroll.yaml index 8759e9e1..8ebc8c9e 100644 --- a/scrolls/lgsm/untserver/scroll.yaml +++ b/scrolls/lgsm/untserver/scroll.yaml @@ -2,6 +2,23 @@ name: artifacts.druid.gg/druid-team/scroll-lgsm desc: untserver version: 0.0.2 app_version: untserver +ports: + - name: query + protocol: udp + sleep_handler: packet_handler/query.lua + vars: + - name: GameName + value: "Unturned Server" + - name: GameSteamFolder + value: Unturned + - name: GameSteamId + value: "0" + - name: MapName + value: server idle + - name: ServerListName + value: "Druid Gameserver (idle) - Start server by joining" + - name: main + protocol: udp init: "console" commands: console: