Jump to content

Recommended Posts

Posted

I added 3 foods to the game that have no survial obtainable way yet, and when it runs it gets a nullpoint exception.

 

Main Class

 

package b.OOMOD;

 

import b.OOMOD.Weapons.weaponCBdagger;

import b.OOMOD.Weapons.weaponCBhammer;

import b.OOMOD.Weapons.weaponCBsword;

import b.OOMOD.Weapons.weaponIGknife;

import b.OOMOD.Weapons.weaponIGknife;

import b.OOMOD.Weapons.weaponIGsword;

import b.OOMOD.Weapons.weaponSIaxe;

import b.OOMOD.Weapons.weaponSIdagger;

import b.OOMOD.Weapons.weaponSIsword;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import b.OOMOD.Ingots.*;

import b.OOMOD.genWorld.OOWorldGen;

import b.OOMOD.ore.CBore;

 

 

 

//mod info

@Mod(modid = "OOMOD", name = "Odysessues' Oddity", version = "1.0.0")

//client server

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

 

public class OOmain{

//Weapon defining

public static Item CBsword;

public static Item CBdagger;

public static Item CBhammer;

public static Item SIsword;

public static Item SIdagger;

public static Item SIaxe;

public static Item IGsword;

public static Item IGknife;

 

 

 

//define weapon material

public static EnumToolMaterial SWORD = EnumHelper.addToolMaterial("SWORD", 0, 2134, 8.0F, 11.0F, 10);

public static EnumToolMaterial DAGGER = EnumHelper.addToolMaterial("DAGGER", 0, 2134, 8.0F, 5.0F, 10);

public static EnumToolMaterial HAMMER = EnumHelper.addToolMaterial("HAMMER", 0, 2134, 8.0F, 15.0F, 10);

 

 

//Ingot Defining

public static Item CBingot;

public static Item SIingot;

public static Item IGingot;

public static Item Marble;

public static Item DMarble;

 

//Ore Defining

public static Block CBore;

public static Block SIore;

public static Block IGore;

public static Block More;

 

//Ore Block  Defining

public static Block MBlock;

public static Block MPillar;

public static Block MBlockC;

public static Block DMBlock;

public static Block DMPillar;

public static Block DMBlockC;

 

//food defining

public static Item Grapes;

public static Item Nectar;

public static Item Ambrosia;

 

 

//Ore World Gen Defining

EventManager OOWorldGen = new EventManager();

 

//event handler

@EventHandler

public void Load(FMLPreInitializationEvent Event){

 

//Weapon Settings

CBsword = new weaponCBsword(5000, SWORD).setUnlocalizedName("OOmod:CBsword ");

CBdagger = new weaponCBdagger(5001, DAGGER).setUnlocalizedName("OOmod:CBdagger ");

CBhammer = new weaponCBhammer(5002, HAMMER).setUnlocalizedName("OOmod:CBhammer ");

SIsword = new weaponSIsword(5003, SWORD).setUnlocalizedName("OOmod:SIsword ");

SIdagger = new weaponSIdagger(5004, DAGGER).setUnlocalizedName("OOmod:SIdagger ");

SIaxe = new weaponSIaxe(5005, HAMMER).setUnlocalizedName("OOmod:SIaxe ");

IGsword = new weaponIGsword(5006, SWORD).setUnlocalizedName("OOmod:IGsword ");

IGknife = new weaponIGknife(5007, DAGGER).setUnlocalizedName("OOmod:IGdagger ");

 

 

//ingot setting

CBingot = new CBingot(5008).setUnlocalizedName("OOmod:CBingot");

SIingot = new SIingot(5009).setUnlocalizedName("OOmod:SIingot");

IGingot = new IGingot(5010).setUnlocalizedName("OOmod:IGingot");

Marble = new Marble(5011).setUnlocalizedName("OOmod:Marble");

DMarble = new DMarble(5012).setUnlocalizedName("OOmod:DMarble");

 

 

//ore settings

CBore = new b.OOMOD.ore.CBore(4000, Material.rock).setUnlocalizedName("OOmod:CBore");

SIore = new b.OOMOD.ore.SIore(4001, Material.rock).setUnlocalizedName("OOmod:SIore");

IGore = new b.OOMOD.ore.IGore(4002, Material.rock).setUnlocalizedName("OOmod:IGore");

More = new b.OOMOD.ore.More(4003, Material.rock).setUnlocalizedName("OOmod:More");

 

//Block setting

MBlock = new b.OOMOD.block.Mblock(4004, Material.rock).setUnlocalizedName("OOmod:MBlock");

MPillar = new b.OOMOD.block.MPillar(4005, Material.rock).setUnlocalizedName("OOmod:MPillar");

MBlockC = new b.OOMOD.block.MblockC(4006, Material.rock).setUnlocalizedName("OOmod:MBlockC");

DMBlock = new b.OOMOD.block.DMblock(4007, Material.rock).setUnlocalizedName("OOmod:DMBlock");

DMPillar = new b.OOMOD.block.DMPillar(4008, Material.rock).setUnlocalizedName("OOmod:DMPillar");

DMBlockC = new b.OOMOD.block.DMblockC(4009, Material.rock).setUnlocalizedName("OOmod:DMBlockC");

 

//Food settings

Grapes = new b.OOMOD.Food.Grapes(5013, 4, 0.4F, false).setUnlocalizedName("OOmod:Grapes");

Ambrosia = new b.OOMOD.Food.Ambrosia(5014, 20, 5F, false).setUnlocalizedName("OOmod:Ambrosia");

Nectar = new b.OOMOD.Food.Nectar(5015, 20, 5F, false).setUnlocalizedName("OOmod:Nectar");

 

 

//Food Game Register

GameRegistry.registerItem(Grapes, "Grapes");

GameRegistry.registerItem(Ambrosia, "Ambrosia");

GameRegistry.registerItem(Nectar, "Nectar");

 

//Weapon Game Register

GameRegistry.registerItem(CBsword, "CBsword");

GameRegistry.registerItem(CBdagger, "CBdagger");

GameRegistry.registerItem(CBhammer, "CBhammer");

GameRegistry.registerItem(SIsword, "SIsword");

GameRegistry.registerItem(SIdagger, "SIdagger");

GameRegistry.registerItem(SIaxe, "SIaxe");

GameRegistry.registerItem(IGsword, "IGsword");

GameRegistry.registerItem(IGknife, "IGknife");

 

//Ingot Game Register

GameRegistry.registerItem(CBingot, "CBingot");

GameRegistry.registerItem(SIingot, "SIingot");

GameRegistry.registerItem(IGingot, "IGingot");

GameRegistry.registerItem(Marble, "Marble");

GameRegistry.registerItem(DMarble, "DMarble");

 

 

//Ore Game Register

GameRegistry.registerBlock(CBore, "CBore");

GameRegistry.registerBlock(SIore, "SIore");

GameRegistry.registerBlock(IGore, "IGore");

GameRegistry.registerBlock(More, "More");

 

//Block Game Register

GameRegistry.registerBlock(MBlock, "MBlock");

GameRegistry.registerBlock(MPillar, "MPillar");

GameRegistry.registerBlock(MBlockC, "MBlockC");

GameRegistry.registerBlock(DMBlock, "DMBlock");

GameRegistry.registerBlock(DMPillar, "DMPillar");

GameRegistry.registerBlock(DMBlockC, "DMBlockC");

 

 

//World Gen Game Register

GameRegistry.registerWorldGenerator(OOWorldGen);

 

MinecraftForge.setBlockHarvestLevel(CBore, "pickaxe", 1);

MinecraftForge.setBlockHarvestLevel(SIore, "pickaxe", 1);

MinecraftForge.setBlockHarvestLevel(IGore, "pickaxe", 1);

MinecraftForge.setBlockHarvestLevel(More, "pickaxe", 1);

 

//Food Language Register

LanguageRegistry.addName(Grapes, "Grapes");

LanguageRegistry.addName(Ambrosia, "Ambrosia");

LanguageRegistry.addName(Nectar, "Flask of Nectar");

 

//Weapon Language Register

LanguageRegistry.addName(CBsword, "Celestial Bronze Sword");

LanguageRegistry.addName(CBdagger, "Celestial Bronze Dagger");

LanguageRegistry.addName(CBhammer, "Celestial Bronze Hammer");

LanguageRegistry.addName(SIsword, "Stygian Iron Sword");

LanguageRegistry.addName(SIdagger, "Stygian Iron Dagger");

LanguageRegistry.addName(SIaxe, "Stygian Iron Axe");

LanguageRegistry.addName(IGsword, "Imperial Gold Sword");

LanguageRegistry.addName(IGknife, "Imperial Gold Dagger");

 

//Ingot Language Register

LanguageRegistry.addName(CBingot, "Celestial Bronze Ingot");

LanguageRegistry.addName(SIingot, "Stygian Iron Ingot");

LanguageRegistry.addName(IGingot, "Imperial Gold Ingot");

LanguageRegistry.addName(Marble, "Marble");

LanguageRegistry.addName(DMarble, "Dark Marble");

 

//Ore Language Register

LanguageRegistry.addName(CBore, "Celestial Bronze Ore");

LanguageRegistry.addName(SIore, "Stygian Iron Ore");

LanguageRegistry.addName(IGore, "Imperial Gold Ore");

LanguageRegistry.addName(More, "Marble Ore");

 

//Block Language Register

LanguageRegistry.addName(MBlock, "Marble Block");

LanguageRegistry.addName(MPillar, "Marble Pillar");

LanguageRegistry.addName(MBlockC, "Engraved Marble");

LanguageRegistry.addName(DMBlock, "Dark Marble Block");

LanguageRegistry.addName(DMPillar, "Dark Marble Pillar");

LanguageRegistry.addName(DMBlockC, "Engraved Dark Marble");

 

 

//weapon Crafting recipes

GameRegistry.addRecipe(new ItemStack(CBsword), new Object[] {" C "," C "," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(CBdagger), new Object[] {"  "," C "," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(CBhammer), new Object[] {"CCC","CSC"," S ", 'C', CBingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIsword), new Object[] {" I "," I "," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIdagger), new Object[] {"  "," I "," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(SIaxe), new Object[] {"III","ISI"," S ", 'I', SIingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(IGsword), new Object[] {" G "," G "," S ", 'G', IGingot, 'S', Item.stick});

GameRegistry.addRecipe(new ItemStack(IGknife), new Object[] {"  "," G "," S ", 'G', IGingot, 'S', Item.stick});

 

//ingot crafting recipe

GameRegistry.addRecipe(new ItemStack(DMarble), new Object[] {" S ","SMS ", 'M', Marble, 'S', SIingot});

 

 

//Smelting Recipes

GameRegistry.addSmelting(CBore.blockID, new ItemStack(CBingot), 1.0F);

GameRegistry.addSmelting(SIore.blockID, new ItemStack(SIingot), 1.0F);

GameRegistry.addSmelting(IGore.blockID, new ItemStack(IGingot), 1.0F);

GameRegistry.addSmelting(More.blockID, new ItemStack(Marble), 1.0F);

 

}}

 

 

 

 

 

Grape class

 

package b.OOMOD.Food;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.item.ItemFood;

 

 

 

public class Grapes extends ItemFood{

 

public Grapes(int id, int hunger, float saturation, boolean wolfFood) {

super(id, hunger, saturation, wolfFood);

 

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister register) {

this.itemIcon = register.registerIcon("oomod:Grapes");

 

}}

 

 

 

 

 

ambrosia class

 

package b.OOMOD.Food;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.item.ItemFood;

 

 

 

public class Ambrosia extends ItemFood{

 

public Ambrosia(int id, int hunger, float saturation, boolean wolfFood) {

super(id, hunger, saturation, wolfFood);

 

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister register) {

this.itemIcon = register.registerIcon("oomod:Ambrosia");

 

}}

 

 

 

 

 

nectar class

 

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.item.ItemFood;

 

 

 

public class Nectar extends ItemFood{

 

public Nectar(int id, int hunger, float saturation, boolean wolfFood) {

super(id, hunger, saturation, wolfFood);

 

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister register) {

this.itemIcon = register.registerIcon("oomod:Nectar");

 

}}

 

 

 

 

Console output

 

Feb 01, 2014 12:26:09 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Feb 01, 2014 12:26:09 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Feb 01, 2014 12:26:09 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Java is Java HotSpot Client VM, version 1.7.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

2014-02-01 12:26:10 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

2014-02-01 12:26:11 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg

2014-02-01 12:26:11 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2014-02-01 12:26:13 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

2014-02-01 12:26:13 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg

2014-02-01 12:26:13 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

2014-02-01 12:26:14 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

2014-02-01 12:26:19 [iNFO] [Minecraft-Client] Setting user: Player612

2014-02-01 12:26:27 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2014-02-01 12:26:31 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2014-02-01 12:26:33 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2014-02-01 12:26:33 [iNFO] [sTDOUT] MinecraftForge v9.11.1.965 Initialized

2014-02-01 12:26:33 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.965 Initialized

2014-02-01 12:26:34 [iNFO] [sTDOUT] Replaced 111 ore recipies

2014-02-01 12:26:34 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2014-02-01 12:26:35 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Matt\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\config\logging.properties

2014-02-01 12:26:35 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2014-02-01 12:26:35 [iNFO] [ForgeModLoader] Searching C:\Users\Matt\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\mods for mods

2014-02-01 12:26:54 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2014-02-01 12:26:54 [iNFO] [mcp] Activating mod mcp

2014-02-01 12:26:54 [iNFO] [FML] Activating mod FML

2014-02-01 12:26:54 [iNFO] [Forge] Activating mod Forge

2014-02-01 12:26:54 [iNFO] [OOMOD] Activating mod OOMOD

2014-02-01 12:26:54 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2014-02-01 12:26:54 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2014-02-01 12:26:54 [WARNING] [Odysessues' Oddity] Mod Odysessues' Oddity is missing a pack.mcmeta file, things may not work well

2014-02-01 12:26:54 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Odysessues' Oddity

2014-02-01 12:26:54 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2014-02-01 12:26:54 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2014-02-01 12:26:55 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2014-02-01 12:26:55 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

2014-02-01 12:26:55 [sEVERE] [ForgeModLoader]

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized

Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized

OOMOD{1.0.0} [Odysessues' Oddity] (bin) Unloaded->Constructed->Errored

2014-02-01 12:26:55 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2014-02-01 12:26:55 [sEVERE] [ForgeModLoader] Caught exception from OOMOD

java.lang.StringIndexOutOfBoundsException: String index out of range: 7

at java.lang.String.charAt(Unknown Source)

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:210)

at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:245)

at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:240)

at b.OOMOD.OOmain.Load(OOmain.java:223)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-02-01 12:26:55 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2014-02-01 12:26:55 [iNFO] [sTDOUT] // You should try our sister game, Minceraft!

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] Time: 01/02/14 12:26

2014-02-01 12:26:55 [iNFO] [sTDOUT] Description: Initializing game

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] java.lang.StringIndexOutOfBoundsException: String index out of range: 7

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.String.charAt(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:210)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:245)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:240)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at b.OOMOD.OOmain.Load(OOmain.java:223)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

