From 06ec50c6e1dd534d64a4fe53cac17f6e32d53686 Mon Sep 17 00:00:00 2001 From: trueosiris Date: Wed, 15 May 2024 15:52:34 +0200 Subject: [PATCH] fixing issue #59 --- start.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 92c2174..b62205f 100755 --- a/start.sh +++ b/start.sh @@ -24,8 +24,9 @@ fi if [ -z "$SERVERNAME" ]; then SERVERNAME="trueosiris-V" fi -if [ -z "$WORLDNAME" ]; then - WORLDNAME="world1" +override_savename="" +if [ ! -z "$WORLDNAME" ]; then + override_savename="-saveName $WORLDNAME" fi game_port="" if [ ! -z $GAMEPORT ]; then @@ -81,8 +82,10 @@ echo "Starting Xvfb" Xvfb :0 -screen 0 1024x768x16 & echo "Launching wine64 V Rising" echo " " -DISPLAY=:0.0 wine64 /mnt/vrising/server/VRisingServer.exe -persistentDataPath $p -serverName "$SERVERNAME" -saveName "$WORLDNAME" -logFile "$p/$logfile" "$game_port" "$query_port" 2>&1 & - +v() { + DISPLAY=:0.0 wine64 /mnt/vrising/server/VRisingServer.exe -persistentDataPath $p -serverName "$SERVERNAME" $override_savename -logFile "$p/$logfile" "$game_port" "$query_port" 2>&1 & +} +v # Gets the PID of the last command ServerPID=$!