Implemented gradle for Windows single player
This commit is contained in:
@@ -21,7 +21,6 @@ sudo nano Run_Production_Linux_Game_Server.sh
|
|||||||
sudo nano Game/server/config/config.xml
|
sudo nano Game/server/config/config.xml
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Launching Run_Production_Linux_Game_Server.sh"
|
echo "Ready to execute Run_Production_Linux_Game_Server.sh"
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
./Run_Production_Linux_Game_Server.sh
|
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ goto doinstall
|
|||||||
|
|
||||||
:installjava
|
:installjava
|
||||||
echo:
|
echo:
|
||||||
echo Installing Oracle Java JDK 8 and Apache Ant.
|
echo Installing Oracle Java JDK 8 and Gradle.
|
||||||
echo:
|
echo:
|
||||||
choco install -y jdk8 ant
|
choco install -y jdk8 gradle ant
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
goto askdocker
|
goto askdocker
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ echo:
|
|||||||
|
|
||||||
REM Compile the game server and client:
|
REM Compile the game server and client:
|
||||||
echo Compiling the game client.
|
echo Compiling the game client.
|
||||||
echo:
|
echo:
|
||||||
call gradle -b Game/client/build.gradle compile
|
call gradle -b Game/client/build.gradle compile
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Compiling the game server.
|
echo Compiling the game server.
|
||||||
echo:
|
echo:
|
||||||
call gradle -b Game/server/build.gradle compile
|
call gradle -b Game/server/build.gradle compile
|
||||||
echo:
|
echo:
|
||||||
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 Removing old then extracting a fresh client cache to your home folder.
|
||||||
echo:
|
echo:
|
||||||
rmdir "%HOMEPATH%/OpenRSC" /s /Q
|
rmdir "%HOMEPATH%/OpenRSC" /s /Q
|
||||||
md "%HOMEPATH%/OpenRSC"
|
md "%HOMEPATH%/OpenRSC"
|
||||||
7z x "Game/client/cache.zip" -o"%HOMEPATH%/OpenRSC" -r > NULL
|
7z x "Game/client/cache.zip" -o"%HOMEPATH%/OpenRSC" -r > NULL
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
@@ -45,7 +45,7 @@ echo:
|
|||||||
|
|
||||||
REM Generate updated cache files, copies them to cache folder overwriting existing:
|
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 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
|
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/npcs.dat" "%HOMEPATH%/OpenRSC/npcs.dat"
|
||||||
xcopy /y "Game/server/objects.dat" "%HOMEPATH%/OpenRSC/objects.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:
|
REM Run the game client in a new window:
|
||||||
echo Starting 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
|
call START "" java -jar Game/client/Open_RSC_Client.jar
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
|
|
||||||
REM Run the game server in the current window:
|
REM Run the game server in the current window:
|
||||||
echo Starting 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 ../../
|
cd ../../
|
||||||
echo:
|
echo:
|
||||||
|
|||||||
Reference in New Issue
Block a user