Jump to content

Preloading/preparing modules before Forge


cy

Recommended Posts

I like how MagicLauncher can take modules from just about anywhere and get Forge to load them, and it can even extract pertinent metadata from the various .jar files. I know how to extract metadata, but the method that MagicLauncher "preps" the JVM so that when Forge loads up it just uses those modules eludes me. MagicLauncher is of course closed source, so nobody can look at that for an example. I just wanted to replicate its behavior in an open source launcher.

 

I tried to follow the loading process of Forge but it unfortunately confused me. Near as I can tell, it loads something called "coremods" (which itself is an entirely undocumented term), then just goes straight to the game. Most mods are not "coremods" and only certain ...bytecode transformers? are coremods. Real gritty stuff, not the likes of a minimap or a Zelda style auto-jump. So where does it load mods? Can I get it to recognize classes already in the classpath as mods? Is there some list I can append class objects to in order for them to be loaded like mods?

 

I was going to do the hack of "delete everything in mods except configuration which is there sometimes and symlink all the mod files into there" but it really seems inelegant compared to what MagicLauncher manages to do. Any ideas how to replicate that?

Link to comment
Share on other sites

All magiclauncher does is add '.disabled' to the end of mods that are disabled.

FML only loads .zip or .jar files, not .disabled files.

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

Link to comment
Share on other sites

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.