Skip to content

Commit 64e9e82

Browse files
PlayMTLdgibbs64
andauthored
feat(pw): port & steamport setting for palworld (#4479)
* fix: servername variable assignment for sf and unt The servername variable was incorrectly assigned using the selfname variable instead of the correct servername variable. This has been fixed to ensure accurate information is displayed for each game type. * add: port & steamport setting for palworld --------- Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent c3349fc commit 64e9e82

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lgsm/config-default/config-lgsm/pwserver/_default.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
1212
servername="LinuxGSM"
1313

14-
# Use game server config file to edit, used for port check script (workaround)
14+
# For community servers (serverlist) you need to change these settings (publicip & publicport) in the gameserver config file aswell
1515
port="8211"
16+
steamport="27015"
1617

1718
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
1819
## Game Server Docs | https://tech.palworldgame.com/dedicated-server-guide#linux
19-
startparameters="EpicApp=PalServer -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS -servername='${servername}'"
20+
startparameters="EpicApp=PalServer -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS -servername='${servername}' -port='${port}' -queryport='${steamport}'"
2021

2122
#### LinuxGSM Settings ####
2223

lgsm/modules/info_game.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ fn_info_game_pvr() {
621621
fn_info_game_pw() {
622622
servername="${servername:-"NOT SET"}"
623623
port="${port:-"0"}"
624-
steamport="27015"
624+
steamport="${steamport:-"0"}"
625625
unknownport="1985"
626626
}
627627

@@ -1978,7 +1978,7 @@ fn_info_game_sdtd() {
19781978
# Config Type: Parameters (with an ini)
19791979
fn_info_game_sf() {
19801980
# Parameters
1981-
servername="${selfname:-"NOT SET"}"
1981+
servername="${servername:-"NOT SET"}"
19821982
port="${port:-"0"}"
19831983
queryport="${queryport:-"0"}"
19841984
beaconport="${beaconport:-"0"}"
@@ -2131,7 +2131,7 @@ fn_info_game_tw() {
21312131

21322132
# Config Type: Parameters
21332133
fn_info_game_unt() {
2134-
servername="${selfname:-"NOT SET"}"
2134+
servername="${servername:-"NOT SET"}"
21352135
port="${port:-"0"}"
21362136
queryport="${port}"
21372137
steamport="$((port + 1))"

0 commit comments

Comments
 (0)