Giter Site home page Giter Site logo

testing-utilities-java's Introduction

Logo

Commit Compiling Discord Discord Discord Stars

Just some small utilities for sandbox/modding

  • Team Changer: Change teams easilty. (Disabled in campaign)
  • Seppuku Button: Kill yourself. Press and hold to commit crawler. A setting to make the death instant can be found in game settings.
  • Clone Button: Instantly clones your player unit. Press and hold to mass clone. (Disabled in campaign)
  • Heal Button: Sets your player unit's hp to its max. (Disabled in campaign)
  • Invincibility Button: Sets your player unit's hp to infinity. (Disabled in campaign)
  • Sandbox/Survival Button: Toggles infinite resources. (Disabled in campaign)
  • Fill/Dump Core: Fill or empty your core of all items. Hold to swap. (Disabled in campaign)
  • Status Menu: Apply/clear status effects to yourself. (Disabled in campaign)
  • Weather Menu: Start/stop weather. (Disabled in campaign)
  • Unit Menu: Spawn units or transform into a different unit. Includes a wave selector. (Disabled in campaign)
  • Block Menu: Place blocks anywhere, even ones you're supposed to. (Disabled in campaign)
  • sk7725/whynotteleport: Alt + Click to teleport to your cursor. Sorry if your on mobile. (Disabled in campaign)
  • Enables console and increases zoom range.

Original repo here: MEEPofFaith/testing-utilities-js.

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 testing, 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.

Adding Dependencies

Please note that all dependencies on Mindustry, Arc or its submodules must be declared as compileOnly in Gradle. Never use implementation for core Mindustry or Arc dependencies.

  • implementation places the entire dependency in the jar, which is, in most mod dependencies, very undesirable. You do not want the entirety of the Mindustry API included with your mod.
  • compileOnly means that the dependency is only around at compile time, and not included in the jar.

Only use implementation if you want to package another Java library with your mod, and that library is not present in Mindustry already.


