Hanii Puppy Posted February 22, 2013 Posted February 22, 2013 I'm just starting with forge and I'm following Wuppy's tutorials (adapting for Netbeans) and I've run into two issues. My mod is just two classes; a new block class and a main class. The first issue being that when I run the mod in minecraft with forge through netbeans, I get no sound. Secondly, when I take the .jar file compiled from the dist folder and place it into the mods folder of my copy of minecraft independent of netbeans, I get this error. I've made sure that the copies of MCP and forge match those I'm using in Netbeans. Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to /Users/chris/Library/Application Support/minecraft/crash-reports/crash-2013-02-22_17.30.36-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash --- BEGIN ERROR REPORT 3ecd29bf -------- Full report at: /Users/chris/Library/Application Support/minecraft/crash-reports/crash-2013-02-22_17.30.36-client.txt Please show that file to Mojang, NOT just this screen! Generated 22/02/13 17:30 -- System Details -- Details: Minecraft Version: 1.4.7 Operating System: Mac OS X (x86_64) version 10.6.8 Java Version: 1.6.0_37, Apple Inc. Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc. Memory: 1031508328 bytes (983 MB) / 1071579136 bytes (1021 MB) up to 2138767360 bytes (2039 MB) JVM Flags: 3 total; -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar -Xms1024M -Xmx2048M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized HaniiPuppy_ThaumicCondenser [Thaumic Condenser] (ThaumicCondenser.jar) Unloaded->Constructed->Pre-initialized->Errored LWJGL: 2.4.2 OpenGL: ATI Radeon HD 5670 OpenGL Engine GL version 2.1 ATI-1.6.36, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: cpw.mods.fml.common.registry.GameData.newItemAdded(Lnet/minecraft/item/Item;)V at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:658) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207) at net.minecraft.client.Minecraft.a(Minecraft.java:456) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NoSuchMethodError: cpw.mods.fml.common.registry.GameData.newItemAdded(Lnet/minecraft/item/Item;)V at net.minecraft.item.Item.<init>(Item.java:250) at net.minecraft.item.ItemTool.<init>(ItemTool.java:26) at net.minecraft.item.ItemSpade.<init>(ItemSpade.java:12) at net.minecraft.item.Item.<clinit>(Item.java:38) at net.minecraft.block.Block.<clinit>(Block.java:1319) at Puppy.Hanii.Forge.ThaumicCondenser.ThaumicCondenserMain.Load(ThaumicCondenserMain.java:18) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657) ... 5 more --- END ERROR REPORT 73f01001 ---------- Here are the only two classes I've added. package Puppy.Hanii.Forge.ThaumicCondenser; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.block.Block; @Mod(modid = "HaniiPuppy_ThaumicCondenser", name = "Thaumic Condenser", version = "a1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class ThaumicCondenserMain { @Init public void Load(FMLInitializationEvent Event) { TutorialBlock = new BlockTutorialBlock(250, 0).setBlockName("TutorialBlock"); GameRegistry.registerBlock(TutorialBlock, "TutorialBlock"); LanguageRegistry.addName(TutorialBlock, "Tutorial Block"); } public static Block TutorialBlock; } and package Puppy.Hanii.Forge.ThaumicCondenser; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class BlockTutorialBlock extends Block { public BlockTutorialBlock(int ItemID, int TextureID) { super(ItemID, TextureID, Material.pumpkin); this.setCreativeTab(CreativeTabs.tabDecorations); } } Thanks for any help. Like I said, I'm following the mentioned tutorials, and given the tiny amount of code I've added, I can't really see what I've done wrong :\ Everything's working fine without that code >< Thankyou. EDIT: The seemingly offending line ( TutorialBlock = new BlockTutorialBlock(250, 0).setBlockName("TutorialBlock"); ) is letter-by-letter the same as in the blocks tutorial :\ EDIT: I've sorted the sound issue, but not the crashing issue. Quote
thebest108 Posted February 23, 2013 Posted February 23, 2013 Don't us netbeans, your overcomplicating things Quote "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
Hanii Puppy Posted February 23, 2013 Author Posted February 23, 2013 Don't us netbeans, your overcomplicating things That's opinion, not fact. I find Netbeans easier to use - and using an IDE I don't like and amn't as familiar with would be over-complicating things. Also, °"you're". Quote
jjjet42 Posted November 2, 2013 Posted November 2, 2013 The No sound part is an easy fix. go under '/jars' copy your assets folder into your "/eclipse/Minecraft" when you use Eclipse minecraft uses /jars for all its saves and sound file. when you use eclipse it looks for them in your /eclipse folder Quote
Recommended Posts
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.