Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Building Baritone with 8u25 on Windows

christianstaib opened this issue ยท 11 comments

commented

I have been using Bartione for some months now and wanted to understand more how it works. I study computer science and we are doing Java most of the times, so i thought i know how this should works but im unable to build.

I try to work on the 1.15.2 branch but the setup.md workflow for building relies on folders and files that doesnt seem to be there. Even if i search the whole project, i dont find "setupDecompWorkspace", "genIntellijRuns".

Also Intelij shows some errors in the build.gradle file.

grafik

Im using jdk 8u25, should i use another jdk? Or can someone suggest a solution?

I have been programming in java for some years but never tried to build such a complex project. If i manage to build (and understand some stuff) i would like to try to commit something.

Chris

Final checklist

  • I know how to properly use check boxes
  • I have not used any OwO's or UwU's in this issue.
commented

you need to setupdecompworkspace

commented

I'm sorry to reopen. Getting closer: Im able to build baritone-api-1.5.3.jar, baritone-standalone-1.5.3.jar and baritone-unoptimized-1.5.3.jar. Also gradle runClient works. Now, how can i build the missing forge files?

Just for my understanding: setupdecompworkspace actually works, but it stills ends with "Task 'setupdecompworkspace' not found in root project 'baritone'". Is this my fault?

commented

Uhhh that means it didn't work. Try reimporting and restarting intellij

commented

Sadly the error is still there. After i import the gradle project for the first time, im supposed to execute setupdecompworkspace, but it isnt there.
grafik

Even a search for "setupdecompworkspace" in the baritone folder doesnt show anything

Again, i work on https://github.com/cabaletta/baritone/releases/tag/v1.5.3. Everything accept forge works.

I really appreciate your help and hope i get to build my forge .jars =)

commented

I forgot: building accept forge works, but the "Minecraft Client" application configuration is missing also.

commented

The application configuration is created automatically after genIntellijRuns and a reimport

commented

For both Intellij IDEA and Eclipse their Gradle integration will handle the rest of the initial workspace setup, this includes downloading packages from Mojang, MinecraftForge, and a few other software sharing sites. * For most, if not all, changes to the build.gradle file to take effect Gradle will need to be invoked to re-evaluate the project, this can be done through Refresh buttons in the Gradle panels of both the previously mentioned IDEs.

from forge wiki

Try importing the build.gradle, not the folder, when making a new project

commented

I tried the whole process again. Import build.gradle as project:
grafik

grafik

grafik

no setupdecompworkspace:
grafik

If i try setupdecompworkspace:
grafik

nevertheless, runClient works. Naive question: is forge in https://github.com/cabaletta/baritone/releases/tag/v1.5.3 really integreated?

commented

I have no idea then

commented

Ok so CCing @Dominikaaaa and @chrishaxalot to close this

In ForgeGradle 3 (Used in Forge 1.13+ and using a modified version of this for Baritone 1.13+), setupDecompWorkspace is not in any case used anymore, as it's performed automatically during a refresh/resync.

The original errors were likely due to it not being fully imported, so that mostly needed a refresh.
If the docs are still referencing setupDecompWorkspace, then those need updating for 1.13+

commented

Oh I see. Thank you for explaining :3