Jump to content

Publishing a coremod


gaga654

Recommended Posts

So I am experimenting with writing coremods, and I can't seem to figure out how to get it to run ingame after I've deobfuscated it. I have the following files:

GenericLoadingPlugin.java:

package gaga.generic;

import java.util.Map;

import cpw.mods.fml.relauncher.IFMLLoadingPlugin;

public class GenericLoadingPlugin implements IFMLLoadingPlugin {

@Override
public String[] getLibraryRequestClass() {
	return null;
}

@Override
public String[] getASMTransformerClass() {
	return new String[]{GenericClassTransformer.class.getName()};
}

@Override
public String getModContainerClass() {
	return GenericCore.class.getName();
}

@Override
public String getSetupClass() {
	return null;
}

@Override
public void injectData(Map<String, Object> data) {

}

}

 

GenericCore.java:

package gaga.generic;


import java.util.Arrays;

import com.google.common.eventbus.EventBus;

import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;

public class GenericCore extends DummyModContainer {

public GenericCore() {
	super(new ModMetadata());
	ModMetadata md = getMetadata();
	md.modId = "genericModCore";
	md.name = "Generic mod Core";
	md.version = "0.0.0";
	md.credits = "Roll Credits ...";
	md.authorList = Arrays.asList("gaga654");
	md.description = "";
	md.url = "";
	md.updateUrl = "";
	md.screenshots = new String[0];
	md.logoFile = "";
}

@Override
public boolean registerBus(EventBus bus, LoadController controller) {
	bus.register(this);
	return true;
}
}

 

And, finally, in the .zip file with the reobfuscated files, I have a META-INF folder with a MANIFEST.MF file which has the following:

Manifest-Version: 1.0
FMLCorePlugin: gaga.generic.GenericLoadingPlugin

 

It works fine when I run it in the development environment, but when I try to test the reobfuscated version it just doesn't even appear in the mods list. Any suggestions as to what's wrong?

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.