Skip to content

Commit

Permalink
fix(tiserver): fix and update to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
h3o66 committed Apr 16, 2023
1 parent b529f00 commit dbd006c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lgsm/config-default/config-lgsm/tiserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ queryport="27015"
# Possible maps, see: https://isle.fandom.com/wiki/The_Isle_Server_Settings_and_Configuration#Optional_Maps
map=""

# EAC start parameters
eaclaunch="-ini:Engine:[EpicOnlineServices]:DedicatedServerClientId=xyza7891gk5PRo3J7G9puCJGFJjmEguW -ini:Engine:[EpicOnlineServices]:DedicatedServerClientSecret=pKWl6t5i9NJK8gTpVlAxzENZ65P8hYzodV8Dqe5Rlc8"

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

#### LinuxGSM Settings ####

Expand Down
15 changes: 13 additions & 2 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1928,15 +1928,26 @@ fn_info_game_ti() {
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
maxplayers="${zero}"
rconenabled="true"
rconport="8888"
queueenabled="true"
queueport="10000"
else
servername=$(sed -nr 's/^ServerName="(.*)"/\1/p' "${servercfgfullpath}")
servername=$(sed -nr 's/^ServerName=(.*)/\1/p' "${servercfgfullpath}")
maxplayers=$(sed -nr 's/^MaxPlayerCount=([0-9]+)/\1/' "${servercfgfullpath}")
rconenabled=$(sed -nr 's/^RconEnabled=(.*)/\1/p' "${servercfgfullpath}")
rconport=$(sed -nr 's/^RconPort=([0-9]+)/\1/' "${servercfgfullpath}")
queueenabled=$(sed -nr 's/^QueueEnabled=(.*)/\1/p' "${servercfgfullpath}")
queueport=$(sed -nr 's/^QueuePort=([0-9]+)/\1/' "${servercfgfullpath}")

# Not set
servername=${servername:-"NOT SET"}
maxplayers=${maxplayers:-"0"}
rconenabled=${rconenabled:-"true"}
rconport=${rconport:-"8888"}
queueenabled=${queueenabled:-"true"}
queueport=${queueport:-"10000"}
fi

}

fn_info_game_ts3() {
Expand Down

0 comments on commit dbd006c

Please sign in to comment.