Browse Source

fix install config

pull/3997/head
crawforc3 3 years ago
parent
commit
4a7fc93f39
  1. 11
      lgsm/config-default/config-lgsm/necserver/_default.cfg
  2. 26
      lgsm/functions/fix_nec.sh
  3. 5
      lgsm/functions/install_config.sh

11
lgsm/config-default/config-lgsm/necserver/_default.cfg

@ -7,17 +7,8 @@
# [instance].cfg - applies settings to a specific instance.
#### Game Server Settings ####
## Pre-defined Paramters | https://docs.linuxgsm.com/configuration/start-parameters#predefined-parameters
worldname="MyWorld"
port="14159"
slots="10" # [1 - 250] Server default slots
password="" # Leave blank for no password
pauseWhenEmpty="false",
giveClientsPower="true" # If true, clients will have much more power over what hits them, their position etc
logging="true" # Will create log files for each server start
language="en"
zipSaves="false" # Create new saves uncompressed
MOTD="" # Message of the day
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-localdir -world ${worldname}"

26
lgsm/functions/fix_nec.sh

@ -1,26 +0,0 @@
#!/bin/bash
# LinuxGSM fix_nec.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Starts a server to autogenerate configs after installation
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
if [ "${postinstall}" == "1" ]; then
fn_print_information "starting ${gamename} server to generate configs."
exitbypass=1
command_start.sh
fn_firstcommand_reset
sleep 10
exibypass=1
command_stop.sh
fn_firstcommand_reset
fi
fn_default_config_local
fn_set_config_vars
fn_list_config_locations

5
lgsm/functions/install_config.sh

@ -637,6 +637,11 @@ elif [ "${shortname}" == "pz" ]; then
elif [ "${shortname}" == "nec" ]; then
gamedirname="Necesse"
fn_check_cfgdir
array_configs+=(server.cfg)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "pc" ]; then
gamedirname="ProjectCars"
array_configs+=(server.cfg)

Loading…
Cancel
Save