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

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

Open

Description

@Riprock

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

Activity

  1. Cazzar commented on Apr 16, 2015

    @Cazzar

    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 notifications@github.com 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.

  2. Riprock commented on Apr 16, 2015

    @Riprock
    Author

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

  3. diesieben07 commented on Apr 16, 2015

    @diesieben07
    Contributor

    Just at the end of the file.

  4. Riprock commented on Apr 16, 2015

    @Riprock
    Author

    File name or in the code?

  5. diesieben07 commented on Apr 16, 2015

    @diesieben07
    Contributor

    In the build.gradle.

  6. Riprock commented on Apr 16, 2015

    @Riprock
    Author

    is it a process resource?

  7. AbrarSyed commented on Apr 16, 2015

    @AbrarSyed
    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.

  8. Riprock commented on Apr 16, 2015

    @Riprock
    Author

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

    }

  9. Riprock commented on Apr 16, 2015

    @Riprock
    Author

    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

  10. AbrarSyed commented on Apr 16, 2015

    @AbrarSyed
    Member

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

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

  11. Riprock commented on Apr 16, 2015

    @Riprock
    Author

    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

  12. AbrarSyed commented on Apr 16, 2015

    @AbrarSyed
    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.

  13. Riprock commented on Apr 16, 2015

    @Riprock
    Author

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

  14. Zyfarok commented on Jul 9, 2015

    @Zyfarok

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions