Installer et configurer l'espace de travail de Forge
-
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

-
Bonjour j’ai suivi ce tuto mais lors de la commande gradlew setupDecompWorkspace j’obtiens le rapport en pièce jointe

pouvez vous m’aidez ?
Voici le build.gradle :
buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.forge' //Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup. version = "1.10.2" group= "fr.minecraftforgefrance.tutorial" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "ModTutoriel" sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.6" } minecraft { version = "1.10.2-12.18.3.2281" 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 = "stable_29" // 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' } } -
Salut,
Visiblement tu as Java 6 or une des bibliothèques a besoin de Java 7. -
Merci de la réponse j’ai mis a jour java (version la plus récente
cependant j’ai toujours le même message :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. Support for running Gradle using Java 6 has been deprecated and will be removed in Gradle 3.0 ################################################# ForgeGradle 2.2-SNAPSHOT-7f5a769 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev UP-TO-DATE :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings SKIPPED :genSrgs FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':genSrgs'. > joptsimple/internal/Strings : Unsupported major.minor version 51.0 * 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: 12.783 secsVoici le build.gradel :
buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup. version = "1.10.2" group= "fr.minecraftforgefrance.tutorial" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "ModTutoriel" sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.6" } minecraft { version = "1.10.2-12.18.3.2281" 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 = "stable_29" // 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' } } -
~~[Changes la partie
sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.6" }en
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.8" } ```~~ EDIT : ça ne sert à rien de faire ça c'est pour la compilation. -
Ça c’est pour la compilation du mod AymericRed, pas pour le setup.
@sganayon vérifies dans ta liste des programmes s’il y a encore Java 6. Si oui, désinstalles-le.
-
Ah oui je n’ai pas fait attention, suis-je bête ^^
-
Merci en effet mon jdk etait en version 6

J’ai un dernier problème : mon espace de travail est vide la console me renvois cela :
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. ################################################# ForgeGradle 2.2-SNAPSHOT-7f5a769 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :getVersionJson :extractUserdev :extractDependencyATs SKIPPED :extractMcpData SKIPPED :extractMcpMappings :genSrgs SKIPPED :downloadClient SKIPPED :downloadServer SKIPPED :splitServerJar SKIPPED :mergeJars SKIPPED :deobfMcSRG SKIPPED :decompileMc SKIPPED :fixMcSources :applySourcePatches SKIPPED :remapMcSources SKIPPED :recompileMc SKIPPED :extractNatives SKIPPED :getAssetIndex UP-TO-DATE :getAssets Current status: 53/1112 4% Current status: 103/1112 9% Current status: 147/1112 13% Current status: 194/1112 17% Current status: 229/1112 20% Current status: 281/1112 25% Current status: 371/1112 33% Current status: 454/1112 40% Current status: 511/1112 45% Current status: 544/1112 48% Current status: 611/1112 54% Current status: 692/1112 62% Current status: 805/1112 72% Current status: 868/1112 78% Current status: 900/1112 80% Current status: 955/1112 85% Current status: 1024/1112 92% Current status: 1086/1112 97% :makeStart :setupDecompWorkspace BUILD SUCCESSFULet pour le gradle.eclipse :
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. ################################################# ForgeGradle 2.2-SNAPSHOT-7f5a769 https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :eclipseClasspath :eclipseJdt :eclipseProject :getVersionJson :extractNatives SKIPPED :extractUserdev UP-TO-DATE :getAssetIndex UP-TO-DATE :getAssets Current status: 427/1112 38% Current status: 546/1112 49% Current status: 717/1112 64% Current status: 859/1112 77% Current status: 920/1112 82% Current status: 1067/1112 95% :makeStart :makeEclipseCleanRunClient :makeEclipseCleanRunServer :eclipse BUILD SUCCESSFUL Total time: 28.081 secsPourquoi il a skip toutes les extractions ? J’ai déjà essayé de le décompresser avec un succès parmi des Fail mais j’ai supprimé le dossier forgeblabla et j’ai repris celui de l’archive (en changeant le bluid.gradle)
-
Si il skip c’est que ça a déjà été fait auparavant et qu’il n’a pas besoin de le faire. Fais un gradlew eclipse et lances eclipse pour voir.
-
I have a pr oblem when i install
1.8.9 forge ( 1.8.9-11.15.1.1722) (forge-gradle 2.1-snapshot)
1.7.10 forge ( forge-1.7.10-10.13.2.1230-src)
–------------------------------------------------ -------------------------------------------------- -----------------
64-bit machine
Java 1.8.0-121 32-bit
2 gb ram m emory max
C: \ Users \ Administrator.O9WO4KWCSNHEAY0 \ Desktop \ Program Workspace \ JAVA \ Mod Worksp Ace \ Bebiezaza Mod 1.7.10> gradlew setupDecompWorkspace **************************** Powered By MCP: Http://modcoderpack.com/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version: unknown **************************** : ExtractMcpData UP-TO-DATE : GetVersionJson : ExtractUserDev UP-TO-DATE : GenSrgs SKIPPED : ExtractNatives UP-TO-DATE : GetAssetsIndex : GetAssets : MakeStart [Ant: javac] warning: [options] bootstrap class not set in conjunction with -source 1.6 [Ant: javac] 1 warning : DownloadMcpTools SKIPPED : DownloadClient SKIPPED : DownloadServer SKIPPED : MergeJars SKIPPED : DeobfuscateJar SKIPPED : Decompile SKIPPED : ProcessSources FAILURE: Build failed with an exception. * What went wrong: Could not expand ZIP 'C: \ Users \ Administrator.O9WO4KWCSNHEAY0 \ .gradle \ caches \ mine Craft \ net \ minecraftforge \ forge \ 1.7.10-10.13.2.1230 \ unpacked \ fmlpatches.zip '. > Invalid Timestamp -15721196918000 for 'zip entry C: \ Users \ Administrator.O9WO4K WCSNHEAY0 \ .gradle \ caches \ minecraft \ net \ minecraftforge \ forge \ 1.7.10-10.13.2.1230 \ Unpacked \ fmlpatches.zip! Net / minecraft / block / block.java.patch '. * 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: 4 mins 2.845 secs C: \ Users \ Administrator.O9WO4KWCSNHEAY0 \ Desktop \ Program Workspace \ JAVA \ Mod Worksp Ace \ Bebiezaza Mod 1.7.10>
C: \ Users \ Administrator.O9WO4KWCSNHEAY0 \ Desktop \ Program Workspace \ JAVA \ Mod Worksp Ace \ Bebiezaza Mod 1.8.9> gradlew setupDecompWorkspace This mapping 'stable_20' was designed for MC 1.8.8! Use at your own peril. ################################################################## ForgeGradle 2.1-SNAPSHOT-da90449 Https://github.com/MinecraftForge/ForgeGradle ################################################################## Powered by MCP unknown Http://modcoderpack.com By: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################################## : DeobfCompileDummyTask : DeobfProvidedDummyTask : GetVersionJson : ExtractUserdev FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ': extractUserdev'. > Could not expand ZIP 'C: \ Users \ Administrator.O9WO4KWCSNHEAY0 \ .gradle \ caches \ mo Dules-2 \ files-2.1 \ net.minecraftforge \ forge \ 1.8.9-11.15.1.1722 \ 49307de235cd27de83 E9b0005030dd401c40ef88 \ forge-1.8.9-11.15.1.1722-userdev.jar '. * 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: 46.742 secs C: \ Users \ Administrator.O9 WO4KWCSNHEAY0 \ Desktop \ Program Workspace \ JAVA \ Mod Worksp Ace \ Bebiezaza Mod 1.8.9>
-
@‘AymericRed’:
Si il skip c’est que ça a déjà été fait auparavant et qu’il n’a pas besoin de le faire. Fais un gradlew eclipse et lances eclipse pour voir.
Le projet eclipse est vide

-
@Bebiezaza
Hi !
Forge gradle failed to extract some file. Make sure it has de permission to write file on C:\Users\Administrator.O9WO4KWCSNHEAY0.gradle
Also, you should avoid space in the forge directory path.
Check also this : http://stackoverflow.com/questions/23705566/gradle-failure-build-failed-with-an-exception-could-not-expand-zip (similar problem)@sganayon
Salut,
quel est le chemin complet de ton dossier forge ?