2014-02-01 12:26:55 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] -- Head --

2014-02-01 12:26:55 [iNFO] [sTDOUT] Stacktrace:

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.String.charAt(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:210)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:245)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:240)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at b.OOMOD.OOmain.Load(OOmain.java:223)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:522)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] -- Initialization --

2014-02-01 12:26:55 [iNFO] [sTDOUT] Details:

2014-02-01 12:26:55 [iNFO] [sTDOUT] Stacktrace:

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-02-01 12:26:55 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-02-01 12:26:55 [iNFO] [sTDOUT]

2014-02-01 12:26:55 [iNFO] [sTDOUT] -- System Details --

2014-02-01 12:26:55 [iNFO] [sTDOUT] Details:

2014-02-01 12:26:55 [iNFO] [sTDOUT] Minecraft Version: 1.6.4

2014-02-01 12:26:55 [iNFO] [sTDOUT] Operating System: Windows 7 (x86) version 6.1

2014-02-01 12:26:55 [iNFO] [sTDOUT] Java Version: 1.7.0_45, Oracle Corporation

2014-02-01 12:26:55 [iNFO] [sTDOUT] Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

2014-02-01 12:26:55 [iNFO] [sTDOUT] Memory: 852223256 bytes (812 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)

2014-02-01 12:26:55 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

