Mod will not run in obfuscated environment
gamrguy opened this issue ยท 4 comments
Using Forge 1291, minecraft 1.7.10, and no mods other than Divine RPG, I always get this error when running in an obfuscated environment (a fresh Forge install):
cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.divinerpg.items.base.ItemModFood.setCreativeTab(Lnet/minecraft/creativetab/CreativeTabs;)Lnet/minecraft/item/Item;
at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Apparently DRPG is failing to properly access the base Item class, though it works perfectly 100% of the time in the deobfuscated (dev) environment with the same forge/minecraft versions.
Are you sure you built it correctly? I have definitely been able to run it in an obfuscated environment.
Here's the steps I took:
- Set up the Forge dev environment with the DRPG source code
- Press the build button in Eclipse
- Minecraft runs fine
- Compress the files in the bin folder into a .zip file
- Use it in obfuscated environment
If there's something else/done wrong please let me know.
Additional information: I'm using a Mac computer, with Java 7.
The files in the bin folder are deobfuscated. If you've never built a mod before you shouldn't be trying to test DRPG.
Well, those files are .class files, so I assumed those were properly 'built' files. And yes, I'll be honest, I've never actually built a mod, and I'm really only trying this for my own purposes - mostly analyzing the code so I'll know what I'm doing if I decide to actually build my own mod someday. I'm sorry if I caused you any trouble.