1

Weird Coding error

X_pilot 2/16/14 9:42 am
569
2/25/2014 4:48 pm
Hey there!
I'm X_pilot and I am fairly bad a coding. I was recently messing around with some things in a mod of mine, when I made the game crash. I was trying to make a simple block. The block does nothing.
Here is the crash log:
Click to reveal
Feb 16, 2014 9:30:06 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Feb 16, 2014 9:30:06 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Feb 16, 2014 9:30:06 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
2014-02-16 21:30:06 [INFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading
2014-02-16 21:30:06 [INFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.8.5, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
2014-02-16 21:30:06 [INFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-02-16 21:30:06 [INFO] [STDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-02-16 21:30:06 [INFO] [STDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg
2014-02-16 21:30:06 [SEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-02-16 21:30:07 [INFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 21:30:07 [INFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-02-16 21:30:07 [INFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}
2014-02-16 21:30:09 [INFO] [Minecraft-Client] Setting user: Player708
2014-02-16 21:30:09 [INFO] [Minecraft-Client] (Session ID is null)
2014-02-16 21:30:10 [INFO] [Minecraft-Client] LWJGL Version: 2.9.0
2014-02-16 21:30:10 [INFO] [Minecraft-Client] Reloading ResourceManager: Default
2014-02-16 21:30:10 [INFO] [STDOUT]
2014-02-16 21:30:10 [INFO] [STDOUT] Starting up SoundSystem...
2014-02-16 21:30:11 [INFO] [MinecraftForge] Attempting early MinecraftForge initialization
2014-02-16 21:30:11 [INFO] [STDOUT] MinecraftForge v9.11.1.916 Initialized
2014-02-16 21:30:11 [INFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized
2014-02-16 21:30:11 [INFO] [STDOUT] Initializing LWJGL OpenAL
2014-02-16 21:30:11 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
2014-02-16 21:30:11 [INFO] [STDOUT] Replaced 101 ore recipies
2014-02-16 21:30:11 [INFO] [MinecraftForge] Completed early MinecraftForge initialization
2014-02-16 21:30:11 [INFO] [ForgeModLoader] Reading custom logging properties from /Users/e1616900/Desktop/Minecraft Mod Making/Taco mod/mcp/jars/config/logging.properties
2014-02-16 21:30:11 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2014-02-16 21:30:11 [INFO] [STDOUT] OpenAL initialized.
2014-02-16 21:30:11 [INFO] [ForgeModLoader] Searching /Users/e1616900/Desktop/Minecraft Mod Making/Taco mod/mcp/jars/mods for mods
2014-02-16 21:30:11 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [ForgeModLoader] Forge Mod Loader has identified 5 mods to load
2014-02-16 21:30:13 [INFO] [mcp] Activating mod mcp
2014-02-16 21:30:13 [INFO] [FML] Activating mod FML
2014-02-16 21:30:13 [INFO] [Forge] Activating mod Forge
2014-02-16 21:30:13 [INFO] [XIS] Activating mod XIS
2014-02-16 21:30:13 [INFO] [Taco] Activating mod Taco
2014-02-16 21:30:13 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well
2014-02-16 21:30:13 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well
2014-02-16 21:30:13 [WARNING] [X_pilot's Instant Structures] Mod X_pilot's Instant Structures is missing a pack.mcmeta file, things may not work well
2014-02-16 21:30:13 [WARNING] [Untimate Taco Mod] Mod Untimate Taco Mod is missing a pack.mcmeta file, things may not work well
2014-02-16 21:30:13 [INFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:X_pilot's Instant Structures, FMLFileResourcePack:Untimate Taco Mod
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] SoundSystem shutting down...
2014-02-16 21:30:13 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] Starting up SoundSystem...
2014-02-16 21:30:13 [INFO] [ForgeModLoader] Registering Forge Packet Handler
2014-02-16 21:30:13 [INFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2014-02-16 21:30:13 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2014-02-16 21:30:13 [INFO] [STDOUT] // Oops.
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] Time: 2/16/14 9:30 PM
2014-02-16 21:30:13 [INFO] [STDOUT] Description: Initializing game
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] java.lang.ExceptionInInitializerError
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.Class.forName0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.Class.forName(Class.java:249)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:42)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:472)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:807)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-16 21:30:13 [INFO] [STDOUT] Caused by: java.lang.ArrayIndexOutOfBoundsException: 7473
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.block.Block.<init>(Block.java:347)
2014-02-16 21:30:13 [INFO] [STDOUT] at taco.blocks.Grinder_Trial_2.<init>(Grinder_Trial_2.java:10)
2014-02-16 21:30:13 [INFO] [STDOUT] at taco.main.<clinit>(main.java:43)
2014-02-16 21:30:13 [INFO] [STDOUT] ... 36 more
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2014-02-16 21:30:13 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] -- Head --
2014-02-16 21:30:13 [INFO] [STDOUT] Stacktrace:
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.Class.forName0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.Class.forName(Class.java:249)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:42)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:524)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2014-02-16 21:30:13 [INFO] [STDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)
2014-02-16 21:30:13 [INFO] [STDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:472)
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] -- Initialization --
2014-02-16 21:30:13 [INFO] [STDOUT] Details:
2014-02-16 21:30:13 [INFO] [STDOUT] Stacktrace:
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:807)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-02-16 21:30:13 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-02-16 21:30:13 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Method.java:597)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-02-16 21:30:13 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-02-16 21:30:13 [INFO] [STDOUT]
2014-02-16 21:30:13 [INFO] [STDOUT] -- System Details --
2014-02-16 21:30:13 [INFO] [STDOUT] Details:
2014-02-16 21:30:13 [INFO] [STDOUT] Minecraft Version: 1.6.4
2014-02-16 21:30:13 [INFO] [STDOUT] Operating System: Mac OS X (x86_64) version 10.8.5
2014-02-16 21:30:13 [INFO] [STDOUT] Java Version: 1.6.0_65, Apple Inc.
2014-02-16 21:30:13 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
2014-02-16 21:30:13 [INFO] [STDOUT] Memory: 1006618560 bytes (959 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
2014-02-16 21:30:13 [INFO] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2014-02-16 21:30:13 [INFO] [STDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-02-16 21:30:13 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
2014-02-16 21:30:13 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2014-02-16 21:30:13 [INFO] [STDOUT] FML: MCP v8.11 FML v6.4.20.916 Minecraft Forge 9.11.1.916 5 mods loaded, 5 mods active
2014-02-16 21:30:13 [INFO] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
2014-02-16 21:30:13 [INFO] [STDOUT] FML{6.4.20.916} [Forge Mod Loader] (bin) Unloaded->Constructed
2014-02-16 21:30:13 [INFO] [STDOUT] Forge{9.11.1.916} [Minecraft Forge] (bin) Unloaded->Constructed
2014-02-16 21:30:13 [INFO] [STDOUT] XIS{0.1.1} [X_pilot's Instant Structures] (bin) Unloaded
2014-02-16 21:30:13 [INFO] [STDOUT] Taco{0.0.1} [Untimate Taco Mod] (bin) Unloaded
2014-02-16 21:30:13 [INFO] [STDOUT] Launched Version: 1.6
2014-02-16 21:30:13 [INFO] [STDOUT] LWJGL: 2.9.0
2014-02-16 21:30:13 [INFO] [STDOUT] OpenGL: Intel HD Graphics 3000 OpenGL Engine GL version 2.1 INTEL-8.16.74, Intel Inc.
2014-02-16 21:30:13 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
2014-02-16 21:30:13 [INFO] [STDOUT] Type: Client (map_client.txt)
2014-02-16 21:30:13 [INFO] [STDOUT] Resource Pack: Default
2014-02-16 21:30:13 [INFO] [STDOUT] Current Language: English (US)
2014-02-16 21:30:13 [INFO] [STDOUT] Profiler Position: N/A (disabled)
2014-02-16 21:30:13 [INFO] [STDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2014-02-16 21:30:13 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# /Users/e1616900/Desktop/Minecraft Mod Making/Taco mod/mcp/jars/./crash-reports/crash-2014-02-16_21.30.13-client.txt


Here are the lines mentioned where the crash occurs:
Block.java:347
public Block(int par1, Material par2Material)
{
this.stepSound = soundPowderFootstep;
this.blockParticleGravity = 1.0F;
this.slipperiness = 0.6F;

[color=#FF0000]if (blocksList[par1] != null)[/color]
{
throw new IllegalArgumentException("Slot " + par1 + " is already occupied by " + blocksList[par1] + " when adding " + this);
}
else
{
this.blockMaterial = par2Material;
blocksList[par1] = this;
this.blockID = par1;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
opaqueCubeLookup[par1] = this.isOpaqueCube();
lightOpacity[par1] = this.isOpaqueCube() ? 255 : 0;
canBlockGrass[par1] = !par2Material.getCanBlockGrass();
}
}

Grinder_Trial_2.java:10
public class Grinder_Trial_2 extends Block {

public Grinder_Trial_2(int par1, Material par2Material) {
[color=#FF0000]super(par1, par2Material);[/color]
setUnlocalizedName("grinder");
setCreativeTab(main.tabTaco);
}

}


main.java:43
public static Block grinder = new Grinder_Trial_2(7473, Material.rock);


Can you please help me? I cannot continue the development of my mod until I can make blocks again! Please Please Help me!!!

Thanks
Posted by
X_pilot
Level 54 : Grandmaster Necromancer
100

  Have something to say?

JoinSign in

3

SR2610
02/25/2014 4:48 pm
Level 62 : High Grandmaster Programmer
I think there are two main errors.

Firstly your proxies may not be defined properly, check that they are.

Secondly, the blocks ID may be too high.
1
GamersMods
02/21/2014 12:06 pm
Level 58 : Grandmaster Programmer
Well for one why are you using colors? Second off do you have the common and client proxy defined?
1
Feetsalot
02/21/2014 11:37 am
Level 1 : New Miner
Did you modify the base block class, if so undo what you added because you will have to change everything relating to blocks. Otherwise check out this tutorial: https://www.youtube.com/watch?v=Aeb3IkrBhGY
1

Welcome