Enator18 Posted July 6, 2020 Posted July 6, 2020 So I just posted a thread about having trouble with my 1.12.2 forge setup and the post was closed bc it is aparently not supported on this forum. The old post can be found here: I now tried the same thing again with 1.15 and the same thing happened, now can you help me? Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 It won't let me import a file as a gradle project, only a directory Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 I did this, and yet there is no forge api Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 As you can see, there is no referenced libraries, and i can't do any forge stuff Quote
Ugdhar Posted July 6, 2020 Posted July 6, 2020 On 7/6/2020 at 12:51 PM, Enator18 said: As you can see, there is no referenced libraries, and i can't do any forge stuff Expand I would start with the MDK, because it looks like you haven't got a mods.toml in your resources anywhere. You are also not using any sort of useful package name. Using the MDK as it comes will start you out with a skeleton project you can edit to your needs. Once you've extracted the appropriate MDK files into a folder, import that folder into eclipse as an existing gradle project. It will do it's thing (if it doesn't, from the cmd prompt in your project folder, try gradlew --stop then refresh gradle projects) When that finishes, run the genEclipseRuns gradle task. Then you'll be ready to rock. Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 I did exactly as you detailed, and I got a slightly better result but still didn't work. I went into the examplemod and it didn't recognize any of the forge stuff, but then i did ctrl+shift+o and it imported everything, but then didn't recognize the imports that it just created. Quote
Ugdhar Posted July 6, 2020 Posted July 6, 2020 The gradle project is still not setup, if you right-click on the project, select Gradle -> Refresh Gradle Project it should fix that. If it errors, try the gradlew --stop from the commandline in your project folder. If it gives errors after that, please post them so we can see what's up. Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 It gives no errors when doing these but nothing changed. Quote
sciwhiz12 Posted July 6, 2020 Posted July 6, 2020 Please remove the project from Eclipse, then run `gradlew eclipse genEclipseRuns` in your project's directory, then re-import the project into Eclipse. Quote
Ugdhar Posted July 6, 2020 Posted July 6, 2020 On 7/6/2020 at 1:55 PM, Enator18 said: It gives no errors when doing these but nothing changed. Expand Can you run the eclipse gradle task? Quote
Enator18 Posted July 6, 2020 Author Posted July 6, 2020 i removed the gradlew eclipse and gradlew genEclipseRuns and readded the project and nothing got fixed Quote
vemerion Posted July 6, 2020 Posted July 6, 2020 (edited) Did you run the eclipse task or only genEclipseRuns? To be honest, if I were you I would redo the project and follow a tutorial such as this to the letter, and see if that works. Edited July 6, 2020 by vemerion Quote
Enator18 Posted July 10, 2020 Author Posted July 10, 2020 I think i found the source of the problem. I went into the build path configuration and found this, how do i fix. This is after doing gradlew genEclipseRuns and gradlew eclipse then importing it as a java project (i have tried it as a gradle project and i have the same problem.) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.