Skip to content

Commit c3d51d2

Browse files
authored
fix(armar): adapts game info to the new specification of server config (#4240)
* fix(armar): adapts game info to the new specification of server config * fix(armar): back to legacy a2s settings
1 parent bbc5a98 commit c3d51d2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lgsm/functions/info_game.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ fn_info_game_armar() {
102102
servername="${unavailable}"
103103
serverpassword="${unavailable}"
104104
else
105-
adminpassword=$(jq -r '.adminPassword' "${servercfgfullpath}")
105+
adminpassword=$(jq -r '.game.passwordAdmin' "${servercfgfullpath}")
106106
battleeyeport=1376
107-
configip=$(jq -r '.gameHostBindAddress' "${servercfgfullpath}")
108-
maxplayers=$(jq -r '.game.playerCountLimit' "${servercfgfullpath}")
109-
port=$(jq -r '.gameHostBindPort' "${servercfgfullpath}")
107+
configip=$(jq -r '.bindAddress' "${servercfgfullpath}")
108+
maxplayers=$(jq -r '.game.maxPlayers' "${servercfgfullpath}")
109+
port=$(jq -r '.bindPort' "${servercfgfullpath}")
110110
queryport=$(jq -r '.steamQueryPort' "${servercfgfullpath}")
111111
servername=$(jq -r '.game.name' "${servercfgfullpath}")
112112
serverpassword=$(jq -r '.game.password' "${servercfgfullpath}")

lgsm/modules/info_game.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,10 @@ fn_info_game_ut2k4() {
872872
# Filetype: json
873873
fn_info_game_armar() {
874874
if [ -f "${servercfgfullpath}" ]; then
875-
fn_info_game_json "adminpassword" ".adminPassword"
876-
fn_info_game_json "configip" ".gameHostBindAddress"
877-
fn_info_game_json "maxplayers" ".game.playerCountLimit"
878-
fn_info_game_json "port" ".gameHostBindPort"
875+
fn_info_game_json "adminpassword" ".game.passwordAdmin"
876+
fn_info_game_json "configip" ".bindAddress"
877+
fn_info_game_json "maxplayers" ".game.maxPlayers"
878+
fn_info_game_json "port" ".bindPort"
879879
fn_info_game_json "queryport" ".steamQueryPort"
880880
fn_info_game_json "servername" ".game.name"
881881
fn_info_game_json "serverpassword" ".game.password"

0 commit comments

Comments
 (0)