Hello, I need someone to tell me what the following crash error means:
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 [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 230b2475 --------
Generated 1/31/12 7:56 AM
Minecraft: Minecraft 1.1
OS: Mac OS X (x86_64) version 10.7.2
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: Intel HD Graphics 3000 OpenGL Engine version 2.1 APPLE-7.12.9, Intel Inc.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
at net.minecraft.src.ModLoader.init(ModLoader.java:708)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 498
at net.minecraft.src.Block.<init>(Block.java:173)
at net.minecraft.src.Block.<init>(Block.java:203)
at net.minecraft.src.StyxOre.<init>(StyxOre.java:10)
at net.minecraft.src.mod_StyxOre.<clinit>(mod_StyxOre.java:10)
... 15 more
--- END ERROR REPORT 4c2b0a3c ----------
If you want my code, I will send it to you through a PM.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 498
at net.minecraft.src.Block.<init>(Block.java:173)
at net.minecraft.src.Block.<init>(Block.java:203)
at net.minecraft.src.StyxOre.<init>(StyxOre.java:10)
at net.minecraft.src.mod_StyxOre.<clinit>(mod_StyxOre.java:10)
Yeah. You are getting an array out of bounds exception because you are trying to access an array segment that is... well... out of bounds.
Think of it as having a 10 section high bookshelf and trying to place a book on the 20th shelf.
Try reducing the ID to bellow 255, and preferably to an ID that isn't already occupied. :smile.gif:
EDIT: Ups. Didn't notice your edit. I'm too slow. xD
If you want my code, I will send it to you through a PM.
TMDR Rules!!!
Are you using a block ID above 255 by any chance?
That may be my problem. My block ID is 498.
EDIT: Thank you! now that I've fixed it, I can finally release the complete version of my mod!
TMDR Rules!!!
Yeah. You are getting an array out of bounds exception because you are trying to access an array segment that is... well... out of bounds.
Think of it as having a 10 section high bookshelf and trying to place a book on the 20th shelf.
Try reducing the ID to bellow 255, and preferably to an ID that isn't already occupied. :smile.gif:
EDIT: Ups. Didn't notice your edit. I'm too slow. xD