Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.5]Crash when adding a name to my items
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
coldblade2000

[1.5]Crash when adding a name to my items

By coldblade2000, March 20, 2013 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

coldblade2000    0

coldblade2000

coldblade2000    0

  • Tree Puncher
  • coldblade2000
  • Members
  • 0
  • 11 posts
Posted March 20, 2013

 

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.

  • Quote

Share this post


Link to post
Share on other sites

jordan30001    15

jordan30001

jordan30001    15

  • Creeper Killer
  • jordan30001
  • Members
  • 15
  • 157 posts
Posted March 20, 2013

the variable muttonRaw is null and null cannot be named

  • Quote

Share this post


Link to post
Share on other sites

coldblade2000    0

coldblade2000

coldblade2000    0

  • Tree Puncher
  • coldblade2000
  • Members
  • 0
  • 11 posts
Posted March 21, 2013

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.

  • Quote

Share this post


Link to post
Share on other sites

coldblade2000    0

coldblade2000

coldblade2000    0

  • Tree Puncher
  • coldblade2000
  • Members
  • 0
  • 11 posts
Posted March 21, 2013

Nevermind, I found the problem. I added the name BEFORE I declared the variables.

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DaemonUmbra
      help please

      By DaemonUmbra · Posted 9 minutes ago

      1.8 is no longer supported on this forum due to its age. Please update to a modern version of Minecraft to receive support.
    • juls07
      help please

      By juls07 · Posted 25 minutes ago

      paste bin url: https://pastebin.com/NQVt0awd something about io netty im on linux please help
    • DaemonUmbra
      NO SE ME ABRE

      By DaemonUmbra · Posted 30 minutes ago

      Please keep this forum in English. Please read the Logs section of my signature below and provide the appropriate log in the appropriate manner.
    • DaemonUmbra
      crash pixelmon 1.12.2

      By DaemonUmbra · Posted 31 minutes ago

      User was banned for piracy. Buy the game.
    • DaemonUmbra
      Minecraft won’t launch after installing any version of forge

      By DaemonUmbra · Posted 32 minutes ago

      I don't know, but not here
  • Topics

    • juls07
      1
      help please

      By juls07
      Started 26 minutes ago

    • Sfgg
      1
      NO SE ME ABRE

      By Sfgg
      Started 2 hours ago

    • Crashreport
      1
      crash pixelmon 1.12.2

      By Crashreport
      Started 1 hour ago

    • Kstar
      12
      Minecraft won’t launch after installing any version of forge

      By Kstar
      Started 2 hours ago

    • J0WAY
      18
      [1.12.2] How do i make it so my sword renders in my mobs hand?.

      By J0WAY
      Started Thursday at 09:10 PM

  • Who's Online (See full list)

    • diesieben07
    • JetCobblestone
    • loordgek
    • DaemonUmbra
    • MarkNutt0
    • vaartis
    • Lea9ue
    • J0WAY
    • gendeathrow
    • dreemlees
    • DragonITA
    • ROMVoid
    • Mag
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.5]Crash when adding a name to my items
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community