Jump to content

*SOLVED* Problem with Installing Forge Gradle


mrRobertman

Recommended Posts

***EDIT2***  The problem is fixed.

***EDIT***  The problem has changed, please look at the 8th reply!

 

I have been having this problem with forge  and I can't seem to figure out how to fix it and work on modding.

I start out with opening terminal (This is on Mac btw), and I make sure it's location is the right place and I type this:

./gradlew setupDevWorkspace eclipse

 

It starts out okay, but then it fails at :deobfbinjar

 

sRWP1zo.png

 

Like the picture shows, it's caused by 'Java heap space', so I googled it, and found this post:

https://github.com/MinecraftForge/ForgeGradle/issues/48

I did the fix on that page, but it didn't work. I have tried adding more to the file, as someone has said on the page, but it still doesn't work! I have 16gb of ram and I've tried using 1, 2, 4, and 8 gb of ram but still nothing.

 

Maybe the fix is simple, but any help is appreciated.

Link to comment
Share on other sites

It's be up to how you set it up without logs and exact files we can't tell you what you're doing wrong.

There should be no need for more then the default ram when deobfusicating a jar, but meh your computer may have a non-standard default.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

There are always logs, look in the .gradle folder.

Also:

Looking for project properties from: /Users/duncanlang/Desktop/forge-1/gradle.properties

20:50:40.373 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader                                                                              ]                                                                              project property file does not exists. We continue!

It is telling me that you have not applied the fix as described in that issue.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

it's there, seince you're on a mac they try to hide anything with . as the first character.

You need to either turn off hiding or manually move to it.

The is odd...

Make sure you post the contents of your properties file

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

I'm not sure what fixed my old problem, but a new one has arisen. This is what I do to get to my problem:

 

I download forge. Extract file to folder.

I open the gradlew file in Textedit (the Mac version of notepad) and change this line:

DEFAULT_JVM_OPTS=“ “

to:

DEFAULT_JVM_OPTS="-Xmx1024m"

 

I open up Terminal (Mac version of command window (cmd))

I type this:

cd /User/MYUSERNAME/Desktop/forge-1 (this links it to the forge folder)

./gradlew setupDevWorkspace

./gradlew eclipse

 

It says: BUILD SUCCESSFUL both times.

 

I open up eclipse and direct it to the eclipse folder within the forge folder (which is named forge-1)

 

 

it opens all looks right, but then it says I have two errors, which are:

 

Project 'Minecraft' is missing required library: '/Users/MYUSERNAME/Desktop/forge-1/unresolved dependency -  forgeSrc 1.7.2-10.12.0.1047'

 

The project cannot be built until build path errors are resolved

 

 

 

I don't know what these mean, and why it show earlier that the build was successful, if it was not. All help is appreciated!

Link to comment
Share on other sites

I am having issues as well.

 

 

 

 

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:extractUserDev

:getAssetsIndex

:getAssets

:copyAssets

:extractNatives

:genSrgs UP-TO-DATE

:downloadMcpTools UP-TO-DATE

:downloadClient SKIPPED

:downloadServer SKIPPED

:mergeJars SKIPPED

:deobfuscateJar UP-TO-DATE

:decompile SKIPPED

:doFmlPatches SKIPPED

:addFmlSources SKIPPED

:remapJar SKIPPED

:doForgePatches SKIPPED

:addForgeJavadoc SKIPPED

:extractForgeSrc

