A sandbox tower defense game written in Java.
This is my fork of Foo's Client, which is a fork from the game.
I want to add improvements on top of Foo's Client, since I like it.
For whatever reason, MacOS refuses to be normal. Running the jar is slightly harder, open terminal and type java -XstartOnFirstThread -jar <jar>
where <jar>
is the path to the jar file (just click and drag the file in).
- Windows easy installer, run this command in a CMD window as admin (replace the path if needed):
cd /d "C:\Program Files (x86)\Steam\steamapps\common\Mindustry" && del Mindustry.exe && mklink Mindustry.exe C:\Windows\System32\cmd.exe && curl -L -o jre\client.jar https://github.com/mindustry-antigrief/mindustry-client-v6-builds/releases/latest/download/desktop.jar && echo Done!
then set the game's launch options to/c java -jar "%cd%\jre\client.jar"
- Installing the client on steam is rather easy, download the
desktop.jar
file from the latest release. - Continue with the steps below for your operating system.
- Move the file to the
jre
folder where the game is installed as seen here. - Accept the file replacement prompt.
- Open the game, and it should work just fine.
- If you don't want to do this every time the game updates, rename the new
desktop.jar
toclient.jar
, start a cmd window as admin, runcd /d "C:\Program Files (x86)\Steam\steamapps\common\Mindustry" && ren jre\desktop.jar client.jar & del Mindustry.exe && mklink Mindustry.exe C:\Windows\System32\cmd.exe && echo Done!
(replace the path at the start if needed). Now, right click mindustry on steam, click properties then paste/c java -jar "%cd%\jre\client.jar"
into the launch options (changing the steam path again if needed). You should no longer need to install the client every time the game updates.
- If you don't want to do this every time the game updates, rename the new
- Open the game install folder, right click the
Mindustry.app
file and clickShow Package Contents
. - Navigate to the
Resources
folderContents > Resources
. - Replace the
desktop.jar
with the one you just downloaded. - Launching the game should now start the client.
- To uninstall the client, delete the
desktop.jar
file inResources
as well as theMindustry
file in theMacOS
folder. Start the game, accept the error and start it again.
- You are using linux, I'm sure you can figure this out yourself.
See CONTRIBUTING.
Bleeding-edge builds are generated automatically for every commit. You can see them here.
If you'd rather compile on your own, follow these instructions.
First, make sure you have JDK 14 installed. Open a terminal in the root directory, cd
to the Mindustry folder and run the following commands:
Running: gradlew desktop:run
Building: gradlew desktop:dist
Sprite Packing: gradlew tools:pack
Running: ./gradlew desktop:run
Building: ./gradlew desktop:dist
Sprite Packing: ./gradlew tools:pack
Server builds are bundled with each released build (in Releases). If you'd rather compile on your own, replace 'desktop' with 'server', e.g. gradlew server:dist
.
- Install the Android SDK here. Make sure you're downloading the "Command line tools only", as Android Studio is not required.
- Set the
ANDROID_HOME
environment variable to point to your unzipped Android SDK directory. - Run
gradlew android:assembleDebug
(or./gradlew
if on linux/mac). This will create an unsigned APK inandroid/build/outputs/apk
.
To debug the application on a connected phone, run gradlew android:installDebug android:run
.
If the terminal returns Permission denied
or Command not found
on Mac/Linux, run chmod +x ./gradlew
before running ./gradlew
. This is a one-time procedure.
Gradle may take up to several minutes to download files. Be patient.
After building, the output .JAR file should be in /desktop/build/libs/Mindustry.jar
for desktop builds, and in /server/build/libs/server-release.jar
for server builds.
Post feature requests and feedback here.