2014-02-01 12:26:55 [iNFO] [sTDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

2014-02-01 12:26:55 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed

2014-02-01 12:26:55 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

2014-02-01 12:26:55 [iNFO] [sTDOUT] FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active

2014-02-01 12:26:55 [iNFO] [sTDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

2014-02-01 12:26:55 [iNFO] [sTDOUT] FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized

2014-02-01 12:26:55 [iNFO] [sTDOUT] Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized

2014-02-01 12:26:55 [iNFO] [sTDOUT] OOMOD{1.0.0} [Odysessues' Oddity] (bin) Unloaded->Constructed->Errored

2014-02-01 12:26:55 [iNFO] [sTDOUT] Launched Version: 1.6

2014-02-01 12:26:55 [iNFO] [sTDOUT] LWJGL: 2.9.0

2014-02-01 12:26:55 [iNFO] [sTDOUT] OpenGL: GeForce 9800 GTX/9800 GTX+/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation

2014-02-01 12:26:55 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'

2014-02-01 12:26:55 [iNFO] [sTDOUT] Type: Client (map_client.txt)

2014-02-01 12:26:55 [iNFO] [sTDOUT] Resource Pack: Default

2014-02-01 12:26:55 [iNFO] [sTDOUT] Current Language: English (US)

2014-02-01 12:26:55 [iNFO] [sTDOUT] Profiler Position: N/A (disabled)

2014-02-01 12:26:55 [iNFO] [sTDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

2014-02-01 12:26:55 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Matt\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Odeyessues's oddity mod 1.6.4\mcp\jars\.\crash-reports\crash-2014-02-01_12.26.55-client.txt

 

 

Posted

your issue is here:

 

//ingot crafting recipe

      GameRegistry.addRecipe(new ItemStack(DMarble), new Object[] {" S ","SMS ", 'M', Marble, 'S', SIingot});

 

you have an extra space on the second line of the recipe.

 

The log tells you this:

 

at b.OOMOD.OOmain.Load(OOmain.java:223) = check line 223.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.