Posted July 15, 201411 yr Someone please help me out. Ive been making this mod for a while, and i just finished the first version. everything runs fine when i test it in eclipse but when i put the exported jar file in my minecraft's mods folder and run it, it crashes and i get this error: ERROR: ---- Minecraft Crash Report ---- // Ouch. That hurt Time: 7/15/14 12:59 AM Description: Initializing game java.lang.NoSuchMethodError: com.novacraft.NovaSword.setTextureName(Ljava/lang/String;)Lnet/minecraft/item/Item; at com.novacraft.NovaSword.<init>(NovaSword.java:9) at com.novacraft.Novacraft.<clinit>(Novacraft.java:73) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:420) 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.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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:118) at cpw.mods.fml.common.Loader.loadMods(Loader.java:491) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:815) 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) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.novacraft.NovaSword.<init>(NovaSword.java:9) at com.novacraft.Novacraft.<clinit>(Novacraft.java:73) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:420) 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.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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:118) at cpw.mods.fml.common.Loader.loadMods(Loader.java:491) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:815) 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) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_05, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 108162240 bytes (103 MB) / 277872640 bytes (265 MB) up to 954728448 bytes (910 MB) JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.03 FML v7.2.217.1147 Minecraft Forge 10.12.2.1147 4 mods loaded, 4 mods active mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.2.217.1147} [Forge Mod Loader] (forge-1.7.2-10.12.2.1147.jar) Unloaded->Constructed Forge{10.12.2.1147} [Minecraft Forge] (forge-1.7.2-10.12.2.1147.jar) Unloaded->Constructed Novacraft{1.0.0} [Novacraft] (Novacraft 1.0.0.jar) Unloaded Launched Version: 1.7.2-Forge10.12.2.1147 LWJGL: 2.9.0 OpenGL: Intel® HD Graphics 2500 GL version 4.0.0 - Build 10.18.10.3496, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null Anisotropic Filtering: On (16) Please someone help me! i worked so hard on this and i dont want to lose it!!!!!!!
July 15, 201411 yr I'm not really experienced at all with Forge, but I'm going to try to help Did you try it in Eclipse(success) and then exported it(fail) once? If you did, test it in Eclipse again, you may have accidently removed the method before exporting it. Unlikely(because I wouldn't know how it would successfully compile and export), but possible.
July 15, 201411 yr src code pls. seems to have something to do with your sword. Here could be your advertisement!
July 15, 201411 yr How did you build your jar? gradlew build? Looks to me like it might be a (de)obfuscation problem, which can happen if you don't build your jar properly, i.e. your code tries to call a deobfuscated vanilla method, which doesn't exist when you put your jar into the minecraft mods folder since the vanilla code is obfuscated there. Just a guess. -TGG
July 15, 201411 yr Author src code pls. seems to have something to do with your sword. Heres the src for my sword: package com.novacraft; import net.minecraft.item.ItemSword; public class NovaSword extends ItemSword { public NovaSword(ToolMaterial p_i45356_1_) { super(p_i45356_1_); setTextureName(Novacraft.MODID + ":" + "novasword"); } }
July 15, 201411 yr Author How did you build your jar? gradlew build? Looks to me like it might be a (de)obfuscation problem, which can happen if you don't build your jar properly, i.e. your code tries to call a deobfuscated vanilla method, which doesn't exist when you put your jar into the minecraft mods folder since the vanilla code is obfuscated there. Just a guess. -TGG i just exported my mod as a JAR file thats it so idk whats going on
July 15, 201411 yr Author You need to build your mod using the gradlew build. Exporting it from eclipse will not work, because your mod needs to be reobfuscated to work in normal Minecraft. Once you ran this command, your jar will be in build/libs. Well i did that and its not working. It says that the build failed because it could not copy mcmod.info What is that?
July 15, 201411 yr "setTextureName(Novacraft.MODID + ":" + "novasword");" This is your problem. Take a closer look at it!
July 15, 201411 yr Why do you insist on being generally unhelpful and arrogant? @ckazakeich, what Kriki98 should have told you is that the method is called setBlockTextureName .
July 15, 201411 yr Why do you insist on being generally unhelpful and arrogant? @ckazakeich, what Kriki98 should have told you is that the method is called setBlockTextureName . Would it be setItemTextureName ? Since it is a sword it would be an item.
July 15, 201411 yr Author Why do you insist on being generally unhelpful and arrogant? @ckazakeich, what Kriki98 should have told you is that the method is called setBlockTextureName . Would it be setItemTextureName ? Since it is a sword it would be an item. Thankyou, but nothing has worked. I didnt try setBlockTexture because you know, swords are items lol. Any other suggestions?
July 15, 201411 yr diesieben07 gave you the answer. The others are reasons it might or might not work properly, not why it won't run. It shouldn't care if you dont' have a "mcmod.info" file. But if it thinks you need it lookup up how to make one and put it in the appropriate folder. This is all releted to how you setup your folder structure, eclipse environement, and how you are compiling the mod. Look up some tutorials on it. The material from Wuppy are always a great help. Long time Bukkit & Forge Programmer Happy to try and help
July 15, 201411 yr Why do you insist on being generally unhelpful and arrogant? I shouldn`t tell him to use .setBlocTextureName. That will cause problems. Just trying to help him don't know whats wrong in that.
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.