Posted June 8, 20232 yr Hey, I tried adding an access transformer to my project, it's not the first one I've added. However this time when I tried refreshing the gradle project, and running genIntellijRuns, it crashes with this error: Quote Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency net.minecraftforge:accesstransformers:8.0.+ because no repositories are defined. Quote Could not resolve all files for configuration ':runtimeClasspathCopy'. > Could not find net.minecraftforge:forge:1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0. Searched in the following locations: - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0/forge-1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0.pom - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0/forge-1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0.jar Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html The "Gradle: Configure projects" background task has also been running for almost 2 hours.
June 8, 20232 yr Author ok after quitting and restarting I now get this crash report Quote A problem occurred configuring root project 'GaiaWorldMod'. > Could not resolve all files for configuration ':_compileJava_1'. > Could not find net.minecraft:client:1.19.2. Searched in the following locations: - https://maven.minecraftforge.net/net/minecraft/client/1.19.2/client-1.19.2.module - https://maven.minecraftforge.net/net/minecraft/client/1.19.2/client-1.19.2.pom - https://maven.minecraftforge.net/net/minecraft/client/1.19.2/client-1.19.2-extra.jar - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.19.2/client-1.19.2.pom - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.19.2/client-1.19.2-extra.jar - https://libraries.minecraft.net/net/minecraft/client/1.19.2/client-1.19.2-extra.jar - https://repo.maven.apache.org/maven2/net/minecraft/client/1.19.2/client-1.19.2.pom Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
June 9, 20232 yr What does your AT and buildscript look like? Also try invalidating the gradle cache, then refresh the project and regen runs.
June 10, 20232 yr Author Ok so since before I had quit Intellij while the "Gradle: Configure projects" background task was still running. It had been going for hours and was showing no sign of stopping. After reopening Intellij it was still running. I hit File >> Invalidate Caches... >> Invalidate and Restart. The background task was still running and the code I was trying to AT was still private. I attempt to run genIntellijRuns and the background task just restarts, usually outputting a couple things to the Build Console, and then after about 20 mins of not outputting anything I stop with the red square and re run it. I get this error after 9 mins Quote Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency com.mojang:text2speech:1.16.7 because no repositories are defined. Quote /Users/jacobmaynardvesely/IdeaProjects/GaiaWorldMod/build/tmp/expandedArchives/forge-1.19.2-43.1.47-inject_src.jar_fefeffb20405ed28c1ddedf2c403aab7/mcp/client/Start.java:5: error: package net.minecraft.client.main does not exist import net.minecraft.client.main.Main; ^ /Users/jacobmaynardvesely/IdeaProjects/GaiaWorldMod/build/tmp/expandedArchives/forge-1.19.2-43.1.47-inject_src.jar_fefeffb20405ed28c1ddedf2c403aab7/mcp/client/Start.java:17: error: cannot find symbol Main.main(concat(new String[]{"--version", "mcp", "--accessToken", "0", "--assetsDir", assets, "--assetIndex", "1.19", "--userProperties", "{}"}, args)); ^ symbol: variable Main location: class Start Quote Could not resolve all files for configuration ':runtimeClasspathCopy'. > Could not find net.minecraftforge:forge:1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0. Searched in the following locations: - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0/forge-1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0.pom - file:/Users/jacobmaynardvesely/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0/forge-1.19.2-43.1.47_mapped_parchment_2022.11.27-1.19.2_at_684e4ce2e16fa45d1ab59ef6be767caad8f3f6d0.jar Required by: project : Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html Mod[GenIntellijRuns] claims to still be running with no output. So I once again hit Load Gradle Changes and I get the same error again. I am at this point incredibly stumped as to what to do btw my AT file looks like this: public net.minecraft.world.level.levelgen.NoiseChunk m_209247_()Lnet/minecraft/world/level/block/state/BlockState; # getInterpolatedState public net.minecraft.world.level.levelgen.OreVeinifier m_209667_(Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/DensityFunction;Lnet/minecraft/world/level/levelgen/PositionalRandomFactory;)Lnet/minecraft/world/level/levelgen/NoiseChunk$BlockStateFiller; # create public net.minecraft.world.level.levelgen.OreVeinifier$VeinType public net.minecraft.world.level.levelgen.OreVeinifier$VeinType f_209674_ # minY public net.minecraft.world.level.levelgen.OreVeinifier$VeinType f_209675_ # maxY public net.minecraft.world.item.context.UseOnContext m_43718_()Lnet/minecraft/world/phys/BlockHitResult; # getHitResult
June 15, 20232 yr Author ok, there has been very little progress on this and it has put a complete roadblock in the mod development due to the fact that suddenly IntelliJ is saying no to anything I want to do and I can't see the reason why. I assume this is to some extent a bug in ForgeGradle as as far I can tell I have done mostly the right thing in relation to this. Currently the log for the process that "Configure projects" process is not getting beyond looks like this... Quote Starting Gradle Daemon... Gradle Daemon started in 4 s 980 ms > Configure project : Java: 17.0.2, JVM: 17.0.2+8-LTS-86 (Oracle Corporation), Arch: x86_64 Setting up MCP environment Initializing steps Executing steps > Running 'downloadManifest' > Running 'downloadJson' > Running 'downloadClient' > Running 'downloadServer' > Running 'extractServer' > Running 'downloadClientMappings' > Running 'mergeMappings' > Running 'stripClient' > Running 'stripServer' > Running 'merge' > Running 'listLibraries' this seems to want to run automatically when I open the project. What would people recommend in terms of actually progressing with mod development? Would creating a new project from scratch be liable to cause the same issue? Is it recommended that I post this to some kind of Forge bug tracker, and are there details I have missed? Is there a chance I am using an out of date Forge or Forge Gradle? and am unaware of it?
June 15, 20232 yr Author oh also earlier ChampionAsh5357 asked for the AT and Buildscript, I missed the Buildscript part. I assume you mean the build.gradle file which looks like this: plugins { id 'eclipse' id 'maven-publish' id 'net.minecraftforge.gradle' version '5.1.+' id 'org.parchmentmc.librarian.forgegradle' version '1.+' } version = '1.0' group = 'gaia' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'gaia' // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { // The mappings can be changed at any time and must be in the following format. // Channel: Version: // official MCVersion Official field/method names from Mojang mapping files // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official // // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md // // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge // Additional setup is needed to use their mappings: https://github.com/ParchmentMC/Parchment/wiki/Getting-Started // // Use non-default mappings at your own risk. They may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. mappings channel: 'parchment', version: '2022.11.27-1.19.2' accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default. // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { client { workingDirectory project.file('run') // Recommended logging data for a userdev environment // The markers can be added/remove as needed separated by commas. // "SCAN": For mods scan. // "REGISTRIES": For firing of registry events. // "REGISTRYDUMP": For getting the contents of all registries. property 'forge.logging.markers', 'REGISTRIES' // Recommended logging level for the console // You can set various levels here. // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels property 'forge.logging.console.level', 'debug' // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', 'examplemod' mods { gaia { source sourceSets.main } } } server { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' property 'forge.enabledGameTestNamespaces', 'gaia' mods { gaia { source sourceSets.main } } } // This run config launches GameTestServer and runs all registered gametests, then exits. // By default, the server will crash when no gametests are provided. // The gametest system is also enabled by default for other run configs under the /test command. gameTestServer { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' property 'forge.enabledGameTestNamespaces', 'gaia' mods { gaia { source sourceSets.main } } } data { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', 'gaia', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') mods { examplemod { source sourceSets.main } } } } } // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { // Put repositories for dependencies here // ForgeGradle automatically adds the Forge maven and Maven Central for you // If you have mod jar dependencies in ./libs, you can declare them as a repository like so: // flatDir { // dir 'libs' // } } dependencies { // Specify the version of Minecraft to use. If this is any group other than 'net.minecraft', it is assumed // that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied. // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft 'net.minecraftforge:forge:1.19.2-43.1.47' // Real mod deobf dependency examples - these get remapped to your current mappings // compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}") // Adds the full JEI mod as a runtime dependency // implementation fg.deobf("com.tterrag.registrate:Registrate:MC${mc_version}-${registrate_version}") // Adds registrate as a dependency // Examples using mod jars from ./libs // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") // For more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } // Example for how to get properties into the manifest for reading at runtime. jar { manifest { attributes([ "Specification-Title" : "gaia", "Specification-Vendor" : "ray", "Specification-Version" : "1", // We are version 1 of ourselves "Implementation-Title" : project.name, "Implementation-Version" : project.jar.archiveVersion, "Implementation-Vendor" : "ray", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } // Example configuration to allow publishing using the maven-publish plugin // This is the preferred method to reobfuscate your jar file jar.finalizedBy('reobfJar') // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing // publish.dependsOn('reobfJar') publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation }
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.