[Unanswered] Code error upon startclient
3 posters
MC Modding :: Help :: Help
Page 1 of 1
[Unanswered] Code error upon startclient
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 ----------
- Attachments
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
you have two blocks set with an ID number of 141... atleast I think thats the issue
Re: [Unanswered] Code error upon startclient
Here is the related snipplet of code:
EDIT: I changed 'new Blockcharcoalblock(141, 1)' to 'new Blockcharcoalblock(142, 0)' and I get this error:
- 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");
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 ----------
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
*Bump* I'd like to have this mod done and on our server by the weekend. Please help?
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
It's hard to help with just that small snippet of code.
TWell92- Member
- Posts : 9
Join date : 2011-10-24
Age : 32
Re: [Unanswered] Code error upon startclient
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?
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
what other Bit of code woUld i need? the source can be downloaded froM the first Post.TWell92 wrote:It's hard to help with just that small snippet of code.
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
...I don't want to seem impatient, but it's been more than a WEEK and nobody has gotten close to solving my problem!
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Re: [Unanswered] Code error upon startclient
You're coding this for 1.7.3?
TWell92- Member
- Posts : 9
Join date : 2011-10-24
Age : 32
Re: [Unanswered] Code error upon startclient
The current code is 1.8, but give me the 1.0 because I'm updating.
mastereric- Member
- Posts : 30
Join date : 2011-10-26
Similar topics
» [UnAnswered]Tool Error.
» [Unanswered] Mapping error
» [Answered] Armor code gives error
» [UnAnswered]Creating Liquids Error
» [Unanswered] sword code
» [Unanswered] Mapping error
» [Answered] Armor code gives error
» [UnAnswered]Creating Liquids Error
» [Unanswered] sword code
MC Modding :: Help :: Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum