c0508383 / Backhand

MIT License
16 stars 3 forks source link

Is there any way to compile Backhand? Says something's missing a tools.jar. #50

Closed MagmaBro123 closed 1 year ago

makamys commented 1 year ago

./gradlew setupDecompWorkspace followed by ./gradlew build works for me.

Make sure you're on the dev branch and not the master branch I guess.

MagmaBro123 commented 1 year ago

I'm not using any fancy software or anything. Just cloned the dev branch to my desktop into a folder, opened Cmd.exe, and ran gradlew build. Both of these fail.

Java 8 is installed as well.

This is pretty much why https://github.com/c0508383/Backhand/issues/46 would be useful, since I have no clue how to compile mods. Most of the time they fail with gibberish errors that Idk how to read.

image

c0508383 commented 1 year ago

Everything's working for me too, follow these steps:

  1. Download and install Github Desktop.
  2. Clone with Github Desktop by clicking the green Code button, then the Open With Github Desktop button.
  3. Open the project in IntelliJ by double-clicking the build.gradle file inside the new folder cloned with Github Desktop (has a g inside a green circle). Some stuff should start downloading, and text should appear in some console.
  4. After everything from the build.gradle finishes, you should notice it can't find forge 1.7.10 in red letters (This is good, you're on the right track!). Go over to the Gradle tab on the right. Under tasks -> forgeGradle, double click setupDecompWorkspace. This should start a gradle task. Wait for it to finish.
  5. Click the refresh button in the Gradle tab. The mod should now be built.