Posted February 3, 20196 yr Hi, I'm trying to set up Dynamic Surroundings sourcode in Idea but Minecraft keeps crashing when launching. I can run SetupDecompWorkspace or other gradle tasks, and no Java error is detected. Here is the Mc log errors : Quote [main/FATAL] [FML]: net.minecraftforge.fml.common.MissingModsException: Mod dsurround (Dynamic Surroundings) requires [dsurroundcore] [main/ERROR] [FML]: An exception was thrown, the game will display an error screen and halt. net.minecraftforge.fml.common.MissingModsException: Mod dsurround (Dynamic Surroundings) requires [dsurroundcore] at net.minecraftforge.fml.common.Loader.sortModList(Loader.java:264) ~[Loader.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:570) ~[Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:513) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Apparently the coremod is missing, btw the game shows me a beautiful dirt screen : Quote You must include the right dependencies for Dynamic Surroundings : Requires dsurroundcore any (missing) I've checked the build.gradle but nothing seems wrong : buildscript { repositories { jcenter() maven { name = "Forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } if (file('secrets.properties').exists()) { println "Loading parameters from secrets.properties" ext.secrets = new Properties() file('secrets.properties').withReader {secrets.load(it)} } repositories { maven { url = "http://chickenbones.net/maven/" } // dem bones! maven { url = "http://dvs1.progwml6.com/files/maven" } // mezz maven { url = "http://maven.tterrag.com" } // Chisel maven { url = "https://repo.elytradev.com/" } maven { name = "CurseForge" url = "https://minecraft.curseforge.com/api/maven/" } } apply plugin: 'net.minecraftforge.gradle.forge' apply from: 'configuration.gradle' sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 compileJava { sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 } minecraft { if (project.ext.has('secrets')) { if (secrets.uuid != null) clientRunArgs += ["--uuid ${secrets.uuid}"] if (secrets.username != null) clientRunArgs += ["--username ${secrets.username}"] if (secrets.password != null) clientRunArgs += ["--password ${secrets.password}"] if (secrets.jvmArgs != null) { clientJvmArgs += secrets.jvmArgs serverJvmArgs += secrets.jvmArgs } } runDir = "run" replace '@VERSION@', project.ext.modVersion replace '@FINGERPRINT@', project.ext.fingerprint replace '@UPDATEURL@', project.ext.updateurl mappings = project.ext.snapshot } dependencies { compile "craftstudio-api:CraftStudio-1.0.0.93:mc1.12:alpha" compile "animania:animania:1.12.2:1.6.2" compile "serene-seasons:SereneSeasons-1.12.2:1.2.15:universal" compile "codechicken-lib-1-8:CodeChickenLib-1.12.2:3.2.2.353:universal" compile "forge-multipart-cbe:ForgeMultipart-1.12.2:2.6.0.79:universal" compile "ctm:CTM:MC1.12.2:${project.ctmVersion}" compile "cosmetic-armor-reworked:CosmeticArmorReworked:1.12.2:v3" compile "littletiles:LittleTiles_v1.5.0:pre122_mc1.12.2" compile "iron-chests:ironchest:1.12.2:7.0.54.838" compile "biomes-o-plenty:BiomesOPlenty-1.12.2:7.0.1.2422:universal" if (fileTree(dir: 'libs').filter { it.name.startsWith('OreLib') }.getFiles().size() == 0) compile "orelib:OreLib-1.12.2:3.5.2.2:deobf" //compile "creativecore:CreativeCore_v1.9.35_mc1.12.2" deobfCompile "mezz.jei:jei_${project.mcVersion}:${project.jeiVersion}:api" runtime "mezz.jei:jei_${project.mcVersion}:${project.jeiVersion}" deobfCompile "team.chisel:Chisel:MC${project.mcVersion}-${project.chiselVersion}" } 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' } } // Reobfuscate the output of the mod JAR task with SRG names, otherwise the mod won't be able to reference MC classes reobf { coreJar { mappingType = 'SEARGE' } } // Define a new task for the contained JAR // If you want to, you can distribute this as a separate artifact to a Maven task coreJar(type: Jar) { // Copy all compiled files and resources from the source set to the JAR // If you have additional source sets, add the same logic here from(sourceSets.main.output) { // Include the coremod package // If you need additional files, add some more includes include 'org/orecruncher/dsurround/asm/**' } // Standard coremod manifest definitions manifest { // Added benefit of separating mod and coremod: No need for FMLCorePluginContainsFMLMod attributes 'FMLCorePlugin': "org.orecruncher.dsurround.asm.TransformLoader" // Strictly speaking not required (right now) // Allows Forge to extract the dependency to a local repository (Given that the corresponding PR is merged) // If another mod ships the same dependency, it doesn't have to be extracted twice attributes 'Maven-Artifact': "${project.group}:${project.archivesBaseName}-core:${project.version}" } // Add a classifier to the JAR ('-core' at the end of the file name) // Distinguishes the mod JAR from the shipped one classifier 'core' group = 'build' } task sourcesJar(type: Jar, dependsOn: classes) { description = 'Creates a JAR containing the source code.' from sourceSets.main.allSource classifier = 'sources' } task deobfJar(type: Jar) { description = 'Creates a JAR containing the non-obfuscated compiled code.' from sourceSets.main.output classifier = "deobf" manifest { // The crucial manifest attribute: Make Forge extract the contained JAR attributes 'ContainedDeps': coreJar.archivePath.name attributes 'FMLAT': 'dsurround_at.cfg' attributes 'Maven-Artifact': "${project.group}:${project.archivesBaseName}:${project.version}" } } task signCoreJar(type: SignJar, dependsOn: reobfCoreJar) { // Skips if the keyStore property is missing. onlyIf { project.hasProperty('keyStore') } // findProperty allows us to reference the property without it existing. // Using project.propName would cause the script to fail validation if the property did not exist. keyStore = project.findProperty('keyStore') alias = project.findProperty('keyStoreAlias') storePass = project.findProperty('keyStorePass') keyPass = project.findProperty('keyStoreKeyPass') inputFile = coreJar.archivePath.absolutePath outputFile = coreJar.archivePath.absolutePath } task signJar(type: SignJar, dependsOn: reobfJar) { // Skips if the keyStore property is missing. onlyIf { project.hasProperty('keyStore') } // findProperty allows us to reference the property without it existing. // Using project.propName would cause the script to fail validation if the property did not exist. keyStore = project.findProperty('keyStore') alias = project.findProperty('keyStoreAlias') storePass = project.findProperty('keyStorePass') keyPass = project.findProperty('keyStoreKeyPass') inputFile = jar.archivePath outputFile = jar.archivePath } build.dependsOn signJar jar.dependsOn signCoreJar def libPrefix = 'META-INF/libraries' jar { // Don't include the coremod in the main JAR // If you have more coremod-related packages that aren't nested in the main one, add inclusions for them exclude 'org/orecruncher/dsurround/asm/**' // Add the output of the coremod JAR task to the main JAR for later extraction from(coreJar.archivePath.absolutePath) { include '*' // Due to the way Gradle's copy tasks work, we need this line for the JAR to get added into libPrefix } // Add CREDITS.md into('/') { from('CREDITS.md') } manifest { // The crucial manifest attribute: Make Forge extract the contained JAR attributes 'ContainedDeps': libPrefix + '/' + coreJar.archivePath.name attributes 'FMLAT': 'dsurround_at.cfg' attributes 'Maven-Artifact': "${project.group}:${project.archivesBaseName}:${project.version}" } } //Adds the artifact types added by this script to the actual artifacts list. artifacts { archives sourcesJar archives deobfJar } Here I'm stuck, If you have an idea let me know, thanks in advance ^^
February 4, 20196 yr 4 hours ago, Sofften said: You must include the right dependencies for Dynamic Surroundings : Requires dsurroundcore any (missing) I believe it is a seperate mod from dynamic surroundings (which you don’t seem to include in gradle) About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
February 4, 20196 yr Author 4 minutes ago, Cadiboo said: I believe it is a seperate mod from dynamic surroundings (which you don’t seem to include in gradle) No it’s not a seperate thing it is already in the source code as I don’t have any dependency error.
February 4, 20205 yr same here i fixed this problem with downgrading dynamic surroundings to 3.5.4.3.jar also remenber, when you get errors while loading mods, try these look into crash or error log and find whats wrong use diffrent version of mod or forge that caused errors or crash (i recommend download most downloaded version of mod) if you are not able to find what mods caused a error try installing mods one by one
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.