Posted March 20, 201312 yr 2013-03-20 17:07:14 [iNFO] [sTDERR] java.lang.IllegalArgumentException: Illegal object for naming null 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:112) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:120) 2013-03-20 17:07:14 [iNFO] [sTDERR] at tutorial.coldblademod.ColdbladeMod.load(ColdbladeMod.java:57) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 17:07:14 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:681) 2013-03-20 17:07:14 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-03-20 17:07:14 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-03-20 17:07:14 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-03-20 17:07:14 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728) 2013-03-20 17:07:14 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) Whenever I use LanguageRegistry.addName(muttonRaw, "Raw mutton"); the game crashed with the above log when starting the game.
March 21, 201312 yr Author What could be causing this? I don't get any errors in eclipse. Also muttonRaw is properly decalred and the game runs fine without the names.
March 21, 201312 yr Author Nevermind, I found the problem. I added the name BEFORE I declared the variables.
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.