Sources de forge
-
Salut, j’ai se matin essayer de setup forge avec gradlew donc setupFML et je tombe sur cette erreur une idée ?
C:\Users\Mosca421\Desktop\FML-1.7.10>gradlew setupFML **************************** Powered By MCP: http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : 9.05 **************************** :extractWorkspace UP-TO-DATE :getAssetsIndex :getAssets :copyAssets :downloadMcpTools SKIPPED :extractMcpData UP-TO-DATE :genSrgs UP-TO-DATE :downloadClient SKIPPED :downloadServer SKIPPED :updateJson :mergeJars SKIPPED :deobfuscateJar SKIPPED :decompile SKIPPED :remapCleanJar UP-TO-DATE :extractMcResources UP-TO-DATE :copyStart UP-TO-DATE :extractMcSource UP-TO-DATE :downloadNatives-jinput-platform SKIPPED :downloadNatives-lwjgl-platform SKIPPED :downloadNatives-twitch-external-platform SKIPPED :downloadNatives-twitch-platform SKIPPED :extractNativesNew UP-TO-DATE :extractNatives UP-TO-DATE :generateProjectClean UP-TO-DATE :createVersionProperties FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':createVersionProperties'. > 1 * 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: 8.785 secs
-
“Run with –stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.” Reposte le log après avoir lancé avec --stacktrace.
Et ce n’est pas setupFML mais setupDecompWorkspace pour setup forge avec gradle. -
C’est les sources de FML comprenant mcp+ forge je vais compiler mon propre forge en gros du gros
C:\Users\Mosca421\Desktop\FML-1.7.10>gradlew setupFML –stacktrace **************************** Powered By MCP: http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : 9.05 **************************** :extractWorkspace UP-TO-DATE :getAssetsIndex :getAssets :copyAssets :downloadMcpTools SKIPPED :extractMcpData UP-TO-DATE :genSrgs UP-TO-DATE :downloadClient SKIPPED :downloadServer SKIPPED :updateJson :mergeJars SKIPPED :deobfuscateJar SKIPPED :decompile SKIPPED :remapCleanJar UP-TO-DATE :extractMcResources UP-TO-DATE :copyStart UP-TO-DATE :extractMcSource UP-TO-DATE :downloadNatives-jinput-platform SKIPPED :downloadNatives-lwjgl-platform SKIPPED :downloadNatives-twitch-external-platform SKIPPED :downloadNatives-twitch-platform SKIPPED :extractNativesNew UP-TO-DATE :extractNatives UP-TO-DATE :generateProjectClean UP-TO-DATE :createVersionProperties FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':createVersionProperties'. > 1 * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':createVersionProperties'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:81) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:39) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at net.minecraftforge.gradle.tasks.dev.FMLVersionPropTask.doTask(FMLVersionPropTask.java:36) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:570) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:553) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 47 more BUILD FAILED Total time: 9.576 secs
-
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at net.minecraftforge.gradle.tasks.dev.FMLVersionPropTask.doTask(FMLVersionPropTask.java:36)
Il y a visiblement un problème avec la version de FML. Par contre je ne serai pas dire lequel. -
euh ça m’avance pas c’est ça qui est bon rt c’est quand même bizarre ça
J’ai cette classe ai cas ou ```java
[size=mediumpackage] net.minecraftforge.gradle.tasks.dev;[size=medium import] groovy.lang.Closure;
[size=medium import] java.io.File;
[size=medium import] java.io.IOException;
[size=medium import] net.minecraftforge.gradle.delayed.DelayedFile;
[size=medium import] net.minecraftforge.gradle.delayed.DelayedString;
[size=mediumimport] org.gradle.api.DefaultTask;
[size=mediumimport] org.gradle.api.tasks.OutputFile;
%(#000000)[size=medium][[color=#676767]13]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
import org.gradle.api.tasks.TaskAction;
%(#000000)[size=medium][[color=#3366bb]]
import com.google.common.base.Charsets;
[size=medium
import] com.google.common.io.Files;
[size=medium]
%(#000000)[size=medium][[color=#3366bb]]
public class [size=large]FMLVersionPropTask extends DefaultTask
%(#000000)[size=medium]
[[color=#676767]19]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
{
%(#000000)[size=medium]
[[color=#676767]20]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
@OutputFile
%(#000000)[size=medium]
[[color=#676767]21]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
DelayedFile outputFile;
%(#000000)[size=medium]
[[color=#676767]22]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]23]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
private Closure<String> version;
%(#000000)[size=medium]
[[color=#676767]24]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]25]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
@TaskAction
%(#000000)[size=medium]
[[color=#676767]26]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
public void [size=large]doTask() throws IOException
%(#000000)[size=medium]
[[color=#676767]27]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
{
%(#000000)[size=medium]
[[color=#676767]28]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
String fullVersion;
%(#000000)[size=medium]
[[color=#676767]29]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
if (this.version == null)
%(#000000)[size=medium]
[[color=#676767]30]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
fullVersion = (String)getProject().getVersion();
%(#000000)[size=medium]
[[color=#676767]31]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
else
%(#000000)[size=medium]
[[color=#676767]32]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
fullVersion = this.version.call();
%(#000000)[size=medium]
[[color=#676767]33]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]34]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
String mcVersion = new DelayedString(getProject(), “{MC_VERSION}”).call();
%(#000000)[size=medium]
[[color=#676767]35]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
fullVersion = fullVersion.substring(mcVersion.length());
%(#000000)[size=medium]
[[color=#676767]36]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
String[] v =fullVersion.split(“-”)[1].split(“\.”);
%(#000000)[size=medium]
[[color=#676767]37]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
String data =
%(#000000)[size=medium]
[[color=#676767]38]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.major.number=” + v[0] + “\n” +
%(#000000)[size=medium]
[[color=#676767]39]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.minor.number=” + v[1] + “\n” +
%(#000000)[size=medium]
[[color=#676767]40]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.revision.number=” + v[2] + “\n” +
%(#000000)[size=medium]
[[color=#676767]41]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.build.number=” + v[3] + “\n” +
%(#000000)[size=medium]
[[color=#676767]42]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.mcversion=” + new DelayedString(getProject(), “{MC_VERSION}”).call() + “\n” +
%(#000000)[size=medium]
[[color=#676767]43]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
“fmlbuild.mcpversion=” + new DelayedString(getProject(), “{MCP_VERSION}”).call() + “\n”;
%(#000000)[size=medium]
[[color=#676767]44]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
//fmlbuild.deobfuscation.hash – Not actually used anywhere
%(#000000)[size=medium]
[[color=#676767]45]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
Files.write(data.getBytes(Charsets.UTF_8), getOutputFile());
%(#000000)[size=medium]
[[color=#676767]46]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
}
%(#000000)[size=medium]
[[color=#676767]47]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]48]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
public void [size=large]setOutputFile(DelayedFile output)
%(#000000)[size=medium]
[[color=#676767]49]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
{
%(#000000)[size=medium]
[[color=#676767]50]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
this.outputFile = output;
%(#000000)[size=medium]
[[color=#676767]51]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
}
%(#000000)[size=medium]
[[color=#676767]52]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]53]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
public File [size=large]getOutputFile()
%(#000000)[size=medium]
[[color=#676767]54]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
{
%(#000000)[size=medium]
[[color=#676767]55]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
return outputFile.call();
%(#000000)[size=medium]
[[color=#676767]56]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
}
%(#000000)[size=medium]
[[color=#676767]57]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]%(#000000)[size=medium]
[[color=#676767]58]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
public void [size=large]setVersion(Closure<String> value)
%(#000000)[size=medium]
[[color=#676767]59]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
{
%(#000000)[size=medium]
[[color=#676767]60]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
this.version = value;
%(#000000)[size=medium]
[[color=#676767]61]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
}
%(#000000)[size=medium]
[[color=#676767]62]
[img=16x16http://grepcode.com/static/app/images/1x1.gif]
} -
version = getVersionFromGit(getProject())
Je pense que ça viens de la car ne marchant pas j’ai remplacer getVersionFromGit(getProject()) par ‘1.7.10’
et quand je change 1.7.10 par 1.7.2 l’erreur change -
Pourquoi tu t’embête à faire un setup de fml seul ?
Fais directement un setup de forge :D:\Documents\Git>git clone git@github.com:MinecraftForge/MinecraftForge.git Cloning into 'MinecraftForge'… remote: Counting objects: 73777, done. remote: Compressing objects: 100% (3/3), done. remote: Total 73777 (delta 0), reused 0 (delta 0), pack-reused 73774 Receiving objects: 100% (73777/73777), 85.83 MiB | 1.67 MiB/s, done. Resolving deltas: 100% (34487/34487), done. Checking connectivity... done. Checking out files: 100% (1123/1123), done. D:\Documents\Git>cd MinecraftForge D:\Documents\Git\MinecraftForge>git checkout 1.7.10 Branch 1.7.10 set up to track remote branch 1.7.10 from origin. Switched to a new branch '1.7.10' D:\Documents\Git\MinecraftForge>gradlew setupForge **************************** Powered By MCP: http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : 9.05 **************************** :extractWorkspace :getAssetsIndex :getAssets :copyAssets :extractMcpData :genSrgs :compressDeobfData :createVersionPropertiesFML :downloadMcpTools SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :updateJson :mergeJars SKIPPED :deobfuscateJar Applying SpecialSource... Applying Exceptor... :decompile :fmlPatchJar Injecting fml files Applying fml patches :remapCleanJar :extractMcResources :extractMcSource :downloadNatives-jinput-platform :downloadNatives-lwjgl-platform :downloadNatives-twitch-external-platform :downloadNatives-twitch-platform :extractNativesNew :extractNatives :makeStart :generateProjectClean :generateProjectForge :generateProjects :eclipseClean :Clean:eclipseProject :Clean:eclipseJdt :Clean:eclipseClasspath Download http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.pom Download http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5.jar Download http://repo1.maven.org/maven2/junit/junit/4.5/junit-4.5-sources.jar :Clean:eclipse :forgePatchJar Applying forge patches :remapSourcesJar :extractForgeResources :extractForgeSources :eclipseForge :Forge:eclipseJdt :Forge:eclipseProject :Forge:eclipseClasspath :Forge:eclipse :eclipse :setupForge BUILD SUCCESSFUL Total time: 8 mins 39.746 secs D:\Documents\Git\MinecraftForge>
-
Merci pour l’info car j’aime pas utilisé github
-
En revanche tu ne pourras pas compiler ta propre version de forge : les sources sont protégées. De plus je ne vois pas l’utilité de le faire
-
Bah c’est drole a faire (j’ai réussi a refaire la border 1.8 en 1.7.10 après => Integrer sur thermos plus dur
-
Pourquoi ne pas utiliser un mod ?
-
Car robin m’avait dit que jfghsdfds désoler si j’écorche le pseudo =p ou kevin avait essayer et que c’etait trop chaud donc je passe par le code source
-
@‘SCAREX’:
En revanche tu ne pourras pas compiler ta propre version de forge : les sources sont protégées. De plus je ne vois pas l’utilité de le faire
Je ne vois pas ce qui l’empêche de distribuer une version modifié de forge : https://github.com/MinecraftForge/MinecraftForge/blob/1.7.10/MinecraftForge-License.txt#L37-L70