Browse Source
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
pull/4268/head
Marcin Jakubowski
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
8 deletions
-
lgsm/functions/info_game.sh
-
lgsm/modules/info_game.sh
|
|
@ -102,11 +102,11 @@ fn_info_game_armar() { |
|
|
|
servername="${unavailable}" |
|
|
|
serverpassword="${unavailable}" |
|
|
|
else |
|
|
|
adminpassword=$(jq -r '.adminPassword' "${servercfgfullpath}") |
|
|
|
adminpassword=$(jq -r '.game.passwordAdmin' "${servercfgfullpath}") |
|
|
|
battleeyeport=1376 |
|
|
|
configip=$(jq -r '.gameHostBindAddress' "${servercfgfullpath}") |
|
|
|
maxplayers=$(jq -r '.game.playerCountLimit' "${servercfgfullpath}") |
|
|
|
port=$(jq -r '.gameHostBindPort' "${servercfgfullpath}") |
|
|
|
configip=$(jq -r '.bindAddress' "${servercfgfullpath}") |
|
|
|
maxplayers=$(jq -r '.game.maxPlayers' "${servercfgfullpath}") |
|
|
|
port=$(jq -r '.bindPort' "${servercfgfullpath}") |
|
|
|
queryport=$(jq -r '.steamQueryPort' "${servercfgfullpath}") |
|
|
|
servername=$(jq -r '.game.name' "${servercfgfullpath}") |
|
|
|
serverpassword=$(jq -r '.game.password' "${servercfgfullpath}") |
|
|
|
|
|
@ -872,10 +872,10 @@ fn_info_game_ut2k4() { |
|
|
|
# Filetype: json |
|
|
|
fn_info_game_armar() { |
|
|
|
if [ -f "${servercfgfullpath}" ]; then |
|
|
|
fn_info_game_json "adminpassword" ".adminPassword" |
|
|
|
fn_info_game_json "configip" ".gameHostBindAddress" |
|
|
|
fn_info_game_json "maxplayers" ".game.playerCountLimit" |
|
|
|
fn_info_game_json "port" ".gameHostBindPort" |
|
|
|
fn_info_game_json "adminpassword" ".game.passwordAdmin" |
|
|
|
fn_info_game_json "configip" ".bindAddress" |
|
|
|
fn_info_game_json "maxplayers" ".game.maxPlayers" |
|
|
|
fn_info_game_json "port" ".bindPort" |
|
|
|
fn_info_game_json "queryport" ".steamQueryPort" |
|
|
|
fn_info_game_json "servername" ".game.name" |
|
|
|
fn_info_game_json "serverpassword" ".game.password" |
|
|
|