From a86d4a8f6b022a493371bd99ca370f1e1dbefb80 Mon Sep 17 00:00:00 2001 From: mmvanheusden Date: Sun, 27 Feb 2022 17:55:17 +0100 Subject: [PATCH 1/4] Make the script generate the IntelliJ runs and print the duration afterwards. --- setupWorkspace.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/setupWorkspace.sh b/setupWorkspace.sh index 74e4296e0..c45928ba4 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 } +clear 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." +echo "Build succeeded in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds! All checks passed, you can build normally now! Welcome to Lambda." echo "" echo "==========================================================================" From 2ee5878316831101f6b31bb062bb36a2d041e5bf Mon Sep 17 00:00:00 2001 From: mmvanheusden Date: Sun, 27 Feb 2022 18:01:24 +0100 Subject: [PATCH 2/4] Also update the README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9c8b8742..1d25bec03 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. @@ -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 the 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 From 5993b753656e3dcfb0533b5835a18dcbdf7710d7 Mon Sep 17 00:00:00 2001 From: mmvanheusden Date: Mon, 28 Feb 2022 11:41:44 +0100 Subject: [PATCH 3/4] Fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d25bec03..e7fcf7576 100644 --- a/README.md +++ b/README.md @@ -64,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. @@ -72,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/) distribution of the OpenJDK +We recommend using the [Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot/) distribution of OpenJDK From 914d0372fd7a283197264c69dd4adf4f9ca2dc7d Mon Sep 17 00:00:00 2001 From: Constructor Date: Wed, 2 Mar 2022 16:47:46 +0100 Subject: [PATCH 4/4] Cleanup --- setupWorkspace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupWorkspace.sh b/setupWorkspace.sh index c45928ba4..a65aeb8a6 100755 --- a/setupWorkspace.sh +++ b/setupWorkspace.sh @@ -22,10 +22,10 @@ echo "Generating InteliJ runs" exit 1 } -clear cat logo_ascii.txt 2>/dev/null echo "==========================================================================" echo "" -echo "Build succeeded in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds! 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 "=========================================================================="