Skip to content

Commit

Permalink
Merge pull request #62 from TrueOsiris/dev
Browse files Browse the repository at this point in the history
fixing issue #59 & #60
  • Loading branch information
TrueOsiris authored May 15, 2024
2 parents 280289e + 06ec50c commit 6fa2811
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=$!

Expand Down

0 comments on commit 6fa2811

Please sign in to comment.