Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

What is this I don't even.


Recommended Posts

For some reason, when I have compiled my mod for 1.7.2 with build 10.12.0.1047 and put it in my mods folder in my game, I get this crash:

 

 

 

Description: There was a severe problem during mod loading that has caused the game to fail

 

cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: com.tiexex.smiley.items.gems.SmileyGems.setCreativeTab(Lnet/minecraft/creativetab/CreativeTabs;)Lnet/minecraft/item/Item;

at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:497)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)

at net.minecraft.client.Minecraft.func_71384_a(MinecraftOverlay.java:498)

at net.minecraft.client.Minecraft.func_99999_d(MinecraftOverlay.java:853)

at net.minecraft.client.main.Main.main(SourceFile:103)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Caused by: java.lang.NoSuchMethodError: com.tiexex.smiley.items.gems.SmileyGems.setCreativeTab(Lnet/minecraft/creativetab/CreativeTabs;)Lnet/minecraft/item/Item;

at com.tiexex.smiley.items.gems.SmileyGems.<init>(SmileyGems.java:18)

at com.tiexex.smiley.SmileyGemMod.preInit(SmileyGemMod.java:207)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)

at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:495)

... 10 more

 

 

 

Here's the thing, however: THERE IS NO CODE THAT IS BOUND TO ERROR ANYWHERE.

 

HOOOOWWWW???

Link to post
Share on other sites

The error says your SmileyGems constructor is invalid.

It shouldn't be, I mean it's referencing the line you would normally add to put the item into a creative tab, and that's not even there.

Link to post
Share on other sites

Something is causing your method to not be obfusicated properly. How are you building?

Uhm... I go into the out folder in my workspace and put those class files into a zip package. Mods still work as zip files.

Could this be because I have to actually run the edited code before packaging?

Link to post
Share on other sites

Dude run gradel build then get your jar from the library folder in build did you read the gradel tutorial in the forge gradel sub forum that tells you how to build your mod?

ALRIGHT, HOLD YOUR HORSES.

I'll see if that works.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.