Jump to content

Recommended Posts

Posted (edited)

Every time I try to launch it I get this...

[18:08:01] [main/FATAL] [FML]: net.minecraftforge.fml.common.MissingModsException: testmod (testmod) requires [Forge@[14.23.4.2705,)]

 

Forge is installed, version 14.23.4.2706, so I'm confused. Is there somewhere I could've accidentally declared the forge mod as a mod dependency?

 

Here's my dependencies:

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

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

 

 

FIX:

 

I would call this an issue of stupidity...I'm not sure why/how this got in there

but in mcmod.info there was the following:

 

  Quote

    "requiredMods": ["Forge@[${forge_version},)"],
    "dependencies": ["Forge@[${forge_version},)"],

Expand  
 

 

Edited by Inflated
Posted

A warning like that comes from the dependencies string inside the @Mod annotation, not the build script.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
@Mod(modid = "@MOD_ID@", name = "@MOD_NAME@", version = "@MOD_VERSION@", clientSideOnly = true,
     acceptedMinecraftVersions = "[@MINECRAFT_VERSION@]", canBeDeactivated = true)

 

That @Mod annotation?

Posted
buildscript {
    repositories {
        mavenCentral()
        jcenter()
        maven {
      		url "https://plugins.gradle.org/m2/"
    	}
        maven {
            name = 'forge'
            url = 'http://files.minecraftforge.net/maven'
        }
        maven {
            name = 'sonatype'
            url = 'https://oss.sonatype.org/content/repositories/snapshots/'
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
    }
}

apply plugin: 'net.minecraftforge.gradle.forge'

compileJava.options.encoding = 'UTF-8'
compileJava.sourceCompatibility = '1.7'
compileJava.targetCompatibility = '1.7'

group = project.group_name
version = project.mod_version + "." + project.mod_revision
archivesBaseName = "${project.mod_id}-${project.minecraft_version}"

minecraft {
    version = project.minecraft_version + "-" + project.forge_version
	mappings = project.mappings_version
	if (file('../multiProjectDir').exists()) {
		runDir = "../multiProjectDir"
	} else {
		runDir = "eclipse"
	}
    replace '@MOD_ID@', project.mod_id
    replace '@MOD_NAME@', project.mod_name
    replace '@MOD_VERSION@', project.version
    replace '@MINECRAFT_VERSION@', project.minecraft_version
}

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

    // 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 {
    // force replacements if input changes
    inputs.property "version", project.mod_version
    inputs.property "mcversion", project.minecraft_version
	inputs.property "revision", project.mod_revision
    inputs.property "forgeversion", project.forge_version
    
    // replace stuff in the files we want.
    from(sourceSets.main.resources.srcDirs) {
        include '**/*.info'
        include '**/*.properties'
        include '**/*.json'

        // replaces
        expand ([
            'mod_version': project.version,
            'mod_featureversion': project.mod_version,
            'mod_revision': project.mod_revision,
            'forge_version': project.forge_version,
            'minecraft_version': project.minecraft_version,
            'mod_id': project.mod_id,
            'mod_name': project.mod_name,
        ])
    }

    // copy everything else that we didn't do before
    from(sourceSets.main.resources.srcDirs) {
        exclude '**/*.info'
        exclude '**/*.properties'
        exclude '**/*.json'
    }
}

jar {
    from('src/main/java') { include 'assets/**' }
}

sourceJar {
    appendix = 'src'
	classifier = ''
}

artifacts {
    archives sourceJar
}

 

Here's the whole build.gradle if it helps

Posted

Yes. If that is the @Mod annotation from your mod please post your mod's source code in a GitHub repo, be sure to have the "root" of the repo in the same folder as the build script and the .gitignore provided by the Forge MDK.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I would call this an issue of stupidity...I'm not sure why/how this got in there

but in mcmod.info there was the following:

 

  Quote

    "requiredMods": ["Forge@[${forge_version},)"],
    "dependencies": ["Forge@[${forge_version},)"],

Expand  
 

All fixed now, thanks @DaemonUmbra

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.