Skip to content

Commit

Permalink
feat: Update UE4/UE5 parameters and configs (#4378)
Browse files Browse the repository at this point in the history
* feat(ark): move rconport and maxplayers to config

* feat(sbots): removed ? from parameters

* feat(tu): shuffle parameters and use pascal case

* feat(mom): Pascal Case parameters

* add ohd configs

* re order

* sync with configs

* feat(btl): standardise configs and parameters to match other ue4 games

* standardise

* feat(sf): upgrade to ue5

* add ram requirements to satisfactory

* sf fix

* tidy up parameters

* update ark parameters

* minor changes

* updated the isle to UE5

* add game server docs

* move log

* tidy
  • Loading branch information
dgibbs64 authored Nov 13, 2023
1 parent bbcadfb commit 283e625
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 33 deletions.
5 changes: 2 additions & 3 deletions lgsm/config-default/config-lgsm/arkserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
ip="0.0.0.0"
port="7777"
queryport="27015"
rconport="27020"
# Default Map: TheIsland, Ragnarok, CrystalIsles, Aberration_P, ScorchedEarth_P, TheCenter, Extinction, Valguero_P, Genesis, Gen2
defaultmap="TheIsland"
altsavedirectoryname="${defaultmap}"
maxplayers="70"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="${defaultmap}?AltSaveDirectoryName=${altsavedirectoryname}?listen?MultiHome=${ip}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port} -automanagedmods -crossplay -PublicIPForEpic=${publicip}"
## Game Server Docs | https://ark.wiki.gg/wiki/Server_configuration
startparameters="${defaultmap}?AltSaveDirectoryName=${altsavedirectoryname} -MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -AutoManagedMods -Crossplay -PublicIPForEpic=${publicip} -log"

#### LinuxGSM Settings ####

Expand Down
6 changes: 3 additions & 3 deletions lgsm/config-default/config-lgsm/btlserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ port="7777"
queryport="7780"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="/Game/Maps/Final_Maps/Derailed?Game=/Script/ShooterGame.WartideGameMode?listen -log -broadcastip=\"${publicip}\" -PORT=${port} -QueryPort=${queryport} -defgameini=\"${servercfgfullpath}\""
startparameters="-Port=${port} -QueryPort=${queryport} -BroadcastIp=${publicip} -log"

#### LinuxGSM Settings ####

Expand Down Expand Up @@ -157,8 +157,8 @@ systemdir="${serverfiles}/Battalion"
executabledir="${systemdir}/Binaries/Linux"
executable="./BattalionServer-Linux-Shipping"
servercfgdir="${systemdir}/Saved/Config/LinuxServer"
servercfg="${selfname}.ini"
servercfgdefault="DefaultGame.ini"
servercfg="Game.ini"
servercfgdefault="Game.ini"
servercfgfullpath="${servercfgdir}/${servercfg}"

## Backup Directory
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/hcuserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ queryport="27015"
servername="LinuxGSM"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="${defaultmap}?Difficulty=1?Game=DM?MapList=KidsBedroom,Playground,Garden,Hallway_Simple,Bathroom,Hallway_Hard,Attic_Daytime,Shed,ToyPalace,Kitchen,Garage?MaxPlayers=${maxplayers}?WeaponTypes=7?TimeLimit=600?ScoreLimit=30?Teamplay -ServerName='${servername}' -Port=${port} -QueryPort=${queryport} -NOCONSOLE -unattended"
startparameters="${defaultmap}?MaxPlayers=${maxplayers} -ServerName='${servername}' -Port=${port} -QueryPort=${queryport}"

## Server Parameters for Plague mode
#startparameters="${defaultmap}?Game=PL?MapList=KidsBedroom,Garden,Hallway_Simple,Attic_Daytime,Garage,Shed,Kitchen,Hallway_Hard,ToyPalace,Bathroom?MaxPlayers=${maxplayers}?WeaponTypes=7?TimeLimit=600 -ServerName='${servername}' -Port=${port} -QueryPort=${queryport} -NOCONSOLE -unattended"
Expand Down
6 changes: 3 additions & 3 deletions lgsm/config-default/config-lgsm/inssserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ queryport="27131"
rconport="27015"
rconpassword=""
servername="LinuxGSM"
defaultmap="Canyon"
defaultscenario="Scenario_Crossing_Push_Security"
defaultmap="Oilfield"
defaultscenario="Scenario_Refinery_Push_Security"
maxplayers="28"

## Game Server Login Token (GSLT): Optional
Expand All @@ -25,7 +25,7 @@ maxplayers="28"
gslt=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
## Parameter Docs | https://mod.io/g/insurgencysandstorm/r/server-admin-guide
## Game Server Docs | https://mod.io/g/insurgencysandstorm/r/server-admin-guide
startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -Rcon -RconPassword=${rconpassword} -RconListenPort=${rconport} -GSLTToken=${gslt} -log"

#### LinuxGSM Settings ####
Expand Down
3 changes: 2 additions & 1 deletion lgsm/config-default/config-lgsm/mhserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ queryport="27015"
defaultmap="FFA_ThePit"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="Mordhau ${defaultmap} -log -MultiHome=${ip} -Port=${port} -BeaconPort=${beaconport} -QueryPort=${queryport} -GameIni=${servercfgfullpath}"
## Game Server Docs | https://mordhau.fandom.com/wiki/Dedicated_Server_Hosting_Guide
startparameters="Mordhau ${defaultmap} -MultiHome=${ip} -Port=${port} -BeaconPort=${beaconport} -QueryPort=${queryport} -GameIni=${servercfgfullpath} -log"

#### LinuxGSM Settings ####

Expand Down
3 changes: 2 additions & 1 deletion lgsm/config-default/config-lgsm/momserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ port="7777"
beaconport="15000"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-port="${port}" -beaconport="${beaconport}" -MULTIHOME="${ip}""
## Game Server Docs | https://memoriesofmars.fandom.com/wiki/Dedicated_Servers
startparameters="-MultiHome=${ip} -Port=${port} -BeaconPort=${beaconport} -log"

#### LinuxGSM Settings ####

Expand Down
4 changes: 2 additions & 2 deletions lgsm/config-default/config-lgsm/ohdserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
ip="0.0.0.0"
port="7777"
queryport="27005"
rconport="7778"
servername="LinuxGSM"
serverpassword=""
# Maps: risala, khafji_p, lamdong, montecassino, argonne
defaultmap="AAS-TestMap"
maxplayers="16"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="${defaultmap}?MaxPlayers=${maxplayers}?Password=${serverpassword} -Port=${port} -QueryPort=${queryport} -SteamServerName='${servername}' -log"
startparameters="${defaultmap}?MaxPlayers=${maxplayers} -MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -RconPort=${rconport} -SteamServerName='${servername}' -log"

#### LinuxGSM Settings ####

Expand Down
1 change: 1 addition & 0 deletions lgsm/config-default/config-lgsm/onsetserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#### Game Server Settings ####

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
## Game Server Docs | https://dev.playonset.com/wiki/DedicatedServer
startparameters="--config ${servercfgfullpath}"

#### LinuxGSM Settings ####
Expand Down
6 changes: 1 addition & 5 deletions lgsm/config-default/config-lgsm/psserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@

## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
ip="0.0.0.0"
maxplayers="40"
port="10027"
queryport="10037"
randommap="NONE"
reservedslots="0"
tickrate="50"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="MULTIHOME=${ip} RANDOM=${randommap} Port=${port} QueryPort=${queryport} FIXEDMAXPLAYERS=${maxplayers} FIXEDMAXTICKRATE=${tickrate} NumReservedSlots=${reservedslots}"
startparameters="-MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -log"

#### LinuxGSM Settings ####

Expand Down
5 changes: 3 additions & 2 deletions lgsm/config-default/config-lgsm/pvrserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defaultmap="datacenter"
apikey=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="Pavlov ${defaultmap} -log -MultiHome=${ip} -Port=${port} ApiKey=${apikey}"
## Game Server Docs | http://pavlovwiki.com/index.php/Setting_up_a_dedicated_server
startparameters="Pavlov ${defaultmap} -MultiHome=${ip} -Port=${port} ApiKey=${apikey} -log"

#### LinuxGSM Settings ####

Expand Down Expand Up @@ -149,7 +150,7 @@ consoleinteract="no"
## Game Server Details
# Do not edit
gamename="Pavlov VR"
engine="unreal4"
engine="unreal5"
glibc="2.17"

#### Directories ####
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/sbotsserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defaultmap="StationKappa"
servername="LinuxGSM"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="Port=${port}?QueryPort=${queryport} -startup_map ${defaultmap} -server_name \"${servername}\""
startparameters="-MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -startup_map ${defaultmap} -server_name '${servername}'"

#### LinuxGSM Settings ####

Expand Down
7 changes: 4 additions & 3 deletions lgsm/config-default/config-lgsm/sfserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ beaconport="15000"
port="7777"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="FactoryGame -multihome=${ip} -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -Port=${port} -log -unattended"
## Game Server Docs | https://satisfactory.fandom.com/wiki/Dedicated_servers
startparameters="FactoryGame -MultiHome=${ip} -Port=${port} -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -log"

#### LinuxGSM Settings ####

Expand Down Expand Up @@ -147,7 +148,7 @@ consoleinteract="no"
## Game Server Details
# Do not edit
gamename="Satisfactory"
engine="unreal4"
engine="unreal5"
glibc="2.17"

#### Directories ####
Expand All @@ -156,7 +157,7 @@ glibc="2.17"
## Game Server Directories
systemdir="${serverfiles}/FactoryGame"
executabledir="${serverfiles}/Engine/Binaries/Linux"
executable="./UE4Server-Linux-Shipping"
executable="./UnrealServer-Linux-Shipping"
servercfgdir="${systemdir}/Saved/Config/LinuxServer"
servercfg="GameUserSettings.ini"
servercfgdefault="GameUserSettings.ini"
Expand Down
4 changes: 2 additions & 2 deletions lgsm/config-default/config-lgsm/squadserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
port="7787"
queryport="27165"
randommap="ALWAYS"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="MULTIHOME=${ip} RANDOM=${randommap} Port=${port} QueryPort=${queryport}"
## Game Server Docs | https://squad.fandom.com/wiki/Dedicated_server
startparameters="-MultiHome=${ip} -Port=${port} -QueryPort=${queryport}"

#### LinuxGSM Settings ####

Expand Down
3 changes: 2 additions & 1 deletion lgsm/config-default/config-lgsm/tiserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ port="7777"
defaultmap="/Game/TheIsle/Maps/Game/Isla_Spiro/Isla_Spiro"

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
## Game Server Docs | https://isle.fandom.com/wiki/The_Isle_Server_Settings_and_Configuration
startparameters="${defaultmap} -Port=${port} -log"

#### LinuxGSM Settings ####
Expand Down Expand Up @@ -146,7 +147,7 @@ consoleinteract="no"
## Game Server Details
# Do not edit
gamename="The Isle"
engine="unreal4"
engine="unreal5"
glibc="2.17"

#### Directories ####
Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/tuserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ queryport="27015"
gslt=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-log -MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -TowerServerINI=${selfname}.ini"
startparameters="-MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -TowerServerINI=${selfname}.ini -log"

#### LinuxGSM Settings ####

Expand Down
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/ut3server/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ gspassword=""

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
# List of game types and mutators: https://docs.linuxgsm.com/game-servers/unreal-tournament-3
startparameters="server ${defaultmap}?Game=${game}?bIsDedicated=${isdedicated}?bIsLanMatch=${islanmatch}?bUsesStats=${usesstats}?bShouldAdvertise=${shouldadvertise}?PureServer=${pureserver}?bAllowJoinInProgress=${allowjoininprogress}?Mutator=${mutators}?ConfigSubDir=${selfname} -login=${gsusername} -password=${gspassword} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog}"
startparameters="server ${defaultmap}?Game=${game}?bIsDedicated=${isdedicated}?bIsLanMatch=${islanmatch}?bUsesStats=${usesstats}?bShouldAdvertise=${shouldadvertise}?PureServer=${pureserver}?bAllowJoinInProgress=${allowjoininprogress}?Mutator=${mutators}?ConfigSubDir=${selfname} -login=${gsusername} -password=${gspassword} -multihome=${ip} -port=${port} -queryport=${queryport} -nohomedir -unattended -log=${gamelog}"

#### LinuxGSM Settings ####

Expand Down
2 changes: 2 additions & 0 deletions lgsm/modules/check_system_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ elif [ "${shortname}" == "rust" ]; then
ramrequirementgb="9"
elif [ "${shortname}" == "sdtd" ]; then
ramrequirementgb="4"
elif [ "${shortname}" == "sf" ]; then
ramrequirementgb="12"
elif [ "${shortname}" == "squad" ]; then
ramrequirementgb="2"
elif [ "${shortname}" == "st" ]; then
Expand Down
2 changes: 2 additions & 0 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ fn_info_game_ac() {
fn_info_game_ark() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "adminpassword" "ServerAdminPassword"
fn_info_game_ini "maxplayers" "MaxPlayers"
fn_info_game_ini "rconport" "RCONPort"
fn_info_game_ini "servername" "SessionName"
fn_info_game_ini "serverpassword" "ServerPassword"
fi
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/info_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ fn_info_messages_ports_edit() {
fi
done
# engines/games that require editing the start parameters.
local ports_edit_array=("av" "ck" "col" "cs2" "fctr" "goldsrc" "hcu" "hw" "iw3.0" "ioquake3" "qfusion" "rust" "scpsl" "scpslsm" "sol" "spark" "source" "unreal4" "arma3" "dayz" "unt" "vh")
local ports_edit_array=("av" "ck" "col" "cs2" "fctr" "goldsrc" "hcu" "hw" "iw3.0" "ioquake3" "qfusion" "rust" "scpsl" "scpslsm" "sf" "sol" "spark" "source" "unreal4" "arma3" "dayz" "unt" "vh")
for port_edit in "${ports_edit_array[@]}"; do
if [ "${engine}" == "${port_edit}" ] || [ "${gamename}" == "${port_edit}" ] || [ "${shortname}" == "${port_edit}" ]; then
startparameterslocation="${configdirserver}"
Expand Down
4 changes: 2 additions & 2 deletions lgsm/modules/install_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ elif [ "${shortname}" == "bt" ]; then
fn_list_config_locations
elif [ "${shortname}" == "btl" ]; then
fn_check_cfgdir
array_configs+=(DefaultGame.ini)
array_configs+=(Game.ini)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
Expand Down Expand Up @@ -484,7 +484,7 @@ elif [ "${shortname}" == "hldms" ]; then
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "ohd" ]; then
array_configs+=(Game.ini)
array_configs+=(Admins.cfg Engine.ini Game.ini MapCycle.cfg)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
Expand Down

0 comments on commit 283e625

Please sign in to comment.