Code Monkey home page Code Monkey logo

heavymachineryjava's Introduction

Icon

GitHub Hits Stars

HeavyMachineryJava

A Java Mindustry mod ported from js to java

Other Stuff

Adds:

Units: 11

  • Melee: 5
  • PurpleAir: 5
  • Overseer: 3

Blocks: 5

  • Turrets: 2
  • Effects: 3
  • Production: 1

Notes

This Mod is still incomplete There is a lot planned on this mod but not out yet so keep watch for new updates
All things on Adds is subject to change

Thanks you to Shit Fabric For the Awesome Logo!

Contribute

For Bugs and issues you may report them To:

  1. My Discord Sever
  2. Github's Issues

For Contribution and ideas

  1. My Discord Sever
  2. Github's PullRequest

Maintainers

Owner

Github: Zeniku
Discord: Zeniku/HeavyMachinery#1408

Contributors

  1. Shit Fabric
  2. Broad
    • Github: Broad
    • Discord: Ɓroad#0648

Building

Building for Desktop Testing

  1. Install JDK 16.
  2. Run gradlew jar [1].
  3. Your mod jar will be in the build/libs directory. Only use this version for testing on desktop. It will not work with Android. To build an Android-compatible version, you need the Android SDK. You can either let Github Actions handle this, or set it up yourself. See steps below.

Building through Github Actions

This repository is set up with Github Actions CI to automatically build the mod for you every commit. This requires a Github repository, for obvious reasons. To get a jar file that works for every platform, do the following:

  1. Make a Github repository with your mod name, and upload the contents of this repo to it. Perform any modifications necessary, then commit and push.
  2. Check the "Actions" tab on your repository page. Select the most recent commit in the list. If it completed successfully, there should be a download link under the "Artifacts" section.
  3. Click the download link (should be the name of your repo). This will download a zipped jar - not the jar file itself [2]! Unzip this file and import the jar contained within in Mindustry. This version should work both on Android and Desktop.

Building Locally

Building locally takes more time to set up, but shouldn't be a problem if you've done Android development before.

  1. Download the Android SDK, unzip it and set the ANDROID_HOME environment variable to its location.
  2. Make sure you have API level 30 installed, as well as any recent version of build tools (e.g. 30.0.1)
  3. Add a build-tools folder to your PATH. For example, if you have 30.0.1 installed, that would be $ANDROID_HOME/build-tools/30.0.1.
  4. Run gradlew deploy. If you did everything correctlly, this will create a jar file in the build/libs directory that can be run on both Android and desktop.

[1] On Linux/Mac it's ./gradlew, but if you're using Linux I assume you know how to run executables properly anyway.
[2]: Yes, I know this is stupid. It's a Github UI limitation - while the jar itself is uploaded unzipped, there is currently no way to download it as a single file.

heavymachineryjava's People

Contributors

yesc48 avatar zeniku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yesc48 kapzduke

heavymachineryjava's Issues

stuff broke ig

java.lang.IllegalArgumentException: no constructor set up for unit 'heavymachineryjava-aranea'
at mindustry.type.UnitType.init(UnitType.java:327)
at mindustry.core.ContentLoader.initialize(ContentLoader.java:118)
at mindustry.core.ContentLoader.init(ContentLoader.java:100)
at mindustry.ClientLauncher.lambda$setup$7(ClientLauncher.java:115)
at arc.assets.AssetManager$1.loadAsync(AssetManager.java:329)
at arc.assets.AssetLoadingTask.call(AssetLoadingTask.java:53)
at arc.assets.AssetLoadingTask.call(AssetLoadingTask.java:17)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

[E] Error for heavymachineryjava-aranea / heavymachineryjava-aranea:
java.lang.IllegalArgumentException: no constructor set up for unit 'heavymachineryjava-aranea'
at mindustry.type.UnitType.init(UnitType.java:327)
at mindustry.core.ContentLoader.initialize(ContentLoader.java:118)
at mindustry.core.ContentLoader.init(ContentLoader.java:100)
at mindustry.ClientLauncher.lambda$setup$7(ClientLauncher.java:115)
at arc.assets.AssetManager$1.loadAsync(AssetManager.java:329)
at arc.assets.AssetLoadingTask.call(AssetLoadingTask.java:53)
at arc.assets.AssetLoadingTask.call(AssetLoadingTask.java:17)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.