The biggest Mindustry mod.
Relevant links:
Miro Board
Trello Board
https://github.com/EyeOfDarkness/FlameOut The key is the description with an 'A' in the front.
Install JDK 16 or higher. Set JAVA_HOME
environment variable to where it is located. Clone this repository then change your current working directory to where the cloned repository folder is. If you are compiling for Android, click here.
gradlew tools:proc
- Processes raw sprites and generates some other needed ones; will be automatically called if./main/assets/sprites
directory isn't found.gradlew main:deploy
- Builds the mod.jar
file for desktop only.gradlew main:deployDex
- Builds the mod.jar
file for both desktop and Android (see Android).
Replace gradlew
with ./gradlew
- Install the Android SDK here. Make sure you're downloading the "Command line tools only", as Android Studio is not required.
- Create a folder with any name you want anywhere, then set
%ANDROID_HOME%
environment variable to the created folder. - Unzip the downloaded Android SDK command line tools, then move the folder into
%ANDROID_HOME%
.- Note that the downloaded command line tools folder is sometimes wrong; the correct path to
sdkmanager.bat
iscmdline-tools/tools/bin/sdkmanager.bat
.
- Note that the downloaded command line tools folder is sometimes wrong; the correct path to
- Open the command line, then
cd
to%ANDROID_HOME%/cmdline-tools/tools/bin
. - Run
sdkmanager --install "build-tools;30.0.3"
to install the Android build tools, assuming you're using version30.0.3
. - Add
%ANDROID_HOME%/build-tools/30.0.3
to yourPATH
environment variable. - Run
gradlew main:deployDex
(or./gradlew
if on Linux/MacOS). This will create a.jar
file inmain/build/libs/ProjectUnity.jar
, playable in both desktop and Android.
- Build output should be located in
main/build/libs/
. - If the command returns
Permission Denied
on Linux, runchmod +x gradlew
.