Posted March 31, 201312 yr Ok so I a getting this weird error that I have no clue how to fix, the error is: Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem; Failed to start game A full error report has been saved to C:\Users\Jesse\Desktop\forge\mcp\jars\.\crash-reports\crash-2013-03-30_18.56.29-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 859f13b9 -------- Full report at: C:\Users\Jesse\Desktop\forge\mcp\jars\.\crash-reports\crash-2013-03-30_18.56.29-client.txt Please show that file to Mojang, NOT just this screen! Generated 3/30/13 6:56 PM -- System Details -- Details: Minecraft Version: 1.5.1 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.6.0_43, Sun Microsystems Inc. Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc. Memory: 1012572616 bytes (965 MB) / 1071579136 bytes (1021 MB) up to 1071579136 bytes (1021 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 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.44 FML v5.1.10.618 Minecraft Forge 7.7.1.618 4 mods loaded, 4 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML [Forge Mod Loader] (coremods) Unloaded->Constructed Forge [Minecraft Forge] (coremods) Unloaded->Constructed CoolioItems [CoolioItems] (bin) Unloaded->Errored LWJGL: 2.4.2 OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 GL version 3.3.10179 Compatibility Profile Context, 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 java.lang.NullPointerException at net.minecraft.item.ItemSword.<init>(ItemSword.java:23) at Eclipse.mod.CoolioItems.item.ItemEmeraldSword.<init>(ItemEmeraldSword.java:11) at Eclipse.mod.CoolioItems.common.CoolioItems.<init>(CoolioItems.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at cpw.mods.fml.common.FMLModContainer$JavaAdapter.getNewInstance(FMLModContainer.java:129) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:487) 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:45) 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.propogateStateMessage(LoadController.java:165) 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:45) 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:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:502) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source) --- END ERROR REPORT d8101350 ---------- Here is my main class which is CoolioItems: package Eclipse.mod.CoolioItems.common; import net.minecraftforge.common.EnumHelper; import Eclipse.mod.CoolioItems.Armor.EmeraldArmor; import Eclipse.mod.CoolioItems.item.ItemEmeraldAxe; import Eclipse.mod.CoolioItems.item.ItemEmeraldHoe; import Eclipse.mod.CoolioItems.item.ItemEmeraldPickaxe; import Eclipse.mod.CoolioItems.item.ItemEmeraldSpade; import Eclipse.mod.CoolioItems.item.ItemEmeraldSword; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.src.ModLoader; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "CoolioItems", name = "CoolioItems", version = "0.1.0") public class CoolioItems { @SidedProxy(clientSide = "Eclipse.mod.CoolioItems.common.ClientProxy", serverSide = "Eclipse.mod.CoolioItems.common.CommonProxy") public static CommonProxy proxy; //New Items //Emerald Tools public static Item EmeraldSword; public static Item EmeraldPickaxe; public static Item EmeraldAxe; public static Item EmeraldSpade; public static Item EmeraldHoe; //Emerald Armor public static Item EmeraldHelmet; public static Item EmeraldChestplate; public static Item EmeraldLeggings; public static Item EmeraldBoots; //Diamond = Emerald //Tools ("New Tool Material", harvestLevel, maxUses, efficiencyOnProperMaterial, damageVsEntity, enchantability) public static EnumToolMaterial DIAMOND = EnumHelper.addToolMaterial("Diamond", 3, 1250, 7.5F, 3, 10); //Armor public static EnumArmorMaterial armorEmerald = EnumHelper.addArmorMaterial("EMERALD", 29, new int []{3, 7, 3, 6}, 10); public CoolioItems() { //***Creating*** //Emerald Tools EmeraldSword = new ItemEmeraldSword(1860, DIAMOND).setUnlocalizedName("swordEmerald"); EmeraldPickaxe = new ItemEmeraldPickaxe(1861).setUnlocalizedName("pickaxeEmerald"); EmeraldAxe = new ItemEmeraldAxe(1862).setUnlocalizedName("hatchetEmerald"); EmeraldSpade = new ItemEmeraldSpade(1863).setUnlocalizedName("shovelEmerald"); EmeraldHoe = new ItemEmeraldHoe(1864).setUnlocalizedName("hoeEmerald"); //Emerald Armor EmeraldHelmet = new EmeraldArmor(1865,armorEmerald,ModLoader.addArmor("Emerald"), 0).setUnlocalizedName("helmetEmerald").setCreativeTab(CreativeTabs.tabCombat); EmeraldChestplate = new EmeraldArmor(1866,armorEmerald,ModLoader.addArmor("Emerald"), 1).setUnlocalizedName("chestplateEmerald").setCreativeTab(CreativeTabs.tabCombat); EmeraldLeggings = new EmeraldArmor(1867,armorEmerald,ModLoader.addArmor("Emerald"), 2).setUnlocalizedName("leggingsEmerald").setCreativeTab(CreativeTabs.tabCombat); EmeraldBoots = new EmeraldArmor(1868,armorEmerald,ModLoader.addArmor("Emerald"), 3).setUnlocalizedName("bootsEmerald").setCreativeTab(CreativeTabs.tabCombat); //***Naming*** //Emerald Tools LanguageRegistry.addName(EmeraldSword, "Emerald Sword"); LanguageRegistry.addName(EmeraldPickaxe, "Emerald Pickaxe"); LanguageRegistry.addName(EmeraldAxe, "Emerald Axe"); LanguageRegistry.addName(EmeraldSpade, "Emerald Shovel"); LanguageRegistry.addName(EmeraldHoe, "Emerald Hoe"); //Emerald Armor LanguageRegistry.addName(EmeraldHelmet, "Emerald Helmet"); LanguageRegistry.addName(EmeraldChestplate, "Emerald Chestplate"); LanguageRegistry.addName(EmeraldLeggings, "Emerald Leggings"); LanguageRegistry.addName(EmeraldBoots, "Emerald Boots"); //***Recipes*** //Emerald Tools GameRegistry.addRecipe(new ItemStack(EmeraldSword, 1), new Object []{ " X ", " X ", " * ", 'X', Item.emerald, '*', Item.stick }); GameRegistry.addRecipe(new ItemStack(EmeraldPickaxe, 1), new Object []{ "XXX", " * ", " * ", 'X', Item.emerald, '*', Item.stick }); GameRegistry.addRecipe(new ItemStack(EmeraldAxe, 1), new Object []{ "XX ", "X* ", " * ", 'X', Item.emerald, '*', Item.stick }); GameRegistry.addRecipe(new ItemStack(EmeraldSpade, 1), new Object []{ " X ", " * ", " * ", 'X', Item.emerald, '*', Item.stick }); GameRegistry.addRecipe(new ItemStack(EmeraldHoe, 1), new Object []{ "XX ", " * ", " * ", 'X', Item.emerald, '*', Item.stick }); //Emerald Armor GameRegistry.addRecipe(new ItemStack(EmeraldHelmet, 1), new Object []{ "XXX", "X X", " ", 'X', Item.emerald, }); GameRegistry.addRecipe(new ItemStack(EmeraldChestplate, 1), new Object []{ "X X", "XXX", "XXX", 'X', Item.emerald, }); GameRegistry.addRecipe(new ItemStack(EmeraldLeggings, 1), new Object []{ "XXX", "X X", "X X", 'X', Item.emerald, }); GameRegistry.addRecipe(new ItemStack(EmeraldBoots, 1), new Object []{ " ", "X X", "X X", 'X', Item.emerald, }); } } Here is my sword class which is called ItemEmeraldSword: package Eclipse.mod.CoolioItems.item; import Eclipse.mod.CoolioItems.common.CoolioItems; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.ItemSword; public class ItemEmeraldSword extends ItemSword { public ItemEmeraldSword(int i, EnumToolMaterial m) { super(i, CoolioItems.DIAMOND); this.setCreativeTab(CreativeTabs.tabCombat); } public String getTextureFile(){ return "/alltextures/textures/items/swordEmerald.png"; } } Please help D:
March 31, 201312 yr at net.minecraft.item.ItemSword.<init>(ItemSword.java:23) at Eclipse.mod.CoolioItems.item.ItemEmeraldSword.<init>(ItemEmeraldSword.java:11) at Eclipse.mod.CoolioItems.common.CoolioItems.<init>(CoolioItems.java:53) This right here tells you were the errors are occuring. net.minecraft.item.ItemSword.<init>(ItemSword.java:23) 23 is line 23, did you modify a default class?? ItemEmeraldSword line 11 = super(i, CoolioItems.DIAMOND); CoolioItems line 53 = EmeraldSword = new ItemEmeraldSword(1860, DIAMOND).setUnlocalizedName("swordEmerald"); Those lines are causing your errors.
April 1, 201312 yr I'm having a similar problem, and yes we know what lines are giving the errors, I've only had this problem in 1.5.1 also, was something changed, or is there a bug in a certain version of forge that causes this? To make it detailed, line 23 in itemsword is this.setMaxDamage(par2EnumToolMaterial.getMaxUses()); This sets the items durability, which from what I understand should be done in the enum. I also get this weird error that also has to do with enums, except it is with the vanilla ones. Is there a bug in forge or something of that sort? ------> http://pastebin.com/54mAgimp This is the creator of the Rareores mod! Be sure to check it out at
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.