Browse Source

feat(sf): add new port for ReliableMessaging (#4813)

develop
Christian 4 weeks ago
committed by GitHub
parent
commit
83df2c6eda
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      lgsm/config-default/config-lgsm/sfserver/_default.cfg
  2. 1
      lgsm/modules/command_dev_parse_game_details.sh
  3. 6
      lgsm/modules/command_dev_query_raw.sh
  4. 1
      lgsm/modules/info_game.sh
  5. 1
      lgsm/modules/info_messages.sh

3
lgsm/config-default/config-lgsm/sfserver/_default.cfg

@ -12,11 +12,12 @@
ip="0.0.0.0"
queryport="15777"
beaconport="15000"
reliableport="8888"
port="7777"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
## Game Server Docs | https://satisfactory.fandom.com/wiki/Dedicated_servers
startparameters="FactoryGame -Port=${port} -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -log"
startparameters="FactoryGame -Port=${port} -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -ReliablePort=${reliableport} -log"
#### LinuxGSM Settings ####

1
lgsm/modules/command_dev_parse_game_details.sh

@ -96,6 +96,7 @@ declare -A server_details=(
['RCON Port']="${rconport}"
['RCON Web']="${rconweb}"
['Reserved Slots']="${reservedslots}"
['Reliable Messaging']="${reliableport}"
['RMI Port']="${rmiport}"
['RMI Reg Port']="${rmiregport}"
['Salt']="${salt}"

6
lgsm/modules/command_dev_query_raw.sh

@ -90,6 +90,12 @@ fn_messages_separator
echo -e "Beacon:"
fi
if [ -n "${reliableport}" ]; then
echo -e "ReliableMessaging: \t${reliableport} \t$(ss -tupl | grep -c "${reliableport}") \t$(ss -tupl | grep "${reliableport}" | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep "${reliableport}" | grep udp | awk '{ print $2 }')"
else
echo -e "ReliableMessaging:"
fi
if [ -n "${clientport}" ]; then
echo -e "Client: \t${clientport} \t$(ss -tupl | grep -c "${clientport}") \t$(ss -tupl | grep "${clientport}" | grep tcp | awk '{ print $2 }') \t$(ss -tupl | grep "${clientport}" | grep udp | awk '{ print $2 }')"
else

1
lgsm/modules/info_game.sh

@ -1993,6 +1993,7 @@ fn_info_game_sf() {
port="${port:-"0"}"
queryport="${queryport:-"0"}"
beaconport="${beaconport:-"0"}"
reliableport="${reliableport:-"0"}"
}
# Config Type: Parameters (with an ini)

1
lgsm/modules/info_messages.sh

@ -1502,6 +1502,7 @@ fn_info_messages_sf() {
fn_port "Game" port udp
fn_port "Query" queryport udp
fn_port "Beacon" beaconport udp
fn_port "ReliableMessaging" reliableport tcp
} | column -s $'\t' -t
}

Loading…
Cancel
Save