Jump to content

Issue when setting up IntellijRuns


Mastef_Chief

Recommended Posts

Apologies for necro'ing this, but I'm having the same issue, and have no idea how to make a launch configuration without screwing it up. It doesn't help that I've never known what gradle does. I've tried googling it but I'm having difficulty finding better explanation than "It's a build tool that uses tasks". How can I create a configuration that does what it needs to without screwing it up?

 

I've been following the directions on the forge documentation setup and it says specifically to use genIntellijRuns. Should that get updated to reflect your answer here?

Always, RESEARCH before asking a question. It's likely someone has already asked your question in the past. Filter your google searches with "site:www.minecraftforge.net/forum" to have a better chance finding your problem.

Link to comment
Share on other sites

I appear to have managed to get gradlew genIntellijRuns to work because I made the critical mistake of running it while I had intellij open. I found that critical piece of information here.

 

Quote

3. Once it's finished you must close IntelliJ and run the following command:

"gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)

 

I managed to make it work by exiting Intellij, opening command prompt and cd'ing to my project directory, and then running gradlew genIntellijRuns, rather than running it from my intellij project terminal. I hope this helps you Master_Chief.

Always, RESEARCH before asking a question. It's likely someone has already asked your question in the past. Filter your google searches with "site:www.minecraftforge.net/forum" to have a better chance finding your problem.

Link to comment
Share on other sites

22 minutes ago, DavidTriphon said:

I appear to have managed to get gradlew genIntellijRuns to work because I made the critical mistake of running it while I had intellij open. I found that critical piece of information here.

 

 

I managed to make it work by exiting Intellij, opening command prompt and cd'ing to my project directory, and then running gradlew genIntellijRuns, rather than running it from my intellij project terminal. I hope this helps you Master_Chief.

The main class should be GradleStart,

Working Directory is (mod folder)\run

Use classpath of modules should be (modname)_main

(There is only one _main module)

Link to comment
Share on other sites

16 hours ago, Big_Bad_E said:

The main class should be GradleStart,

Working Directory is (mod folder)\run

Use classpath of modules should be (modname)_main

(There is only one _main module)

I'm sorry, but I'm not sure what you're trying to say. Are you responding to my first post asking about how to make a gradle configuration? Are you saying that I need to create a class named GradleStart in my run folder? And what is a 'Use' classpath?

I should note that I have everything working now, I can build the example mod successfully and it works when I put it in a local test game, so I don't think I actually need to mess with Gradle anymore.

Edited by DavidTriphon

Always, RESEARCH before asking a question. It's likely someone has already asked your question in the past. Filter your google searches with "site:www.minecraftforge.net/forum" to have a better chance finding your problem.

Link to comment
Share on other sites

On 8/5/2018 at 2:55 PM, DavidTriphon said:

I'm sorry, but I'm not sure what you're trying to say. Are you responding to my first post asking about how to make a gradle configuration? Are you saying that I need to create a class named GradleStart in my run folder? And what is a 'Use' classpath?

I should note that I have everything working now, I can build the example mod successfully and it works when I put it in a local test game, so I don't think I actually need to mess with Gradle anymore.

Oh, good job getting it working.

I was talking about in the Edit Configurations menu, sorry I wasn't being clear.

Link to comment
Share on other sites

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.