Installer et configurer l'espace de travail de Forge
-
Je pense qu’il y a un problème avec ta version de java, du coup gradle a téléchargé la sienne de version et l’argument pour avoir plus de RAM n’est pas reconnu
-
Mais j’ai java 64 bits!! et je l’ai même réinstaller pour voir si ça marchait… mais ça a rien changer
-
Dans une console tapes
echo %JAVA_HOME%
Tu obtiens quoi ? -
Pas grand chose…
http://i.imgur.com/7mhC6ND.png -
Donc tu n’as pas suivis les pré-requis : https://www.minecraftforgefrance.fr/showthread.php?tid=557#java-win
-
Olala qu’es que je suis nul… Bon désoler d’avoir déranger pour quasiment rien. ^^ Et ça fait plaisirs d’avoir des réponses aussi rapide
-
Merci. Rien besoin de plus vraiment : merci xD.
-
:::
:deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':decompileMc'. > java.lang.NullPointerException (no error message) * Try: Run with –info or --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':decompi leMc'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecuteActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec uter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec ute(SkipUpToDateTaskExecuter.java:66) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut e(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu ter.execute(SkipEmptySourceFilesTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter .execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut e(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter .execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa skWorker.execute(DefaultTaskGraphExecuter.java:203) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa skWorker.execute(DefaultTaskGraphExecuter.java:185) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.processTask(AbstractTaskPlanExecutor.java:66) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.run(AbstractTaskPlanExecutor.java:50) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul tTaskPlanExecutor.java:25) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau ltTaskGraphExecuter.java:110) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask ExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:37) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExec uter.java:23) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecu ter.java:43) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx ecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:30) at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLa uncher.java:153) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul tBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul tBuildOperationExecutor.java:53) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default GradleLauncher.java:150) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra dleLauncher.java:32) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl eLauncher.java:98) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl eLauncher.java:92) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul tBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul tBuildOperationExecutor.java:63) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle Launcher.java:92) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun cher.java:83) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon troller.run(InProcessBuildActionExecuter.java:99) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe cuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA ctionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:48) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:30) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin uousBuildActionExecuter.java:81) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin uousBuildActionExecuter.java:46) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBu ild.java:52) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute( WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute (ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon. execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(Forw ardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(Forw ardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(For wardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute( DaemonHealthTracker.java:47) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClien t.java:60) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBu ild(EstablishBuildEnvironment.java:72) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(Hin tGCAfterBuild.java:41) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed( DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1. run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(Daemon StateCoordinator.java:237) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures. onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableE xecutorImpl.java:40) Caused by: java.lang.NullPointerException at org.jetbrains.java.decompiler.main.Fernflower.getClassEntryName(Fernf lower.java:76) at org.jetbrains.java.decompiler.struct.ContextUnit.save(ContextUnit.jav a:150) at org.jetbrains.java.decompiler.struct.StructContext.saveContext(Struct Context.java:72) at org.jetbrains.java.decompiler.main.Fernflower.decompileContext(Fernfl ower.java:62) at org.jetbrains.java.decompiler.main.decompiler.BaseDecompiler.decompil eContext(BaseDecompiler.java:41) at net.minecraftforge.gradle.tasks.ApplyFernFlowerTask.applyFernFlower(A pplyFernFlowerTask.java:101) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF actory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra ctTask.java:621) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra ctTask.java:604) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecuteAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex ecuteActions(ExecuteActionsTaskExecuter.java:61) ... 68 more
:::
-
J’ai besoin d’aide svp quand je met cette commande :
gradlew -Dorg.gradle.jvmargs=-Xmx2048M setupDecompWorkspace
l’invite de commande me met ce message d’erreur :
D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10>gradlew -Dorg.gradle.jvmargs=-Xmx2048M setupDecompWorkspace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html. FAILURE: Build failed with an exception. * Where: Build file 'D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10\build.gradle' line: 79 * What went wrong: Could not compile build file 'D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10\build.gradle'. > startup failed: build file 'D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10\build.gradle': 79: expecting '}', found '' @ line 79, column 1. 1 error * 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: 3.009 secs D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10>
Merci de votre réponse,
Freezer
-
build file 'D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10\build.gradle': 79: expecting '}', found '' @ line 79, column 1. 1 error
Il y a une erreur à la ligne 79 de ton fichier build.gradle.
PS: la prochaine fois utilise les balises code, ce sera plus clair -
@‘AymericRed’:
build file 'D:\BUREAU\FREEZER-regroupement de dossiers\Codage\Forge 1.7.10\build.gradle': 79: expecting '}', found '' @ line 79, column 1. 1 error
Il y a une erreur à la ligne 79 de ton fichier build.gradle.
PS: la prochaine fois utilise les balises code, ce sera plus clairJe ne comprend pas : je n’ai pas touché a la ligne 79
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 except the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } }
-
Mets plutôt le fichier en entier, avec la ligne 79 indiquée en commentaire car là on peut pas savoir laquelle c’est.
Enfin en tout cas bizarre si t’y a pas touché… -
-
Il manque une ‘}’ juste après la ligne 9, ce qui décale tous les blocs.
-
Voici ce que j’ai fait:
http://www.noelshack.com/2017-03-1484582302-capture1.png
Et voici le message d’erreur :
-
Pour un setup en 1.7.10 il faut utiliser forge gradle 1.2, pas le 2.1 qui est uniquement pour les versions récentes de mc. (à partir de la 1.8 si mes souvenirs sont bon).
La ligne mappings est aussi inutile, cette propriété n’existait pas en 1.7.10.Le tuto pour setup une workspace 1.7.10 c’est ici : https://www.minecraftforgefrance.fr/showthread.php?tid=566
-
Ok j’ai changé mais il dit que le plugin n’est pas bon :
http://www.noelshack.com/2017-03-1484584466-capture4.png
Voici ce que j’ai changé :
-
apply plugin: ‘net.minecraftforge.gradle.forge’
devrait être
apply plugin: ‘forge’ -
Ok merci ça marche maintenant
-
Pour info, cette méthode fonctionne également parfaitement en 1.11.x, si vous pensez que ça peut être utile de l’ajouter dans le titre