Jump to content

Recommended Posts

Posted

Hi,

 

Been converting pixelmon over to 1.3.2 with forge 4.0.0 and am having trouble getting it to link to an external library that we use.  In previous versions of forge i was able to just stick the jar for this library in the mods folder with my mod and it would be loaded but it doesn't seem to matter where i put it with this current version, it can't find it.  I had it in my lib folder in mcp when i compiled and putting it in the lib folder in .minecraft doesn't work.  Any ideas?

 

MrMasochism

Posted

Tossing a .jar into the mods folder will have it added to the class path, so not sure why it would be an issue to toss it there.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Putting it in the mods directory was the first thing we tried and we had no luck.  I think we've found a workaround for now but it's a workaround that won't necessarily work if other people need external libraries

Posted

Sorry realise that was a bit ambiguous.

 

What we ended up doing was bringing the external jar's classes inside our mod's zip which is fine in this case as they have a very open license

Posted

Turns out that for some people, putting the library inside our mod's zip isn't working, they aren't a majority but it's happening.  However, putting the external library anywhere else is still not working.  Minecraft isn't picking it up and the game is crashing.

 

I have a class check on load which looks to see if the classes from that library are available.  In 1.2.5 this would work every time if the library was in the mods directory alongside the mod but now in 1.3.2 no matter where I put it it doesn't get linked in.  I have tried every conceivable location.  The mod just spits out the error on the class check that it couldn't find the library

Posted

We are looking to add an sqlite jdbc library.  We are now running into issues as packaging it in the zip which works fine for windows users doesn't work for mac users.  Is there a way of making sure this lib gets added to the classpath?

Posted

Update FML. This was recently changed so random libs in the mods dir will be loaded into the classpath. Ugly though. You should package sqlite as a coremod and then everyone can use it and depend on it properly. Mostly it would just be adding a meta-inf and a simple mod container.

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.