Daniel Gibbs
12 months ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
2 changed files with
6 additions and
5 deletions
-
lgsm/modules/info_game.sh
-
lgsm/modules/info_messages.sh
|
@ -2249,13 +2249,14 @@ fn_info_game_xnt() { |
|
|
if [ -f "${servercfgfullpath}" ]; then |
|
|
if [ -f "${servercfgfullpath}" ]; then |
|
|
fn_info_game_ini "adminpassword" "rconpassword" |
|
|
fn_info_game_ini "adminpassword" "rconpassword" |
|
|
fn_info_game_ini "port" "port" |
|
|
fn_info_game_ini "port" "port" |
|
|
|
|
|
fn_info_game_ini "queryport" "queryport" |
|
|
fn_info_game_ini "servername" "hostname" |
|
|
fn_info_game_ini "servername" "hostname" |
|
|
fn_info_game_ini "maxplayers" "maxplayers" |
|
|
fn_info_game_ini "maxplayers" "maxplayers" |
|
|
else |
|
|
else |
|
|
maxplayers="${maxplayers:-"8"}" |
|
|
maxplayers="${maxplayers:-"8"}" |
|
|
port="${port:-"2600"}" |
|
|
port="${port:-"2600"}" |
|
|
adminpassword="${rconpassword:-"NOT SET"}" |
|
|
adminpassword="${rconpassword:-"NOT SET"}" |
|
|
servername="${servername:-"NOT SET"}" |
|
|
servername="${servername:-"NOT SET"}" |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
@ -668,7 +668,7 @@ fn_info_messages_ports_edit() { |
|
|
|
|
|
|
|
|
startparameterslocation="${red}UNKNOWN${default}" |
|
|
startparameterslocation="${red}UNKNOWN${default}" |
|
|
# engines/games that require editing in the config file. |
|
|
# engines/games that require editing in the config file. |
|
|
local ports_edit_array=("ac" "arma3" "armar" "bo" "bt" "ct" "dst" "eco" "idtech2" "idtech3" "idtech3_ql" "jc2" "jc3" "lwjgl2" "mcb" "nec" "pc" "pc2" "prism3d" "pz" "qw" "refractor" "renderware" "rw" "sb" "sdtd" "st" "stn" "ts3" "tw" "terraria" "unreal" "unreal2" "unreal3" "vints" "wurm") |
|
|
local ports_edit_array=("ac" "arma3" "armar" "bo" "bt" "ct" "dst" "eco" "idtech2" "idtech3" "idtech3_ql" "jc2" "jc3" "lwjgl2" "mcb" "nec" "pc" "pc2" "prism3d" "pz" "qw" "refractor" "renderware" "rw" "sb" "sdtd" "st" "stn" "ts3" "tw" "terraria" "unreal" "unreal2" "unreal3" "vints" "xnt" "wurm") |
|
|
for port_edit in "${ports_edit_array[@]}"; do |
|
|
for port_edit in "${ports_edit_array[@]}"; do |
|
|
if [ "${shortname}" == "ut3" ]; then |
|
|
if [ "${shortname}" == "ut3" ]; then |
|
|
startparameterslocation="${servercfgdir}/UTWeb.ini" |
|
|
startparameterslocation="${servercfgdir}/UTWeb.ini" |
|
|