Skip to content
Permalink
Browse files

fix(mhserver): add new BeaconPort for MORDHAU (#2348)

Co-authored-by: Christian Birk <chris.h3o66@gmail.com>

Joining a server will now reserve a slot in advance, fixing the issue of being booted after loading.
Server owners will have to make sure that the beacon port (15000) is reachable; it can be overridden on the command line with BeaconPort=
  • Loading branch information...
h3o66 authored and dgibbs64 committed May 8, 2019
1 parent f120f7b commit eddc32c7b3c7d20dabd7c7369d0e5b2290c3ac40
@@ -11,13 +11,14 @@
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
ip="0.0.0.0"
port="7777"
beaconport="15000"
queryport="27015"
# Maps: FFA_Camp, FFA_Contraband, FFA_Grad, FFA_MountainPeak, FFA_Taiga, FFA_ThePit, FFA_Tourney, SKM_Camp, SKM_Contraband, SKM_Grad, SKM_MountainPeak, SKM_Taiga, SKM_ThePit, SKM_Tourney, TDM_Camp, TDM_Contraband, TDM_Grad, TDM_MountainPeak, TDM_Taiga, TDM_ThePit, TDM_Tourney
defaultmap="FFA_ThePit"

## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
parms="Mordhau ${defaultmap} -log -MultiHome=${ip} -Port=${port} -QueryPort=${queryport}"
parms="Mordhau ${defaultmap} -log -MultiHome=${ip} -Port=${port} -BeaconPort=${beaconport} -QueryPort=${queryport}"
}

#### LinuxGSM Settings ####
@@ -1185,6 +1185,7 @@ fn_info_message_mordhau(){
{
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> BeaconPort\tINBOUND\t${beaconport}\tudp"
echo -e "> Query\tINBOUND\t${queryport}\tudp"
} | column -s $'\t' -t
}
@@ -149,6 +149,7 @@ fn_info_parms_towerunite(){
fn_info_parms_mordhau(){
port=${port:-"0"}
queryport=${queryport:-"0"}
beaconport=${beaconport:-"0"}
}

fn_info_parms_unreal(){

0 comments on commit eddc32c

Please sign in to comment.
You can’t perform that action at this time.