Implemented gradle for Windows single player

This commit is contained in:
Marwolf
2018-08-11 19:13:08 -04:00
parent 171aa9e3e4
commit d2e63cf325
3 changed files with 11 additions and 10 deletions

View File

@@ -17,12 +17,12 @@ echo:
REM Compile the game server and client:
echo Compiling the game client.
echo:
echo:
call gradle -b Game/client/build.gradle compile
echo:
echo:
echo Compiling the game server.
echo:
echo:
call gradle -b Game/server/build.gradle compile
echo:
echo:
@@ -31,7 +31,7 @@ echo Removing old then extracting a fresh client cache to your home folder.
echo Removing old then extracting a fresh client cache to your home folder.
echo:
rmdir "%HOMEPATH%/OpenRSC" /s /Q
md "%HOMEPATH%/OpenRSC"
md "%HOMEPATH%/OpenRSC"
7z x "Game/client/cache.zip" -o"%HOMEPATH%/OpenRSC" -r > NULL
echo:
echo:
@@ -45,7 +45,7 @@ echo:
REM Generate updated cache files, copies them to cache folder overwriting existing:
echo Generating cache .dat files from current config database and copying to client cache in your home folder.
echo:
echo:
call sudo gradle -b Game/server/build.gradle npcs items objects > NULL
xcopy /y "Game/server/npcs.dat" "%HOMEPATH%/OpenRSC/npcs.dat"
xcopy /y "Game/server/objects.dat" "%HOMEPATH%/OpenRSC/objects.dat"
@@ -55,13 +55,15 @@ echo:
REM Run the game client in a new window:
echo Starting the game client in a new window.
echo:
echo:
call START "" java -jar Game/client/Open_RSC_Client.jar
echo:
echo:
REM Run the game server in the current window:
echo Starting the game server in the current window.
echo:
echo:
cd Game/server
call java -jar Open_RSC_Server.jar
cd ../../
echo: