Ready for vrsingd

This commit is contained in:
2022-05-25 15:55:15 -05:00
parent 312c0e5807
commit 062b42b6d2
5 changed files with 20 additions and 11 deletions

2
scripts/init.sh Normal file
View File

@@ -0,0 +1,2 @@
winecfg
wine /root/.wine/drive_c/steamcmd/steamcmd.exe +force_install_dir "C:\VRisingServer" +login anonymous +app_update 1829350 validate +quit

10
scripts/start.sh Normal file
View File

@@ -0,0 +1,10 @@
HOST_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ServerHostSettings.json
GAME_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ServerGameSettings.json
ADMIN_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/adminlist.txt
BAN_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/banlist.txt
if [ -f "$HOST_FILE" -a -f "$GAME_FILE" -a -f "$ADMIN_FILE" -a -f "$BAN_FILE"]; then
echo "Starting Server"
xvfb-run -a wine /root/.wine/drive_c/vrisingserver/VRisingServer.exe
else
echo "Copy over config files to the settings folder"
fi