Browse Source

Merge branch 'feature/rust-seed' into feature/2711-hapis-wipe

pull/3420/head
Daniel Gibbs 5 years ago
parent
commit
f1d2b7b1bb
  1. 2
      lgsm/functions/check_deps.sh
  2. 2
      lgsm/functions/command_debug.sh
  3. 1
      lgsm/functions/command_start.sh
  4. 3
      lgsm/functions/core_legacy.sh
  5. 19
      lgsm/functions/info_messages.sh
  6. 1
      linuxgsm.sh

2
lgsm/functions/check_deps.sh

@ -350,7 +350,7 @@ fn_deps_build_debian(){
if [ "${shortname}" != "ts3" ]&&[ "${shortname}" != "mumble" ]&&[ "${shortname}" != "mc" ]&&[ "${shortname}" != "pmc" ]&&[ "${shortname}" != "wmc" ]&&[ "${engine}" != "renderware" ]; then
if [ "${arch}" == "x86_64" ]; then
# lib32gcc1 is now called lib32gcc-s1 in debian 11
if { [ "${distroid}" == "debian" ]&&[ "${distroversion}" == "11" ]; }|| { [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.10" ]; } ||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.10" ]; }; then
if { [ "${distroid}" == "debian" ]&&[ "${distroversion}" == "11" ]; }||{ [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.10" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.10" ]; }; then
array_deps_required+=( lib32gcc-s1 lib32stdc++6 )
else
array_deps_required+=( lib32gcc1 lib32stdc++6 )

2
lgsm/functions/command_debug.sh

@ -67,6 +67,8 @@ fi
if [ "${serverpassword}" ]; then
echo -e "${lightblue}Server password:\t${default}${serverpassword}"
fi
fn_reload_startparameters
echo -e "${lightblue}Start parameters:${default}"
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
echo -e "${executable} ${startparameters} -debug"

1
lgsm/functions/command_start.sh

@ -71,6 +71,7 @@ fn_start_tmux(){
date '+%s' > "${lockdir}/${selfname}.lock"
echo "${version}" >> "${lockdir}/${selfname}.lock"
echo "${port}" >> "${lockdir}/${selfname}.lock"
fn_reload_startparameters
cd "${executabledir}" || exit
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" "${preexecutable} ${executable} ${startparameters}" 2> "${lgsmlogdir}/.${selfname}-tmux-error.tmp"

3
lgsm/functions/core_legacy.sh

@ -79,5 +79,6 @@ if [ -z "${wsstartmap}" ]; then
fi
fn_parms(){
parms="${startparameters}"
fn_reload_startparameters
parms="${startparameters}"
}

19
lgsm/functions/info_messages.sh

@ -347,7 +347,7 @@ fn_info_message_gameserver(){
fi
if [ -n "${defaultscenario}" ]; then
# Current scenario
# Current scenario (Insurgency: Sandstorm)
if [ -n "${gdgamemode}" ]; then
echo -e "${lightblue}Current scenario:\t${default}${gdgamemode}"
fi
@ -425,7 +425,22 @@ fn_info_message_gameserver(){
# Save interval (Rust)
if [ -n "${saveinterval}" ]; then
echo -e "${lightblue}ASE:\t${default}${saveinterval} s"
echo -e "${lightblue}Save interval:\t${default}${saveinterval}s"
fi
# Seed (Rust)
if [ -n "${seed}" ]; then
echo -e "${lightblue}Seed:\t${default}${seed}"
fi
# Salt (Rust)
if [ -n "${salt}" ]; then
echo -e "${lightblue}Salt:\t${default}${salt}"
fi
# World Size (Rust)
if [ -n "${worldsize}" ]; then
echo -e "${lightblue}World size:\t${default}${worldsize}m"
fi
# Random map rotation mode (Squad and Post Scriptum)

1
linuxgsm.sh

@ -497,7 +497,6 @@ else
fi
}
fn_reload_startparameters
# Load the linuxgsm.sh in to tmpdir. If missing download it.
if [ ! -f "${tmpdir}/linuxgsm.sh" ]; then
fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "chmodx" "norun" "noforcedl" "nomd5"

Loading…
Cancel
Save