[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.

testing-utilities-java's People

Contributors

buthed010203 avatar coco-snow avatar lixiewulf avatar meepoffaith avatar missing-semester-ukr avatar mythril382 avatar nunting avatar prosta4okua avatar slotterleet avatar usmp-lancer avatar yesc48 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

testing-utilities-java's Issues

Bring back to build 135

Platform: Windows 11

Build: 135

Mod Version: Mod version in menus. If you download from actions, which action did you download from.

Issue: make a testing utilities for build 135

Steps to reproduce: testing utils is now supported for 136 and above it suck

Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain button is not working at ALL, usually the case in headless servers.

Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

i hate building (not ingame)

Platform: Android/Windows/Linux
N/A
Build: The build number under the title in the main menu. Required.
N/A
Mod Version: Mod version in menus. If you download from actions, which action did you download from.
N/A
Issue: Explain your issue in detail.
Building gives me "Could not resolve all files for configuration ':compileClasspath'"
Steps to reproduce: How you happened across the issue, and what exactly you did to make the bug happen.

  1. clone repo
  2. ./gradlew build
  3. profit
    Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain button is not working at ALL, usually the case in headless servers.
    N/A
    Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.
    N/A

Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

crash. probably just ram issue, but I still wanna send the crash log

Platform: Android

Build: release build 146

Mod Version: can't find it. all I can day is I just installed it from mindustry mod browser the same day I write this report (and also the crash)

Issue: what title says. I'm no coder, so I don't understand what's in the crash log xD

Steps to reproduce: install the mod from mod browser, restart, and crashed before the game even finished loading

Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain button is not working at ALL, usually the case in headless servers.
last_log.txt

Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.
crash_1711785297806.txt


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

does not play well with v133

Platform: android

Build: v133

Mod Version: v23

Issue: image

Steps to reproduce: tried to use on a server
Save file: The (zipped) save file you were playing on when the bug happened. Not required, but you will be asked for it in certain bugs.

Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain block is not working at ALL, usually the case in headless servers.

Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

aaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Platform: Android//Windows/Linux
Android
Build: The build number under the title in the main menu. Required.
The new one
Mod Version: Mod version in menus. If you download from actions, which action did you download from.
V27 mod browser
Issue: Explain your issue in detail.
If i reload the game it will crash and not load to the menu
Steps to reproduce: How you happened across the issue, and what exactly you did to make the bug happen.
Reload the game

Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain button is not working at ALL, usually the case in headless servers.

Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

Unable to unisntalk the mod completely

Platform:Android

Build:23017
Mod version: The latest, I think is Minor things 2 2

Issue: When I uninstall the mod, doesn't uninstall completely and stay and that functios are usable

Steps to reproduce: Uninstall the mod

Last log: I think isn't necessary but I don't know

Place an X (no spaces) between the brackets to confirm that you have read the line below.

Unable to use mod

Platform: Windows

Build: Bleeding Edge 22624

Mod Version: Latest release and latest action

Issue: Trying to download testing utilities from the mod browser gives an error, but downloads the mod anyway
Screenshot_4608
However due to an error that can be seen in last_log the mod doesnt actually appear in the mods menu after downloading it and doesnt work at all. This happens on both the latest release as of writing this and the latest action as of writing this

Steps to reproduce: Download testing utilities and try to play mindustry with it

Last log: last_log.txt

Crash logs: N/A


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

Suggestion : larger team selector

Hi MEEPofFaith,
I use your tool a lot for map creation. A great help, thanks.

To toggle quickly between sharded/yellow and crux/red team, you just have to short-click once on the team button : perfect.

But when you make a map with more than 1 enemy (outside PVP, you can use 4 enemy teams + derelict), it's not easy to quickly change your team (red, green, blue, purple, grey) for testing and building purposes : you have to press long to make the big list appear and then make your selection.

If you find it useful and doable, it would be nice to have a more complete quick selector like the on ein the editor, like on this montage :
Clipboard-3

The "long press" list could still appear on a long click.

Have a nice day.

UI Doesn't show in multiplayer

Platform: Android/Windows/Linux
Windows
Build: The build number under the title in the main menu. Required.
145.1
Mod Version: Mod version in menus. If you download from actions, which action did you download from.
v53
Issue: Explain your issue in detail.
Doesn't work in multiplayer, menu doesn't show. It only shows when playing maps made by me.
Steps to reproduce: How you happened across the issue, and what exactly you did to make the bug happen.

  1. Download mod from workshop
  2. Join server where you have admin privileges
    Last log: The last_log.txt from your game folder (.../Mindustry). REQUIRED if a certain button is not working at ALL, usually the case in headless servers.

Crash logs: Either crash reports from the crash folder, or the file you get when you go into Settings -> Game Data -> Export Crash logs. REQUIRED if you are reporting a crash.


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

Zooming out crashes the game

Platform: Windows

Build: 144.1

Mod Version: Latest release(not actions)

Issue: When i zoom out of vanilla mindustry limits, the game crashes

Steps to reproduce: Enter into a game and zoom out as much as you can. it crashes the game

Last log: check files

Crash logs: check files


crash-report-05_21_2023_19_16_53.txt

Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.
last_log.txt

Hide the UI ?

Hi,
I love your tool, but I wonder if it would be possible to hide the UI during campaign ? (these red disabled buttons are disturbing for my old brain ;-) ).
Either automatically, or even manually ? (we already have F8 for console, so maybe we could have F9 for hide/show "test utilities" ?)

Problem with increased zoom.

The increased zoom range messes with world proc cutscene zoom.

This problem also applies to PM, as it also increases zoom range.

Nothing appearing in terrain painter

Platform: Windows

Build: 145.1

Mod Version: 53 according to mod.hjson because neither the mod browser or the description say the version.

Issue: Nothing appears in the Terrain painter window. Attached a screenshot for proof. Reload doesn't fix.

Steps to reproduce: I don't know how to reproduce the bug.
image_2023-08-24_170536513


Place an X (no spaces) between the brackets to confirm that you have read the line below.


The original template is by Anuke, modified by sk7725, modified by MEEPofFaith.

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.