FML icon indicating copy to clipboard operation
FML copied to clipboard

ask your author to provide a mcmod.info file

Open Riprock opened this issue 10 years ago • 14 comments

When I made my mcmod.info file i put it in /src/main/resources and named it mcmod.info Everything is done correctly and i used a sample mcmod.info file and edited it for my mod. When i launch mc it say ask the mod author for a mcmod.info file. I dont know what is wrong

Note:Im using intellij Idea

Riprock avatar Apr 16 '15 15:04 Riprock

I'm going to guess IDEA 14, if so add this to build.gradle: idea { module { inheritOutputDirs = true } }

On Fri, 17 Apr 2015 1:57 am ewm2000 [email protected] wrote:

When I made my mcmod.info file i put it in /src/main/resources and named it mcmod.info Everything is done correctly and i used a sample mcmod.info file and edited it for my mod. When i launch mc it say ask the mod author for a mcmod.info file. I dont know what is wrong

Note:Im using intellij Idea

— Reply to this email directly or view it on GitHub https://github.com/MinecraftForge/FML/issues/640.

Cazzar avatar Apr 16 '15 15:04 Cazzar

cazzar what line do i put this on or where do i put it in the build.gradle file

Riprock avatar Apr 16 '15 16:04 Riprock

Just at the end of the file.

diesieben07 avatar Apr 16 '15 18:04 diesieben07

File name or in the code?

Riprock avatar Apr 16 '15 18:04 Riprock

In the build.gradle.

diesieben07 avatar Apr 16 '15 19:04 diesieben07

is it a process resource?

Riprock avatar Apr 16 '15 19:04 Riprock

Just take this snippet: idea { module { inheritOutputDirs = true } } And paste it at the bottom of your build.gradle file. Do NOT put it inside ANY {} blocks.

AbrarSyed avatar Apr 16 '15 19:04 AbrarSyed

I undertand that but would it go under process resources like this?

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'
}
idea { module {
    inheritOutputDirs = true } }

}

Riprock avatar Apr 16 '15 19:04 Riprock

or

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'
}

} idea { module { inheritOutputDirs = true } }

like this outside of the project resources

Riprock avatar Apr 16 '15 19:04 Riprock

as I said. Do NOT put it inside ANY {} blocks.

that means DO NOT put it in the processResources{} block.

AbrarSyed avatar Apr 16 '15 19:04 AbrarSyed

I did that and checked over my mcmod.info and everything matches but it doesnt load. It still says ask the author for the mcmod.info. I did notice this if it is relevant: [15:38:47] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, WineMod] at CLIENT [15:38:47] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, WineMod] at SERVER

Also you can go through my code to see if i messed up anywhere else https://github.com/ewm2000/Wine-Mod

Riprock avatar Apr 16 '15 19:04 Riprock

You also need to ensure that the modid specified in your @mod matches the modid specified in the mcmod.info file. You may also have to refresh IDEA to ensure that the changes to your build.gradle have taken affect.

AbrarSyed avatar Apr 16 '15 19:04 AbrarSyed

Just Checked the @mod and refreshed everything but for some reason it still doesn't recognize the mcmod.info file. What is wrong?

Riprock avatar Apr 16 '15 19:04 Riprock

For me everything is OK with Intellij IDEA. I think you did not import the project correctly. You can try to close Intellij IDEA and delete everything but :

  • src/
  • gradle/
  • build.gradle
  • gradlew
  • gradlew.bat

And then you do : gradlew setupDecompWorkspace --refresh-dependencies gradlew idea

And then you import your project on IDEA from the .iml file or the .ipr (= IntelliJ IDEA Project File) DO NOT IMPORT FROM THE BUILD.GRADLE !

(And finally you can do "gradlew gIR" to be able to run Minecraft from the IDE if you want it)

It works for me (but I have multiple mods (modules) in my workspace so I import the .iml and I create the run configuration manually)

Zyfarok avatar Jul 09 '15 00:07 Zyfarok