Jump to content

[SOLVED] How to compile individual projects in a workspace


Reygok

Recommended Posts

Hello, I followed the advanced setup from BedrockMiner (http://bedrockminer.jimdo.com/modding-tutorials/set-up-minecraft-forge/set-up-advanced-setup/) so forge is a standalone project in Eclipse, and my mod is is another one. But I don't know how to compile now. I tried to run gradle build in severel folders, but I always only get a .jar with the MEFA-INF folder inside.

 

Where to run the build command, and does the build file need more changes than when everything is in one place?

Link to comment
Share on other sites

Hm yeah, makes sense. But then I'd have to extract forge into a new folder and run setupDecompWorkspace everytime I make a new mod no? Or did I get that wrong "With their own forge"?

 

And what are the disadvatages of my/BedrockMiners method? Because I got it to work now that way, by adding the src path to the build.gradle file.

Link to comment
Share on other sites

I'd also suggest that even the goal of compiling multiple projects at once with shared gradle file might be mis-advised. Because the Forge library gets updated frequently, as do SRG name mappings, once you have several legacy projects you'd have the problem of having to update all of them before compiling any of them.

 

Sure you have to do a separate build per project, but that is only a 10 second activity to type in the command and another 10 seconds to drag the resulting JAR someplace.

 

In my experience, I only actually build the mod infrequently -- maybe every couple of weeks. Maybe you don't know that you don't have to build the mod explicitly to test your mod during development; instead you just need to make a Run Configuration in Eclipse and run it directly from Eclipse.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

I only compile one project at a time. But perhaps there are things I don't know, since I don't really understand what you are saying at the beginning... But with what diesieben07 said before, is it really true that a forge update automatically updates my local forge version? That seems futuristic.

 

And I still do a seperate build per project, thats not my problem.

 

And yes, I do know that I don't have to build the mod to test it ;) I only build it when I'm done with changes and want to release an update.

 

But I'll check on diesieben07's method.

Link to comment
Share on other sites

Yeah well, I know that's not futuristic at all haha ^^ But then I don't see the problem. And, to clarify, I don't have Forge standalone in a project. I just have the default project you get when you setup the forge workspace, and then I created a new project, and I include the default one in it.

Link to comment
Share on other sites

Okay, I did it now like you proposed. Even though it is a tiny bit more work everytime I start a new mod, but that doesn't happen very often anyway ;)

The other method really didn't make sense, but these are things which are never explained in tutorials, so how could I have known that?

 

Anyway, thanks for the clarifications :)

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.