Browse Source

mhserver: correct server name (#2346)

pull/2348/head
Daniel Gibbs 6 years ago
committed by GitHub
parent
commit
cc906640d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lgsm/config-default/config-lgsm/mhserver/_default.cfg
  2. 133
      lgsm/config-default/config-lgsm/mordhauserver/_default.cfg
  3. 2
      lgsm/data/serverlist.csv
  4. 3
      lgsm/functions/check_system_requirements.sh
  5. 10
      lgsm/functions/info_config.sh
  6. 5
      lgsm/functions/info_glibc.sh
  7. 15
      lgsm/functions/info_messages.sh
  8. 7
      lgsm/functions/info_parms.sh
  9. 9
      lgsm/functions/install_config.sh

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

@ -96,7 +96,7 @@ branch=""
## LinuxGSM Server Details
# Do not edit
gamename="MORDHAU"
gamename="Mordhau"
engine="unreal4"
#### Directories ####

133
lgsm/config-default/config-lgsm/mordhauserver/_default.cfg

@ -0,0 +1,133 @@
##################################
######## Default Settings ########
##################################
# DO NOT EDIT WILL BE OVERWRITTEN!
# Copy settings from here and use them in either
# common.cfg - applies settings to every instance
# [instance].cfg - applies settings to a specific instance
#### Server Settings ####
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
ip="0.0.0.0"
port="7777"
queryport="27015"
#rconport="27020" | add to fn_params() RCONPort=${rconport}?
maxplayers="16"
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){
parms="\"FFA_Camp?listen?MultiHome=${ip}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?Port=${port}?\""
}
#### LinuxGSM Settings ####
## Notification Alerts
# (on|off)
# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
postalert="off"
postdays="7"
posttarget="https://hastebin.com"
# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
discordalert="off"
discordwebhook="webhook"
# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
emailalert="off"
email="[email protected]"
emailfrom=""
# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
iftttalert="off"
ifttttoken="accesstoken"
iftttevent="linuxgsm_alert"
# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
mailgunalert="off"
mailguntoken="accesstoken"
mailgundomain="example.com"
mailgunemailfrom="[email protected]"
mailgunemail="[email protected]"
# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
pushbulletalert="off"
pushbullettoken="accesstoken"
channeltag=""
# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
pushoveralert="off"
pushovertoken="accesstoken"
# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
# any custom string in curl - simple ignore this parameter.
telegramalert="off"
telegramtoken="accesstoken"
telegramchatid=""
curlcustomstring=""
## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
updateonstart="off"
## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
maxbackups="4"
maxbackupdays="30"
stoponbackup="on"
## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
consolelogging="on"
logdays="7"
#### LinuxGSM Advanced Settings ####
## SteamCMD Settings
# Server appid
appid="629800"
# Steam App Branch Select
# Allows to opt into the various Steam app branches. Default branch is "".
# Example: "-beta latest_experimental"
branch=""
## LinuxGSM Server Details
# Do not edit
gamename="Mordhau"
engine="unreal4"
#### Directories ####
# Edit with care
## Server Specific Directories
systemdir="${serverfiles}/mordhau"
executabledir="${systemdir}/Binaries/Linux"
executable="./MordhauServer-Linux-Shipping"
servercfgdir="${systemdir}/Config"
servercfg="DefaultGame.ini"
servercfgdefault="DefaultGame.ini"
servercfgfullpath="${servercfgdir}/${servercfg}"
## Backup Directory
backupdir="${lgsmdir}/backup"
## Logging Directories
logdir="${rootdir}/log"
gamelogdir="${systemdir}/Saved/Logs"
lgsmlogdir="${logdir}/script"
consolelogdir="${logdir}/console"
lgsmlog="${lgsmlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
alertlog="${lgsmlogdir}/${servicename}-alert.log"
postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
## Logs Naming
lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
## Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="Viretick"
githubrepo="LinuxGSM"
githubbranch="custom-servers"

2
lgsm/data/serverlist.csv

@ -46,7 +46,7 @@ kf2,kf2server,Killing Floor 2
l4d,l4dserver,Left 4 Dead
l4d2,l4d2server,Left 4 Dead 2
mc,mcserver,Minecraft
mh,mhserver,Mordhau
mh,mhserver,MORDHAU
mta,mtaserver,Multi Theft Auto
mumble,mumbleserver,Mumble
nd,ndserver,Nuclear Dawn

