Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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???

  • Author

You might be missing a section in the code.

Have you even read what the error WAS? Plus, it isn't missing anything.

  • Author

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.

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

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

I'm not sure about this, but I think you're building your mod on a newer forge than what you're trying to play it with.

Kain

  • Author

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?

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?

  • Author

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.

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.