Installer et configurer l'espace de travail de Forge
-
Tu as Java 32 bits ?
Il faut obligatoirement Java 64 bits maintenant, puisque Java 32 bits est limité à 1,5 go de ram. -
Pour le coup, avec cette commande, ça à marché pour moi avec Java 32 bits (ça à mis plus de temps ceci dit).
gradlew -Dorg.gradle.jvmargs=-Xmx1024M setupDecompWorkspace
-
Il me semblait qu’avec 1 go ça ne passait pas.
Dans ce cas. Si ça passe avec 1 go ça devrait passer avec 1,5, donc autant utiliser le maximum de Java 32 bits :
gradlew -Dorg.gradle.jvmargs=-Xmx1536M setupDecompWorkspace -
Bonjour / Bonsoir ! J’ai une erreur diabolique et très méchante ! Le javaNullPointerException ! Après des recherches et des recherche je n’ai point trouvé une solution! Je pense que c’est du build.gradle mais je ne sais pas comment la réglée !
Mon :::// For those who want the bleeding edge buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' /* // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ version = "1.0" group= "net.superecraft.app" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "ModUtile" minecraft { version = "1.10-12.18.0.2000-1.10.0" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20160518" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info… // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } 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' } }
:::
Merci d’avence de ton aide ! -
Il faut éviter les espaces dans le chemin vers le dossier, ici “charbel saade”. C’est ça il me semble
-
Il y a une erreur à la ligne 36 de ton fichier build.gradle.
Tu peux envoyer le fichier ? -
Par fichier si tu sous-entend le ficher build.gradle je l’ai envoyer dans le spoiler dans l’ancien message
[color=#333333BrokenSwing: Non, je ne pense pas car, la 1.7.10 marche a merveille.] -
Bizarre, relance la commande avec –stacktrace
-
Fais un setup de la 1.10.2 au lieu de la 1.10.0 et utilisés des mappings plus récentes. (Je ne sais pas comment j’ai fais pour ne pas voir que tu avais déjà passés le fichier build.gradle X))
-
SCAREX : J’ai fais la commande que tu ma dit de faire mais toujours la même erreur !
-
Je vais essaye de suite ! Mais une questions comment changé de mappings si tu peux me le dire s’il te plaît. :X
scarex : J’ai essaye de faire se que tu as dit mais ! La même erreur persiste.
-
Dans ton build.gradle dans le bloc minecraft tu as une variable appelée mappings.
Ce que je t’ai dit de faire ne pouvais pas résoudre le problème, le –stacktrace permet juste d’afficher le rapport complet
-
Tu ne m’aide pas trop là je sais ou se trouve la mappings ! Mais je ne sais pas quoi écrire dedans…
-
Mets “snapshot_20160827” (c’est la date d’aujourd’hui, comme tu utilises la dernière version)
-
Non, toujours pas. l’erreur persiste !
-
après avoir changé tu as refait un setup ?
-
Quand j’ai changé la mappings j’ai refais la commande gradlew task (Car si celle ci ne marche pas les autres aussi ne marcherons pas), àprès la meme erreur est survenue comme si je n’avais rien fais !
Robin : J’ai testé en 1.10.2, il y a la même erreur a la ligne 41 du build.gradle, qui est aussi la mappings. -
hein ?
-
Lances
gradlew setupDecompWorkspace –stacktrace
comme l’a dit SCAREX. -
Je l’ai fais, ça ma donné :
C:\Users\charbel saade\Desktop\forge-1.10-12.18.0.2000-1.10.0-mdk>gradlew setupD ecompWorkspace –stacktrace Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 50 0 FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\charbel saade\Desktop\forge-1.10-12.18.0.2000-1.10.0-mdk\build.gradle' line: 36 * What went wrong: A problem occurred evaluating root project 'forge-1.10-12.18.0.2000-1.10.0-mdk'. > java.lang.NullPointerException (no error message) * Try: Run with --info or --debug option to get more log output. * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'forge-1.10-12.18.0.2000-1.10.0-mdk'. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93) at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$1.run(DefaultScriptPluginFactory.java:148) at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:72) at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:153) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38) at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25) at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:491) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:89) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35) at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:126) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:123) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:33) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:100) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:94) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:94) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47) at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170) 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:61) Caused by: java.lang.NullPointerException at net.minecraftforge.gradle.common.BaseExtension.checkMappings(BaseExtension.java:260) at net.minecraftforge.gradle.common.BaseExtension.setMappings(BaseExtension.java:239) at net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension_Decorated.setMappings(Unknown Source) at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.setProperty(BeanDynamicObject.java:194) at org.gradle.api.internal.BeanDynamicObject.setProperty(BeanDynamicObject.java:111) at org.gradle.api.internal.CompositeDynamicObject.setProperty(CompositeDynamicObject.java:104) at net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension_Decorated.setProperty(Unknown Source) at build_1bnx6j1yvrh04omfoapprcz41$_run_closure1.doCall(C:\Users\charbel saade\Desktop\forge-1.10-12.18.0.2000-1.10.0-mdk\build.gradle:36) at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67) at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145) at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69) at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:207) at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:150) at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79) at build_1bnx6j1yvrh04omfoapprcz41.run(C:\Users\charbel saade\Desktop\forge-1.10-12.18.0.2000-1.10.0-mdk\build.gradle:27) at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91) ... 50 more
Voici l’erreur! Je vous dérange beaucoup ! Merci, pour les conseils que vous m’avez dit pour le moment ! Meme si encore ça marche toujours pas.