Browse Source

pc2

pull/4200/head
Daniel Gibbs 2 years ago
parent
commit
dd5bf0a39b
  1. 2
      lgsm/config-default/config-lgsm/pc2server/_default.cfg
  2. 2
      lgsm/config-default/config-lgsm/pcserver/_default.cfg
  3. 25
      lgsm/modules/info_game.sh
  4. 2
      lgsm/modules/info_messages.sh

2
lgsm/config-default/config-lgsm/pc2server/_default.cfg

@ -119,7 +119,7 @@ steamcmdforcewindows="no"
branch="" branch=""
betapassword="" betapassword=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
steammaster="false" steammaster="true"
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
# 1: tmux kill # 1: tmux kill

2
lgsm/config-default/config-lgsm/pcserver/_default.cfg

@ -115,7 +115,7 @@ steamcmdforcewindows="no"
branch="" branch=""
betapassword="" betapassword=""
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server # Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
steammaster="false" steammaster="true"
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode ## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
# 1: tmux kill # 1: tmux kill

25
lgsm/modules/info_game.sh

@ -1431,16 +1431,19 @@ fn_info_game_onset() {
# Filetype: cfg # Filetype: cfg
fn_info_game_pc() { fn_info_game_pc() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_pc_config "servername" "name" fn_info_game_pc_config "apiport" "httpApiPort"
fn_info_game_pc_config "serverpassword" "password" fn_info_game_pc_config "httpenabled" "enableHttpApi"
fn_info_game_pc_config "httpport" "httpApiPort"
fn_info_game_pc_config "maxplayers" "maxPlayerCount" fn_info_game_pc_config "maxplayers" "maxPlayerCount"
fn_info_game_pc_config "port" "hostPort" fn_info_game_pc_config "port" "hostPort"
fn_info_game_pc_config "queryport" "queryPort" fn_info_game_pc_config "queryport" "queryPort"
fn_info_game_pc_config "servername" "name"
fn_info_game_pc_config "serverpassword" "password"
fn_info_game_pc_config "steamport" "steamPort" fn_info_game_pc_config "steamport" "steamPort"
fn_info_game_pc_config "httpenabled" "enableHttpApi"
fn_info_game_pc_config "httpport" "httpApiPort"
fn_info_game_pc_config "apiport" "httpApiPort"
fi fi
apiport="${apiport:-"0"}"
httpenabled="${httpenabled:-"0"}"
httpport="${httpport:-"0"}"
maxplayers="${maxplayers:-"0"}" maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}" port="${port:-"0"}"
queryport="${queryport:-"0"}" queryport="${queryport:-"0"}"
@ -1451,13 +1454,19 @@ fn_info_game_pc() {
fn_info_game_pc2() { fn_info_game_pc2() {
if [ -f "${servercfgfullpath}" ]; then if [ -f "${servercfgfullpath}" ]; then
fn_info_game_pc_config "servername" "name" fn_info_game_pc_config "apiport" "httpApiPort"
fn_info_game_pc_config "serverpassword" "password" fn_info_game_pc_config "httpenabled" "enableHttpApi"
fn_info_game_pc_config "maxplayers" "MaxPlayers" fn_info_game_pc_config "httpport" "httpApiPort"
fn_info_game_pc_config "maxplayers" "maxPlayerCount"
fn_info_game_pc_config "port" "hostPort" fn_info_game_pc_config "port" "hostPort"
fn_info_game_pc_config "queryport" "queryPort" fn_info_game_pc_config "queryport" "queryPort"
fn_info_game_pc_config "servername" "name"
fn_info_game_pc_config "serverpassword" "password"
fn_info_game_pc_config "steamport" "steamPort" fn_info_game_pc_config "steamport" "steamPort"
fi fi
apiport="${apiport:-"0"}"
httpenabled="${httpenabled:-"0"}"
httpport="${httpport:-"0"}"
maxplayers="${maxplayers:-"0"}" maxplayers="${maxplayers:-"0"}"
port="${port:-"0"}" port="${port:-"0"}"
queryport="${queryport:-"0"}" queryport="${queryport:-"0"}"

2
lgsm/modules/info_messages.sh

@ -1197,7 +1197,7 @@ fn_info_message_pc() {
fn_port "API" apiport tcp fn_port "API" apiport tcp
} | column -s $'\t' -t } | column -s $'\t' -t
echo -e "" echo -e ""
echo -e "${lightgreen}${servername} Web Interface${default}" echo -e "${lightgreen}${gamename} Web Interface${default}"
fn_messages_separator fn_messages_separator
{ {
echo -e "${lightblue}Web Interface enabled:\t${default}${httpenabled}" echo -e "${lightblue}Web Interface enabled:\t${default}${httpenabled}"

Loading…
Cancel
Save