Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

ask your author to provide a mcmod.info file #640

Open
Riprock opened this issue Apr 16, 2015 · 14 comments
Open

ask your author to provide a mcmod.info file #640

Riprock opened this issue Apr 16, 2015 · 14 comments

Comments

@Riprock
Copy link

Riprock commented Apr 16, 2015

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

@Cazzar
Copy link

Cazzar commented Apr 16, 2015

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
#640.

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

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

@diesieben07
Copy link
Contributor

Just at the end of the file.

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

File name or in the code?

@diesieben07
Copy link
Contributor

In the build.gradle.

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

is it a process resource?

@AbrarSyed
Copy link
Member

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.

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

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
Copy link
Author

Riprock commented Apr 16, 2015

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

@AbrarSyed
Copy link
Member

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

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

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

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

@AbrarSyed
Copy link
Member

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.

@Riprock
Copy link
Author

Riprock commented Apr 16, 2015

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

@Zyfarok
Copy link

Zyfarok commented Jul 9, 2015

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants