Jump to content

Recommended Posts

Posted

I've scoured the forums, I just know I'm doing something glaringly obvious... My last post was a facepalm but this has me seriously scratching my head. I've followed all the steps, both custom builds of my own and default...I've messed with the gradle build... I even did a clean install of windows AND linux with all defaults and still come up with the same error. It's like it's creating the mod jar file twice. This is with everything launched with factory defaults. I just extract the archive, and run the gradle build with intellij and it spits this out.

 

 

  Reveal hidden contents

 

 

I've been at this for a week, I've had some small successes but it is impossible for me to code seriously without actually being able to accomplish anything. Does anyone else have any tips? I can't be the only one this happens to when it's reproducible on a clean install.

Posted

Hi

 

I'm not sure what is causing that, I've never seen it.

 

However my setup is slightly different and it seems to work, so you might give it a try on a separate install.

 

1) extract zip to a folder

2) run gradlew setupDecompWorkspace from the command line

3) run gradlew idea from the command line

4) Open IntelliJ, then open the project file (*.ipr).  When it asks if you want to import the gradle file, say no for now.

5) Add this line to the very end of the build.gradle file:

sourceSets { main { output.resourcesDir = output.classesDir } }

6) Use Run-> Debug... --> Minecraft Client

 

Alternatively, if you run the genIntelliJRuns gradle task, that might fix your existing install - perhaps.  It adds the Run->Debug..->Minecraft Client task.

 

-TGG

Posted

This... worked....

 

I already have the addition to the gradle.build as what first started derailing my train was the issues with resources and intellij... I assumed running those commands inside of intellij would be sufficient.... I followed the one guys tutorial in that section, so I don't know... I'll dig a bit and see if this is a proper bug... I'm royally confuzzled... if I want to send my projects to git, will the gradle commands work? or what would be the proper way to bring gradle back into the project with minimal risk? I'm a little nervous cause it feels temperamental at the moment. Thanks for your help!

Posted

Hi

 

To be honest I don't know enough about how it's supposed to work, I did manage to do it and it worked after a minor fix, but IMHO it doesn't really bring much advantage, provided you're happy to execute gradlew build from the command line when you want to publish your project to a jar.

 

If you do want to try importing the build.gradle, just back up the entire folder first.  Then say "yes" to "unlinked gradle project", and if necessary run genIntelliJRuns.  From memory that did it for me.

 

For git and github I use the inbuilt commands in IntelliJ and leave the gradle commands well alone.

 

-TGG

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.