With Yellow's effectively brainrotting codebase, and for my general sanity, Yellow will be rewritten from scratch.
This repository will be archived.
Why?
The codebase has become substantially too large and unstable for me to maintain. I wasn't really expecting this mod to reach this magnitude, and now that it's getting to me, I realize trying to hold this codebase up will probably drive me insane.
Where can I find the rewritten version?
What will happen to the old content?
Nothing. All content will be ported to the rewritten version, but with some minor changes.
Why a new repository?
Aside from the codebase being a disaster, this repository is general is also a disaster.
Why can Yellow be permanently disabled in-game?
For the sake of stopping those who don't know any better from reporting any bugs/issues Yellow has.
A random piece of chaos I made. Mostly just a mod containing whatever comes in mind for me.
There's also the unmaintained JS version if you need it for some reason.
- Install Java 17+ (Select either regular EXE installer or MSI installer) and Git/GH (Optional) through
winget install -e --id Git.Git
/winget install -e --id GitHub.cli
. - Download the source code through GitHub or clone the repository with
git clone https://github.com/SMOLKEYS/yellow-java
orgh repo clone SMOLKEYS/yellow-java
. - Run
./gradlew jar
in the mod's root directory. This should download any needed dependencies and build a JAR file located inbuild/libs
. Import it into the game.
The steps are practically the same for Windows, but you go with it differently. It's also assumed you know what you're doing since it's, well, Linux. But a step-by-step is still provided anyway.
- Install Java 17+ (Mindustry is run using Java, so you probably already have it installed) and Git/GH (Optional) through your package manager.
- Download the source code through GitHub or clone the repository with
git clone https://github.com/SMOLKEYS/yellow-java
orgh repo clone SMOLKEYS/yellow-java
. - Run
./gradlew jar
in the mod's root directory. This should download any needed dependencies and build a JAR file located inbuild/libs
. Import it into the game.
Yes, you can build on Android. This also applies for most java mods out there.
- Install Termux through F-Droid or the repositories releases section. You're better off with the F-Droid one, as it automatically provides the correct APK for your device.
- Run
pkg update && pkg upgrade
to upgrade necessary packages. - Install Java 17 through
pkg in openjdk-17
and Git/GH (Optional) throughpkg in git gh
. - Download the source code through GitHub or clone the repository with
git clone https://github.com/SMOLKEYS/yellow-java
orgh repo clone SMOLKEYS/yellow-java
.
Warning
Building the mod at this point is useless and not recommended, as you can't even import it into Mindustry. See what Warning 2 says below.
Tip
For Windows and Linux only.
You can use the ./gradlew copy
task, so it builds the mod and copies it to Mindustry's mods directory.
Warning
The output JAR provided by building the mod in any of the first 2 ways is NOT compatible with Android. See Multiplatform section just below.
Note
It is more than recommended to see how it works by following the steps above for the PC-only jar.
Because Android's a piece of shit, this section has to exist.
If you already have the necessary tools, you can skip the steps here and run ./gradlew deploy
.
- Run
setup-windows.bat
. This will download all necessary stuff needed to compile for Android. - Restart the command line window you ran it on. If you ran it in an IDE, restart it, so it detects the changes.
- Go back to the mod directory and run
.\gradlew deploy
. This should build a multiplatform JAR compatible for both Android and Desktop.
//TODO: I don't know how real Linux works. Android Linux sucks.
Yes, you can build the mod for Android in Android.
- Run
setup-android.sh
in the mod's root directory with./setup-sdk.sh
. This will only work in a Bash shell. 1.5. If it returns a permission denied error,chmod 755 setup-sdk.sh
then run it again. - Restart Termux.
- Go back to the mod directory and run
./gradlew deploy
. This should build a multiplatform JAR compatible for both Android and Desktop. By getting this far you should at least know how to import it.
Tip
For Windows and Linux: If you have access to ADB, you can connect your Android device to your machine either through USB or Wi-Fi and run ./gradlew androidCopy
. This builds the mod and copies it to Mindustry's mod directory in the device.
For Android: You can install ADB with pkg in android-tools
and connect it to your device. Once you do that, you can use ./gradlew androidCopy
in Termux too!
Any: Providing -Padb.quickstart=true
and/or -Padb.useBE=true
after ./gradlew androidCopy
works. adb.quickstart
tells it to open Mindustry after building the mod and copying it. adb.useBE
tells it to copy the mod to the Mindustry BE mods directory instead. Using both in tandem will build the mod, then open Mindustry BE after copying it.
NOTE: This only works if your device has Development settings enabled and either Wireless/USB debugging turned on.
xzxADIxzx - Weapon Switch UI, Import handling
Mnemotechnician - Weapon Switch Functionality
Dryehm - "Menu Man 3" Achievement
Janssendel - David's Star effect for Bullethell
Links |
---|
SMOLHome Discord Server |
The Original Project Repository (JS) |
Time | Event | Info |
---|---|---|
August 5, 2021; 8:41PM PST | Prologue | The first image of the flare |
August 5, 2021; 8:44PM PST | Prologue | Designation of name "Yellow" to the flare (by ffx#0370) |
August 5, 2021; 8:48PM PST | Beginning | Project commited to GitHub |
August 21, 2021; ??? PST | Beginning | Uploaded yellow sprite |
December 6, 2021: ??? PST | New Beginning | Creation of the java version of the project, aka this repository |