Posted October 5, 201312 yr 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?
October 6, 201312 yr Author Okay, I tried making it into a jar file, but it is not acting any different from before.
October 6, 201312 yr Author Well, I managed to solve the problem. The solution was to add a blank line to the end of the MANIFEST.MF file...
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.