Jump to content

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


Jadar

Recommended Posts

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

Link to comment
Share on other sites

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.

 

 

 

Link to comment
Share on other sites

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.

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.



×
×
  • Create New...

Important Information

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