Browse Source

config origin

pull/4200/head
Daniel Gibbs 3 years ago
parent
commit
c3f3fb9ad0
No known key found for this signature in database GPG Key ID: 7CA38B43F78F12FE
  1. 19
      lgsm/modules/command_dev_details.sh
  2. 3
      lgsm/modules/info_game.sh

19
lgsm/modules/command_dev_details.sh

@ -11,13 +11,17 @@ echo -e "=================================================================="
echo -e "" echo -e ""
echo -e "Game: ${gamename}" echo -e "Game: ${gamename}"
echo -e "Short Name: ${shortname}" echo -e "Short Name: ${shortname}"
echo -e "Directory: ${rootdir}"
echo -e "Binary: ${executable}"
echo -e "Config: ${servercfgfullpath}" echo -e "Config: ${servercfgfullpath}"
echo -e "Config Type: ${configtype}"
echo -e ""
echo -e "${lightgreen}Ports${default}"
echo -e "================================="
echo -e "Port: ${port}" echo -e "Port: ${port}"
echo -e "Query Port: ${queryport}" echo -e "Query Port: ${queryport}"
echo -e ""
echo -e "Servername: ${servername}" echo -e "${lightgreen}Server Details${default}"
echo -e "================================="
echo -e "Servername: ${servername} ${servernameorigin}"
echo -e "Server Password: ${serverpassword}" echo -e "Server Password: ${serverpassword}"
echo -e "RCON Password: ${rconpassword}" echo -e "RCON Password: ${rconpassword}"
echo -e "Admin Password: ${adminpassword}" echo -e "Admin Password: ${adminpassword}"
@ -25,6 +29,13 @@ echo -e "Maxplayers: ${maxplayers}"
echo -e "Tickrate: ${tickrate}" echo -e "Tickrate: ${tickrate}"
echo -e "Default Map: ${defaultmap}" echo -e "Default Map: ${defaultmap}"
echo -e "Game Mode: ${gamemode}" echo -e "Game Mode: ${gamemode}"
echo -e "Game Type: ${gametype}"
echo -e "RCON Enabled: ${rconenabled}" echo -e "RCON Enabled: ${rconenabled}"
echo -e "RCON Password: ${rconpassword}" echo -e "RCON Password: ${rconpassword}"
echo -e "Config IP: ${configip}" echo -e "Config IP: ${configip}"
echo -e "Web Admin Enabled: ${webadminenabled}"
echo -e "Web Admin User: ${webadminuser}"
echo -e "Web Admin Password: ${webadminpassword}"
echo -e "Reserved Slots: ${reservedslots}"
echo -e "World Name: ${worldname}"
echo -e "World Type: ${worldtype}"

3
lgsm/modules/info_game.sh

@ -30,6 +30,8 @@ fn_info_game_ini() {
servercfgfullpath="${3}" servercfgfullpath="${3}"
fi fi
eval "${1}"="$(sed -n "/^[[:space:]]*\<${2}\>/ { s/.*= *//p;q }" "${servercfgfullpath}")" eval "${1}"="$(sed -n "/^[[:space:]]*\<${2}\>/ { s/.*= *//p;q }" "${servercfgfullpath}")"
eval "${1}origin"="config"
configtype="ini"
} }
# Config Type: QuakeC # Config Type: QuakeC
@ -359,7 +361,6 @@ fn_info_game_pstbs() {
fi fi
rconport="${rconport:-"0"}" rconport="${rconport:-"0"}"
reservedslots="${reservedslots:-"0"}" reservedslots="${reservedslots:-"0"}"
reservedslots=${reservedslots:-"0"}
servername="${servername:-"NOT SET"}" servername="${servername:-"NOT SET"}"
serverpassword="${serverpassword:-"NOT SET"}" serverpassword="${serverpassword:-"NOT SET"}"
tickrate="${tickrate:-"0"}" tickrate="${tickrate:-"0"}"

Loading…
Cancel
Save