From 4092d492784f182b8850ef94e7f8eed3c816d775 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Fri, 18 Nov 2016 16:22:41 +0100 Subject: [PATCH 1/2] Fixed Project Zomboid config handling - Corrected default config names - Use service name for config and "server name" - Added fn_check_cfgdir call to create non-existing config directory --- ProjectZomboid/pzserver | 8 ++++---- lgsm/functions/install_config.sh | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 10fc6066c..6fbc80297 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then set -x fi -version="161113" +version="161118" ########################## ######## Settings ######## @@ -27,7 +27,7 @@ adminpassword="CHANGE_ME" ip="0.0.0.0" fn_parms(){ -parms="-ip ${ip} -adminpassword \"${adminpassword}\"" +parms="-ip ${ip} -adminpassword \"${adminpassword}\" -servername ${servicename}" } #### LinuxGSM Settings #### @@ -96,8 +96,8 @@ filesdir="${rootdir}/serverfiles" systemdir="${filesdir}" executabledir="${filesdir}" executable="./start-server.sh" -servercfg="server.ini" -servercfgdefault="server.cfg" +servercfg="${servicename}.ini" +servercfgdefault="server.ini" servercfgdir="${HOME}/Zomboid/Server" servercfgfullpath="${servercfgdir}/${servercfg}" diff --git a/lgsm/functions/install_config.sh b/lgsm/functions/install_config.sh index 872618c1e..30292a276 100644 --- a/lgsm/functions/install_config.sh +++ b/lgsm/functions/install_config.sh @@ -298,6 +298,7 @@ elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then fn_set_config_vars elif [ "${gamename}" == "Project Zomboid" ]; then gamedirname="ProjectZomboid" + fn_check_cfgdir array_configs+=( server.ini ) fn_fetch_default_config fn_default_config_remote From 2d653e765354b2198ceae9ef41180d756eee7e3a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 18 Nov 2016 16:16:13 +0000 Subject: [PATCH 2/2] Version to remain the same with hotfixes --- ProjectZomboid/pzserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectZomboid/pzserver b/ProjectZomboid/pzserver index 6fbc80297..92f7170a6 100644 --- a/ProjectZomboid/pzserver +++ b/ProjectZomboid/pzserver @@ -14,7 +14,7 @@ if [ -f ".dev-debug" ]; then set -x fi -version="161118" +version="161113" ########################## ######## Settings ########