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

Alright, I'm new to modding. I am creating a mod called Final Craft. This is my first forge mod, and I plan on making this mod HUGE. But Minecraft keeps crashing when I add in Emu Materials. Here is the Crash Report:

 

  ----------------------     

 

Minecraft has stopped running because it encountered a problem; Failed to start game

 

A full error report has been saved to C:\Users\austin.smith\Desktop\forge 1.4.7\mcp\jars\.\crash-reports\crash-2013-01-14_10.32.11-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 3dc504af --------

Full report at:

C:\Users\austin.smith\Desktop\forge 1.4.7\mcp\jars\.\crash-reports\crash-2013-01-14_10.32.11-client.txt

Please show that file to Mojang, NOT just this screen!

 

Generated 1/14/13 10:32 AM

 

-- System Details --

Details:

Minecraft Version: 1.4.6

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_05, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 928593248 bytes (885 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.25 FML v4.6.12.511 Minecraft Forge 6.5.0.471 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized

Finalcraft [FinalCraft] (bin) Unloaded->Constructed->Errored

LWJGL: 2.4.2

OpenGL: AMD Radeon HD 6320 Graphics GL version 4.1.10834 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.IllegalArgumentException: Illegal object for naming null

at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:95)

at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)

at finalcraft.Finalcraft.preInit(Finalcraft.java:59)

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:478)

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: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(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: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.loadMods(Loader.java:485)

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

at net.minecraft.client.Minecraft.startGame(Minecraft.java:410)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:744)

at java.lang.Thread.run(Unknown Source)

--- END ERROR REPORT 6cf67260 ----------

 

 

If anyone could help me, it would be much appreciated. Thankyou

  • Author

You are trying to name a null-reference. Show us your code then we can tell you what's wrong.

 

Yeah, here is my code to the core file

 

package finalcraft;

 

import net.minecraft.block.Block;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemSword;

import net.minecraft.item.ItemStack;

import net.minecraft.item.crafting.FurnaceRecipes;

import net.minecraft.block.material.Material;

import net.minecraftforge.common.AchievementPage;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.ForgeHooks;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

@Mod(modid="Finalcraft", name="FinalCraft", version="1.0.0")

@NetworkMod(clientSideRequired=true, serverSideRequired=false)

public class Finalcraft {

 

 

        @Instance("FinalCraft")

        public static Finalcraft instance;

        public final static Item UltimatiumIngot = new UltimatiumIngot(5001);

        public final static Item HolyEnergy = new HolyEnergy(5002);

        public final static Item ChargedUltimatiumIngot = new ChargedUltimatiumIngot(5003);

        public final static Item UltimatiumCross = new UltimatiumCross(5004);

        public final static Block UltimatiumBlock = new UltimatiumBlock(501, 0, Material.iron);

        public final static Block UltimatiumOre = new UltimatiumOre(502, 1, Material.rock);

        public static Item UltimaSword;

        static EnumToolMaterial Ultimatium = EnumHelper.addToolMaterial("Ultimatium", 100, 50000, 100F, 100, 50000);

        @SidedProxy(clientSide="finalcraft.client.ClientProxy", serverSide="finalcraft.CommonProxy")

        public static CommonProxy proxy;

       

       

       

        @PreInit

        public void preInit(FMLPreInitializationEvent event) {

        LanguageRegistry.addName(UltimatiumIngot, "Ultimatium Ingot");

        LanguageRegistry.addName(HolyEnergy, "Holy Energy");

        LanguageRegistry.addName(ChargedUltimatiumIngot, "Charged Ultimatium Ingot");

        LanguageRegistry.addName(UltimatiumCross, "Ultimatium Cross");

        LanguageRegistry.addName(UltimatiumBlock, "Ultimatium Block");

        LanguageRegistry.addName(UltimatiumOre, "Ultimatium Ore");

          GameRegistry.registerBlock(UltimatiumBlock);

          GameRegistry.registerBlock(UltimatiumOre);

          LanguageRegistry.addName(UltimaSword, "Ultima Sword");    

         

     

        }

       

        @Init

        public void load(FMLInitializationEvent event) {

                proxy.registerRenderers();

             

               

}

       

        @PostInit

        public void postInit(FMLPostInitializationEvent event) {

               

        GameRegistry.addRecipe(new ItemStack(Finalcraft.ChargedUltimatiumIngot), "xxx", "xyx", "xxx",

                'x', HolyEnergy, 'y', UltimatiumIngot);

        GameRegistry.addRecipe(new ItemStack(Finalcraft.UltimatiumCross), " x ", "xxx", " x ",

                'x', ChargedUltimatiumIngot);

        GameRegistry.addRecipe(new ItemStack(Finalcraft.UltimatiumBlock), "xxx", "xxx", "xxx",

                'x', UltimatiumCross);

        GameRegistry.addSmelting(Finalcraft.UltimatiumOre.blockID, new ItemStack(Finalcraft.UltimatiumIngot), 50.0f);

           

        }

}

  • Author

Never Mind People, I fixed it, It was simple that I didn't even notice the Null in the public static area. But thanks anyways

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.