diff --git a/README.md b/README.md index d9c8b8742..e7fcf7576 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ How do I... ... export KAMI blue config to Lambda? > Rename `.minecraft/kamiblue` to `.minecraft/lambda` +> Note that this might cause stability issues. @@ -63,7 +64,7 @@ How do I... ... fix most crashes on startup? > Possibly you have multiple mods loaded. Forge loads mods in alphabetical order, so you can change the name of the Mod jar to make it load earlier or later. Add for example an exclamation mark to lambda jar to make it load first. -> If you got `Error: java.lang.IllegalAccessError: tried to access field net.minecraft.util.math.Vec3i.field_177962_a from class baritone.k` remove the noverify tag from your arguments. +> If you got `Error: java.lang.IllegalAccessError: tried to access field net.minecraft.util.math.Vec3i.field_177962_a from class baritone.k` remove the `-noverify` tag from your arguments. @@ -71,7 +72,7 @@ How do I... ... fix problems with Gradle? > Make sure you have a Java 8 JDK installed and in your PATH. -We recommend using the [Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot/) variant of OpenJDK +We recommend using the [Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot/) distribution of OpenJDK @@ -112,7 +113,7 @@ In this guide we will use [IntelliJ IDEA](https://www.jetbrains.com/idea/) as ID ### Gradle build Test if the environment is set up correctly by building the client and run it inside IDE using the Gradle tab on the right side of the IDE. -1. Go to `lambda > Tasks > build > runClient` in the Gradle tab and run the client or create a native run using `lambda > Tasks > fg_runs > genIntelliJRuns`. +1. Go to `lambda > Tasks > build > runClient` in the Gradle tab and run the client. 2. To build the client as a jar run `lambda > Tasks > build > build`. Gradle will create a new directory called `build`. The final built jar will be in `build/libs` ## Thanks to diff --git a/setupWorkspace.sh b/setupWorkspace.sh index 74e4296e0..a65aeb8a6 100755 --- a/setupWorkspace.sh +++ b/setupWorkspace.sh @@ -4,20 +4,28 @@ # # Usage: "./setupWorkspace.sh" -# +SECONDS=0 # To allow use from outside the lambda directory cd "$(dirname "$0")" || exit -echo "[$(date +"%H:%M:%S")] Running gradlew classes without daemon..." +echo "Running gradlew classes without daemon..." ./gradlew --no-daemon classes || { - echo "[$(date +"%H:%M:%S")] ERROR: Running gradlew build failed! Run './gradlew --no-daemon classes' manually" + echo "ERROR: Running gradlew build failed! Run './gradlew --no-daemon classes' manually" + exit 1 +} + +# Generates InteliJ runs so the user doesn't have to do that manually +echo "Generating InteliJ runs" +./gradlew --no-daemon genIntellijRuns || { + echo "ERROR: Failure generating InteliJ runs! try generating them manually from within IntelliJ" exit 1 } cat logo_ascii.txt 2>/dev/null echo "==========================================================================" echo "" -echo "[$(date +"%H:%M:%S")] Build succeeded! All checks passed, you can build normally now! Welcome to Lambda." +# shellcheck disable=SC2039 +echo "Build succeeded in $((SECONDS / 60)) minutes and $((SECONDS % 60)) seconds! All checks passed, you can build normally now! Welcome to Lambda." echo "" echo "=========================================================================="