diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index e713487f5..56a63f554 100644 --- a/lgsm/modules/info_game.sh +++ b/lgsm/modules/info_game.sh @@ -388,6 +388,11 @@ fn_info_game_dodr() { # Example: cluster_name = SERVERNAME # Filetype: ini fn_info_game_dst() { + if [ -f "${servercfgfullpath}" ]; then + fn_info_game_ini "port" "server_port" + fn_info_game_ini "steamauthport" "authentication_port" + fn_info_game_ini "steammasterport" "master_server_port" + fi if [ -f "${clustercfgfullpath}" ]; then fn_info_game_ini "maxplayers" "max_players" "${clustercfgfullpath}" fn_info_game_ini "servername" "cluster_name" "${clustercfgfullpath}" @@ -397,11 +402,7 @@ fn_info_game_dst() { fn_info_game_ini "gamemode" "game_mode" "${clustercfgfullpath}" fn_info_game_ini "configip" "bind_ip" "${clustercfgfullpath}" fi - if [ -f "${servercfgfullpath}" ]; then - fn_info_game_ini "port" "server_port" - fn_info_game_ini "steamauthport" "authentication_port" - fn_info_game_ini "steammasterport" "master_server_port" - fi + cave="${cave:-"NOT SET"}" cluster="${cluster:-"NOT SET"}" configip="${configip:-"0.0.0.0"}" diff --git a/lgsm/modules/info_messages.sh b/lgsm/modules/info_messages.sh index b0038ebb8..5cf44d0ce 100644 --- a/lgsm/modules/info_messages.sh +++ b/lgsm/modules/info_messages.sh @@ -593,6 +593,12 @@ fn_info_message_script() { if [ -n "${networkcfgfullpath}" ]; then echo -e "${lightblue}Network config file:\t${default}${networkcfgfullpath}" fi + + # Cluster config file location (DST) + if [ -n "${clustercfgfullpath}" ]; then + echo -e "${lightblue}Cluster config file:\t${default}${clustercfgfullpath}" + fi + } | column -s $'\t' -t }