Skip to content

Commit ce37ba9

Browse files
Changes to the script (#247)
* Make the script generate the IntelliJ runs and print the duration afterwards. * Also update the README * Fix typo * Cleanup Co-authored-by: Constructor <[email protected]>
1 parent 9f33d60 commit ce37ba9

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,23 @@ How do I...
5656
<summary>... export KAMI blue config to Lambda?</summary>
5757

5858
> Rename `.minecraft/kamiblue` to `.minecraft/lambda`
59+
> Note that this might cause stability issues.
5960
6061
</details>
6162

6263
<details>
6364
<summary>... fix most crashes on startup?</summary>
6465

6566
> 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.
66-
> 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.
67+
> 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.
6768
6869
</details>
6970

7071
<details>
7172
<summary>... fix problems with Gradle?</summary>
7273

7374
> Make sure you have a Java 8 JDK installed and in your PATH.
74-
We recommend using the [Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot/) variant of OpenJDK
75+
We recommend using the [Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot/) distribution of OpenJDK
7576

7677
</details>
7778

@@ -112,7 +113,7 @@ In this guide we will use [IntelliJ IDEA](https://www.jetbrains.com/idea/) as ID
112113
### Gradle build
113114

114115
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.
115-
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`.
116+
1. Go to `lambda > Tasks > build > runClient` in the Gradle tab and run the client.
116117
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`
117118

118119
## Thanks to

setupWorkspace.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@
44
#
55
# Usage: "./setupWorkspace.sh"
66

7-
#
7+
SECONDS=0
88

99
# To allow use from outside the lambda directory
1010
cd "$(dirname "$0")" || exit
1111

12-
echo "[$(date +"%H:%M:%S")] Running gradlew classes without daemon..."
12+
echo "Running gradlew classes without daemon..."
1313
./gradlew --no-daemon classes || {
14-
echo "[$(date +"%H:%M:%S")] ERROR: Running gradlew build failed! Run './gradlew --no-daemon classes' manually"
14+
echo "ERROR: Running gradlew build failed! Run './gradlew --no-daemon classes' manually"
15+
exit 1
16+
}
17+
18+
# Generates InteliJ runs so the user doesn't have to do that manually
19+
echo "Generating InteliJ runs"
20+
./gradlew --no-daemon genIntellijRuns || {
21+
echo "ERROR: Failure generating InteliJ runs! try generating them manually from within IntelliJ"
1522
exit 1
1623
}
1724

1825
cat logo_ascii.txt 2>/dev/null
1926
echo "=========================================================================="
2027
echo ""
21-
echo "[$(date +"%H:%M:%S")] Build succeeded! All checks passed, you can build normally now! Welcome to Lambda."
28+
# shellcheck disable=SC2039
29+
echo "Build succeeded in $((SECONDS / 60)) minutes and $((SECONDS % 60)) seconds! All checks passed, you can build normally now! Welcome to Lambda."
2230
echo ""
2331
echo "=========================================================================="

0 commit comments

Comments
 (0)