-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up your development environment. Intellij
Ryandw11 edited this page Jul 12, 2021
·
7 revisions
- Java 11 JDK installed
- Intellij
- Create a new project by cloning Kakara.
- Wait for Gradle and its dependencies to finish installing.
- Add a new remote inside the git setting for the original Kakara project. This will allow you to reset your code easily.
- Download the klauncher for your Operating System from ci.kingtux.dev.
- Take the klanuncher executable and put it in the root directory of the Kakara project. (Do not add it to git.)
- Create a
build.bat
orbuild.sh
file in the root directory of the Kakara project. (Do not add it to git.) - Add the following code to your build.bat or build.sh file:
- If on Windows:
gradlew.bat clean shadowJar --warning-mode all --refresh-dependencies -Pbranch=master && klauncher.exe --working_dir client\test\ --game client\build\libs\client-1.0-SNAPSHOT-all.jar --engine jenkins:master --test_mode
- If on Linux:
./gradlew clean shadowJar --warning-mode all --refresh-dependencies -Pbranch=master && ./klauncher --working_dir client\test\ --game client\build\libs\client-1.0-SNAPSHOT-all.jar --engine jenkins:master --test_mode
- Edit your Run Configuration by going to
Run > Edit Configurations...
- Click the + button at the top left of the menu and select the
Shell Script
option.- Name the script something like
Run
. - Change the
Script Path
to the location of the build.bat or build.sh file you just created in the root directory of the project. Ex:D:\{other_dirs}\Kakara\build.bat
- Change the
Working Directory
to the root directory of the project. Ex:D:\{other_dirs}\Kakara
- Click
Apply
andOk
.
- Name the script something like
- Now click the green run button. It should compile successfully and start the game.
You have now successfully setup the development environment for the Kakara Client. Any changes made to the code will now be reflected when you build the client.
//TODO Server has not been started yet.