Jump to content

[SOLVED][1.7.10]-10.13.0.1152 setupDecomWorkspace errors


bomber055

Recommended Posts

I ran "gradlew setupDevWorkspace" and "gradlew eclipse" which worked just fine, and I'm able to start up eclipse and access my source code and see various errors in it. The issue I'm having is I can't see the Minecraft source code, so I tried running both "gradlew setupDecomWorkspace" and "setupDecompWorkspace --refresh-dependencies" and both give me the following errors:

 

 

 

C:\ZyinsHUD\forge>gradlew.bat setupDecompWorkspace --refresh-dependencies

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

Powered By MCP:

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

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn

MCP Data version : unknown

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

:extractUserDev UP-TO-DATE

:getAssetsIndex

:getAssets

:copyAssets

:extractNatives UP-TO-DATE

:genSrgs SKIPPED

:downloadMcpTools UP-TO-DATE

:downloadClient SKIPPED

:downloadServer SKIPPED

:mergeJars SKIPPED

:deobfuscateJar SKIPPED

:decompile SKIPPED

:processSources SKIPPED

:remapJar SKIPPED

:extractMinecraftSrc UP-TO-DATE

:recompMinecraft

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

C:\ZyinsHUD\forge\build\tmp\recompSrc\net\minecraft\client\gui\GuiScreenConfigur

eWorld.java:210: error: no suitable constructor found for GuiYesNo(GuiScreenConf

igureWorld,String,String,int)

            GuiYesNo guiyesno = new GuiYesNo(this, "Question", I18n.format("mco.

configure.world.uninvite.question", new Object[0]) + " \'" + this.field_146894_u

+ "\'", 3);

                                ^

    constructor GuiYesNo.GuiYesNo(GuiYesNoCallback,String,String,String,String,i

nt) is not applicable

      (actual and formal argument lists differ in length)

    constructor GuiYesNo.GuiYesNo(GuiYesNoCallback,String,String,int) is not app

licable

      (actual argument GuiScreenConfigureWorld cannot be converted to GuiYesNoCa

llback by method invocation conversion)

C:\ZyinsHUD\forge\build\tmp\recompSrc\net\minecraft\util\Vec3Pool.java:40: error

: constructor Vec3 in class Vec3 cannot be applied to given types;

            return new Vec3(this, par1, par3, par5);

                  ^

  required: double,double,double

  found: Vec3Pool,double,double,double

  reason: actual and formal argument lists differ in length

C:\ZyinsHUD\forge\build\tmp\recompSrc\net\minecraft\util\Vec3Pool.java:48: error

: constructor Vec3 in class Vec3 cannot be applied to given types;

                vec3 = new Vec3(this, par1, par3, par5);

                      ^

  required: double,double,double

  found: Vec3Pool,double,double,double

  reason: actual and formal argument lists differ in length

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.

3 errors

1 warning

:recompMinecraft FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':recompMinecraft'.

> 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

 

 

 

In my build.gradle I changed

 

classpath 'net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT'

to

classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

 

because of another forum post I saw, and added

 

inputs.property "version", project.version

inputs.property "mcversion", project.minecraft.version

 

to processResources { }.

 

I also changed the line in Client.watch to:

 

<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="--version 1.7 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --username=ForgeDevName --accessToken FML --userProperties={}"/>

 

My build.gradle:

 

 

buildscript {

    repositories {

        mavenCentral()

        maven {

            name = "forge"

            url = "http://files.minecraftforge.net/maven"

        }

        maven {

            name = "sonatype"

            url = "https://oss.sonatype.org/content/repositories/snapshots/"

        }

    }

    dependencies {

        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

    }

}

 

apply plugin: 'forge'

 

archivesBaseName = "ZyinsHUD"

version = "(1.7.10)-v.1.3.3"

group= "com.zyin.zyinhud" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

 

minecraft {

    version = "1.7.10-10.13.0.1152"

    assetDir = "eclipse/assets"

}

processResources

{

// this will ensure that this task is redone when the versions change.

inputs.property "version", project.version

inputs.property "mcversion", project.minecraft.version

 

    // replace stuff in mcmod.info, nothing else

    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

               

        // replace version and mcversion

        expand 'version':project.version, 'mcversion':project.minecraft.version

    }

       

    // copy everything else, thats not the mcmod.info

    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'

    }

}

 

 

Link to comment
Share on other sites

That fixed the compile errors, but now I can't find the Minecraft source code in the Reference Libraries section in Eclipse. Did it move somewhere? Am I missing another step besides running these commands?

 

gradlew clean

gradlew setupDevWorkspace

gradlew eclipse

gradlew setupDecompWorkspace --refresh-dependencies

 

EDIT: I ran gradlew eclipse and gradlew setupDecompWorkspace again and I see the source code now. Thanks for the help diesieben07.

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.