1 arma3 arma3server ARMA 3
46 l4d l4dserver Left 4 Dead
47 l4d2 l4d2server Left 4 Dead 2
48 mc mcserver Minecraft
49 mh mhserver Mordhau MORDHAU
50 mta mtaserver Multi Theft Auto
51 mumble mumbleserver Mumble
52 nd ndserver Nuclear Dawn

3
lgsm/functions/check_system_requirements.sh

@ -15,6 +15,9 @@ info_distro.sh
if [ "${shortname}" == "ark" ]; then
ramrequirementmb="4000"
ramrequirementgb="4"
elif [ "${shortname}" == "mh" ]; then
ramrequirementmb="4000"
ramrequirementgb="4"
elif [ "${shortname}" == "arma3" ]; then
ramrequirementmb="1000"
ramrequirementgb="1"

10
lgsm/functions/info_config.sh

@ -87,6 +87,16 @@ fn_info_config_ark(){
fi
}
fn_info_config_mordhau(){
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
else
servername=$(grep "SessionName" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^--/d' -e 's/SessionName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
# Not Set
servername=${servername:-"NOT SET"}
fi
}
fn_info_config_ballistic_overkill(){
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"

5
lgsm/functions/info_glibc.sh

@ -9,6 +9,9 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${gamename}" == "ARK: Survival Evolved" ]; then
glibcrequired="2.15"
glibcfix="no"
elif [ "${gamename}" == "Mordhau" ]; then
glibcrequired="2.15"
glibcfix="no"
elif [ "${gamename}" == "Ballistic Overkill" ]; then
glibcrequired="2.15"
glibcfix="yes"
@ -147,7 +150,7 @@ elif [ "${gamename}" == "NS2: Combat" ]; then
elif [ "${gamename}" == "TeamSpeak 3" ]; then
glibcrequired="NOT REQUIRED"
glibcfix="no"
elif [ "${gamename}" == "Mordhau" ]; then
elif [ "${gamename}" == "MORDHAU" ]; then
glibcrequired="2.17"
glibcfix="no"
elif [ "${gamename}" == "Mumble" ]; then

15
lgsm/functions/info_messages.sh

@ -578,6 +578,21 @@ fn_info_message_ark(){
} | column -s $'\t' -t
}
fn_info_message_mordhau(){
echo -e "netstat -atunp | grep Mordhau"
echo -e ""
{
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
echo -e "> Game\tINBOUND\t${port}\tudp"
# Don't do arithmetics if ever the port wasn't a numeric value
if [ "${port}" -eq "${port}" ]; then
echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
fi
echo -e "> Query\tINBOUND\t${queryport}\tudp"
echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
} | column -s $'\t' -t
}
fn_info_message_ballisticoverkill(){
echo -e "netstat -atunp | grep BODS.x86"
echo -e ""

7
lgsm/functions/info_parms.sh

@ -22,6 +22,13 @@ fn_info_parms_ark(){
maxplayers=${maxplayers:-"0"}
}
fn_info_parms_mordhau(){
port=${port:-"0"}
queryport=${queryport:-"0"}
#rconport=${rconport:-"0"}
maxplayers=${maxplayers:-"0"}
}
fn_info_parms_realvirtuality(){
port=${port:-"0"}
queryport=$((port + 1))

9
lgsm/functions/install_config.sh

@ -154,6 +154,13 @@ elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${gamename}" == "Mordhau" ]; then
gamedirname="mordhau"
fn_check_cfgdir
array_configs+=( DefaultEngine.ini )
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${gamename}" == "ARMA 3" ]; then
gamedirname="Arma3"
fn_check_cfgdir
@ -427,7 +434,7 @@ elif [ "${gamename}" == "Minecraft" ]; then
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
elif [ "${gamename}" == "Mordhau" ]; then
elif [ "${gamename}" == "MORDHAU" ]; then
gamedirname="Mordhau"
fn_check_cfgdir
array_configs+=( Game.ini )

Loading…
Cancel
Save