Jump to content

Recommended Posts

Posted (edited)

Hi,

I'am making a forge mod with this library : https://github.com/MinnDevelopment/java-discord-rpc

When i run Minecraft Client on IntelliJ, it works but when i build the mod and i put it on my mod's folder and i run my minecraft launcher i have this error : https://pastebin.com/TAz96zDL

i think that i need to put the dependency in my jar file, here's my dependencies

configurations {
    embed
    compile.extendsFrom(embed)
}

dependencies {
    // This dependency and its transitive deps will be embedded
    embed 'club.minnced:java-discord-rpc:2.0.1'
    compile 'club.minnced:java-discord-rpc:2.0.1'
}


jar {
    from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}

Sorry for my bad english, i'm french...

Edited by FrenchDxv
Posted

Please show what you tried.

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

Update: for minecraft 1.12 and others versions it works but for minecraft 1.10.2 it doesnt works , i have try to load the natives libs manually but it works for Windows and not for MacOS i dont understand why

  • 1 month later...
Posted (edited)

I'm going through the same this he is, except I'm newer. Not really sure how any of this dependency stuff works but I kind of have an idea. My build.gradle doesn't have a "jar" section, so do I add it my self? Where is /META-INF? I don't understand what this maven stuff is and a have a very vague understanding of what a repository is from submitting bug reports on git. I think the .meta file is just a manifest file, and forge will use the .meta files if the jar doesn't have one. It gets the groupId:artifactId:version thing so it can be archived. What does that mean? I have the jar file that I want to use as a dependency and i looked in its META-INF folder and looked at its MANIFEST.MF file and all it said was "Manifest-Version: 1.0" Does that mean that it was a poorly made mod and what do I do about it? Do i give it a custom maven coordinate (Is that what the groupId:... thing is called?)? I'm not sure where I go from here.

 

Also, if  when I successfully do this dependency extraction thing, it adds the mod to minecraft but not the mods folder, correct? How to I use the mod its dependent on while making my mod? I saw that you make a folder called libs and put it in there and do some build path thing to access its code, but will that add it to the client when i run it in eclipse or do I have to add it to the run/mods folder?

 

I tried to put all of my questions into one post as much as possible but I'm bound to have more.

Edited by TheGoldenProof
Posted

Make a new topic

  On 10/26/2018 at 12:23 AM, TheGoldenProof said:

I tried to put all of my questions into one post as much as possible but I'm bound to have more.

Expand  

Definitely make a new topic

About Me

  Reveal hidden contents

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)

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.