:recompForgewarning: [options] bootstrap class path not set in conjunction with -source 1.6

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:208: error: cannot find symbol

        this.eyeHeight = this.getDefaultEyeHeight();

            ^

  symbol: variable eyeHeight

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:208: error: cannot find symbol

        this.eyeHeight = this.getDefaultEyeHeight();

                            ^

  symbol: method getDefaultEyeHeight()

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:1116: error: cannot find symbol

        return eyeHeight;

              ^

  symbol:  variable eyeHeight

  location: class EntityPlayer

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:1806: error: method getBedLocation in class EntityPlayer cannot be applied to given types;

        return getBedLocation(this.dimension);

              ^

  required: no arguments

  found: int

  reason: actual and formal argument lists differ in length

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:1812: error: method isSpawnForced in class EntityPlayer cannot be applied to given types;

        return isSpawnForced(this.dimension);

              ^

  required: no arguments

  found: int

  reason: actual and formal argument lists differ in length

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:1822: error: method setSpawnChunk in class EntityPlayer cannot be applied to given types;

            setSpawnChunk(par1ChunkCoordinates, par2, this.dimension);

            ^

  required: ChunkCoordinates,boolean

  found: ChunkCoordinates,boolean,int

  reason: actual and formal argument lists differ in length

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayer.java:2442: error: cannot find symbol

        ChatComponentText chatcomponenttext = new ChatComponentText(ScorePlayerTeam.formatPlayerName(this.getTeam(), this.getDisplayName()));

                                                                                                                        ^

  symbol: method getDisplayName()

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\item\Item.java:790: error: cannot find symbol

        double d1 = par2EntityPlayer.prevPosY + (par2EntityPlayer.posY - par2EntityPlayer.prevPosY) * (double)f + (double)(par1World.isRemote ? par2EntityPlayer.getEyeHeight() - par2EntityPlayer.getDefaultEyeHeight() : par2EntityPlayer.getEyeHeight()); // isRemote check to revert changes to ray trace position due to adding the eye height clientside and player yOffset differences

                                                                                                                                                                                                  ^

  symbol:  method getDefaultEyeHeight()

  location: variable par2EntityPlayer of type EntityPlayer

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\world\gen\structure\StructureVillagePieces.java:1942: error: cannot find symbol

                BiomeEvent.GetVillageBlockID event = new BiomeEvent.GetVillageBlockID(startPiece == null ? null : startPiece.biome, p_151558_1_, p_151558_2_);

                                                                                                                            ^

  symbol:  variable biome

  location: variable startPiece of type Start

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\world\gen\structure\StructureVillagePieces.java:1983: error: cannot find symbol

                BiomeEvent.GetVillageBlockMeta event = new BiomeEvent.GetVillageBlockMeta(startPiece == null ? null : startPiece.biome, p_151557_1_, p_151557_2_);

                                                                                                                                ^

  symbol:  variable biome

  location: variable startPiece of type Start

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\server\management\ServerConfigurationManager.java:437: error: method getBedLocation in class EntityPlayer cannot be applied to given types;

        ChunkCoordinates chunkcoordinates = par1EntityPlayerMP.getBedLocation(par2);

                                                              ^

  required: no arguments

  found: int

  reason: actual and formal argument lists differ in length

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\server\management\ServerConfigurationManager.java:438: error: method isSpawnForced in class EntityPlayer cannot be applied to given types;

        boolean flag1 = par1EntityPlayerMP.isSpawnForced(par2);

                                          ^

  required: no arguments

  found: int

  reason: actual and formal argument lists differ in length

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\entity\player\EntityPlayerMP.java:1176: error: method does not override or implement a method from a supertype

    @Override

    ^

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\cpw\mods\fml\common\network\internal\OpenGuiHandler.java:16: error: cannot find symbol

        player.openGui(msg.modId, msg.modGuiId, player.worldObj, msg.x, msg.y, msg.z);

              ^

  symbol:  method openGui(String,int,World,int,int,int)

  location: variable player of type EntityPlayer

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraft\client\entity\EntityOtherPlayerMP.java:174: error: method does not override or implement a method from a supertype

    @Override

    ^

C:\Users\Studio Apples\Desktop\Minecraft Mod\build\tmp\recompSrc\net\minecraftforge\common\util\FakePlayer.java:33: error: method does not override or implement a method from a supertype

    @Override public void openGui(Object mod, int modGuiId, World world, int x, int y, int z){}

    ^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

16 errors

1 warning

FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':recompForge'.

> Compilation failed; see the compiler error output for details.

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 1 mins 30.935 secs

 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

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.