MC Modding
Please register and join the community!

[Unanswered] Code error upon startclient

MC Modding :: Help :: Help

View previous topic View next topic Go down

[Unanswered] Code error upon startclient

Post by mastereric on Thu Dec 01, 2011 5:55 pm

I am having some trouble with my code. When I use recompile, I get no errors. But when I try to use startclient, I get this error log:
Spoiler:
Mods loaded: 1
ModLoader Beta 1.8.1

Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem.

If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured.



--- BEGIN ERROR REPORT 5424363c --------
Generated 12/1/11 10:54 AM

Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6320 series Graphics version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.

java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: Slot 141 is already occupied by net.minecraft.src.Blockcoalblock@5cb88f42 when adding net.minecraft.src.Blockcharcoalblock@58c5659c
at net.minecraft.src.Block.<init>(Block.java:50)
at net.minecraft.src.Block.<init>(Block.java:77)
at net.minecraft.src.Blockcharcoalblock.<init>(Blockcharcoalblock.java:5)
at net.minecraft.src.mod_CRBlocks.<clinit>(mod_CRBlocks.java:10)
... 15 more
--- END ERROR REPORT ee0b4a25 ----------
What is my problem? *Source Attached*
Attachments
Source.zip (8 Kb) Downloaded 55 times
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by the undecided t on Thu Dec 01, 2011 9:53 pm

you have two blocks set with an ID number of 141... atleast I think thats the issue
avatar
the undecided t
Helper

Posts : 45
Join date : 2011-10-20
Age : 21

View user profile http://www.blacklistgaming.org/forums

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Thu Dec 01, 2011 11:28 pm

Here is the related snipplet of code:
Code:
  public static final Block coalblock = new Blockcoalblock(141, 0).setHardness(2F).setResistance(5.0F).setBlockName("coalblock");
  public static final Block charcoalblock = new Blockcharcoalblock(141, 1).setHardness(2F).setResistance(5.0F).setBlockName("charcoalblock");
  public static final Block redstoneblock = new Blockredstoneblock(143, 0).setHardness(2F).setResistance(5.0F).setBlockName("redstoneblock");
 
the coalblock and charcoalblock shouldn't have a confict; the coal block is 141 damage value 0 and the charcoal block is 141 damage value 1. Unless (141, 1) isn't the way to do 141 damage value 1.
EDIT: I changed 'new Blockcharcoalblock(141, 1)' to 'new Blockcharcoalblock(142, 0)' and I get this error:
Spoiler:
Code:
Mods loaded: 1
ModLoader Beta 1.8.1

      Minecraft has crashed!     
      ----------------------     

Minecraft has stopped running because it encountered a problem.

If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured.



--- BEGIN ERROR REPORT 5424363c --------
Generated 12/1/11 4:36 PM

Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6320 series Graphics version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Character
   at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:256)
   at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
   at net.minecraft.src.mod_CRBlocks.<init>(mod_CRBlocks.java:29)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
   at java.lang.Class.newInstance0(Class.java:372)
   at java.lang.Class.newInstance(Class.java:325)
   at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
   at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
   at net.minecraft.src.ModLoader.init(ModLoader.java:692)
   at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
   at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
   at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
   at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
   at net.minecraft.client.Minecraft.run(Minecraft.java:438)
   at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 65e29a6e ----------
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Fri Dec 02, 2011 10:23 pm

*Bump* I'd like to have this mod done and on our server by the weekend. Please help?
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by TWell92 on Sat Dec 03, 2011 6:28 pm

It's hard to help with just that small snippet of code.
avatar
TWell92
Member

Posts : 9
Join date : 2011-10-24
Age : 24

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Sat Dec 03, 2011 11:22 pm

What else do you need? I have the source code in the top post(just change the charcoal block from (141, 1) to (142, 0)). Unless somehow I can get a more complete error report... how do I do that with MCP's startclient?
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Wed Dec 07, 2011 1:17 am

TWell92 wrote:It's hard to help with just that small snippet of code.
what other Bit of code woUld i need? the source can be downloaded froM the first Post.
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Sat Dec 17, 2011 5:19 pm

...I don't want to seem impatient, but it's been more than a WEEK and nobody has gotten close to solving my problem! Evil or Very Mad
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by TWell92 on Sun Dec 18, 2011 4:11 am

You're coding this for 1.7.3?
avatar
TWell92
Member

Posts : 9
Join date : 2011-10-24
Age : 24

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by mastereric on Wed Dec 28, 2011 12:40 am

The current code is 1.8, but give me the 1.0 because I'm updating.
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Unanswered] Code error upon startclient

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum