Controllable (Fabric)

Controllable (Fabric)

1M Downloads

Trying to hook into Controllerable API giving me A problem occurred evaluating root project 'ToggleMine'. useDepAts

shawn-peery opened this issue ยท 0 comments

commented

I have this sample mod https://github.com/shawn-peery/ToggleMine/tree/plain

Note make sure you're looking at the 'plain' branch and not the 'main' branch in the repo. I'm following the github instructions for Controllable:
https://github.com/MrCrayfish/Controllable?tab=readme-ov-file#developers

If you are a developer and want to add Controllable support to your own mod, you can simply do so by adding this to your build.gradle file.

repositories {
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/maven/"
}
}

dependencies {
compile 'controllable:Controllable:1.12.1:0.2.1'
}

minecraft {
useDepAts = true
}

You will then need to run gradlew setupDecompWorkspace again as Controllable uses an access transformer. Once completed, you can start implementing controller support to your mod.

I've the done the following. My build.gradle looks like this:
https://github.com/shawn-peery/ToggleMine/blob/plain/build.gradle

When I try to run the gradlew setupDecompWorkspace I get this:
[shawn@shawn-desktop ToggleMine]$ ./gradlew setupDecompWorkspace
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/8.1.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

Configure project :
Java: 17.0.11, JVM: 17.0.11+9 (N/A), Arch: amd64

FAILURE: Build failed with an exception.

Where:
Build file '/home/shawn/Documents/Programming/ToggleMine/build.gradle' line: 20

What went wrong:
A problem occurred evaluating root project 'ToggleMine'.
useDepAts

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org/

BUILD FAILED in 5s

I believe I've followed the instructions on the Github Repo but it seems to not building correctly.

Also I'm on arch linux

I attempted to basically follow this guide:
https://docs.minecraftforge.net/en/latest/gettingstarted/

And then follow the steps to integrate the Controllable API into my project.

I use to use maven back a few years back but I'm not familiar with Gradle syntax so I apologize if I misunderstand. But I believe I've followed the instructions from the readme correctly but I'm unable to launch the mod.

Additionally, if I remove the pieces of code from the GitHub read me and start the project, Minecraft successfully loads the mods which means I'm using the appropriate version of Mdk

Note: I'm trying to use 1.20.1

Thanks in advance.