Jump to content

Crash when starting


Thor597

Recommended Posts

I get a crash when starting, it says I am naming my object null but I am not, crash log:

 


java.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:93)
at thedecopack.medieval.blocks.MedievalBlocks.namesEnglish(MedievalBlocks.java:32)
at thedecopack.medieval.blocks.MedievalBlocks.<init>(MedievalBlocks.java:15)
at thedecopack.medieval.DecoMedieval.Init(DecoMedieval.java:37)
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:440)
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.initializeMods(Loader.java:651)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:196)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:465)
at net.minecraft.client.Minecraft.run(Minecraft.java:752)
at java.lang.Thread.run(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] java.lang.IllegalArgumentException: Illegal object for naming null
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:93)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at thedecopack.medieval.blocks.MedievalBlocks.namesEnglish(MedievalBlocks.java:32)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at thedecopack.medieval.blocks.MedievalBlocks.<init>(MedievalBlocks.java:15)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at thedecopack.medieval.DecoMedieval.Init(DecoMedieval.java:37)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:440)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:196)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:465)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:752)
2012-10-31 20:50:21 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)

 

MedievalBlocks:


package thedecopack.medieval.blocks;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.src.Block;
import net.minecraft.src.BlockWood;

public class MedievalBlocks
{

public static Block redCedarPlanks;

public MedievalBlocks()
{
	this.namesEnglish("en_US");
	this.namesEnglish("en_PT");
	this.namesEnglish("en_GB");
	this.namesEnglish("en_CA");
	this.namesEnglish("en_AU");
	this.namesNorwegian("nb_NO");

	this.redCedarPlanks = (new BlockWoodMedieval(2200, 0)).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("wood").setRequiresSelfNotify();

	RegisterBlocks(new Block[]
			{
			redCedarPlanks,
			});
}

public void namesEnglish(String lang)
{
	LanguageRegistry.instance().addNameForObject(redCedarPlanks, lang, "Red Cedar Planks");
}

public void namesNorwegian(String lang)
{
	LanguageRegistry.instance().addNameForObject(redCedarPlanks, lang, "Røde Sederplanker");
}

private void RegisterBlocks(Block ablock []) 
{
	Block ablock1[] = ablock;
	int i = ablock1.length;
	for(int j = 0; j < i; j++)
	{
		Block block = ablock1[j];
		GameRegistry.registerBlock(block);
	}	
}
}

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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