Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.6.1] Can't figure out how to load LoadingPlugin in MCP

Featured Replies

Posted

Hello,

 

I have been studying up on ASM, and Coremods, and have written my transformer and loading plugin classes, but now I can't seem to get the whole thing loaded. If I'm right about this, it all starts in the class that implements IFMLLoadingPlugin. That references the transformer class. But as far as I can tell, it's not loading. I've tried making the dummy mod with the META-INF/MANIFEST.MF file. It has this in it:

Manifest-Version: 1.0
FMLCorePlugin: jadar.asmtest.LoadingPlugin

Then I put the jar in mcp/jars/mods and I get this in the logs:

FML has found a non-mod file TestASM_Dummy.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

I get no sign that the code was executed. Forge dosen't report finding it, and print statements aren't showing. What am I missing?

 

Thanks!

 

-Jadar

We need more information to be able to help you.

are you running it from eclipse for example. did you remember to place the project in the classpath? is your spelling of the package and class name correct?

 

beware, the message FML has found a non-mod file .... appears even when the mod *IS* loaded.

 

 

 

  • Author

There is a command line parameter for FML: fml.coreMods.load.

Add your LoadingPlugin class there.

 

Command line. What/Which command line? Oh right, the one that you put the username and stuff in. It is ignoring the arguemets "fml.coreMods.load jadar.asmtest.LoadingPlugin" and "-Dfml.coreMods.load=jadar.asmtest.LoadingPlugin."

 

We need more information to be able to help you.

are you running it from eclipse for example. did you remember to place the project in the classpath? is your spelling of the package and class name correct?

 

beware, the message FML has found a non-mod file .... appears even when the mod *IS* loaded.

 

Ok, sorry. I am running from eclipse. It has it's own project that requires the Minecraft project. The run configuration has the project in the classpath. I've checked and double-checked the spelling.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.