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?