Jump to content

huntervang

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by huntervang

  1. Eclipse console

    2012-08-27 18:03:38 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.71.289 for Minecraft client:1.3.2, server:1.3.2 loading

    2012-08-27 18:03:40 [iNFO] [sTDOUT] 27 achievements

    2012-08-27 18:03:40 [iNFO] [sTDOUT] 195 recipes

    2012-08-27 18:03:40 [iNFO] [sTDOUT] Setting user: Player324, -

    2012-08-27 18:03:40 [iNFO] [sTDERR] Client asked for parameter: server

    2012-08-27 18:03:40 [iNFO] [sTDOUT] LWJGL Version: 2.4.2

    2012-08-27 18:03:40 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization

    2012-08-27 18:03:40 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization

    2012-08-27 18:03:40 [iNFO] [ForgeModLoader] Searching /Users/Hunter/Desktop/mcp/jars/mods for mods

    2012-08-27 18:03:41 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 3 mods to load

    2012-08-27 18:03:41 [iNFO] [sTDOUT] Starting up SoundSystem...

    2012-08-27 18:03:41 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

    2012-08-27 18:03:41 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

    2012-08-27 18:03:42 [iNFO] [sTDOUT] OpenAL initialized.

    2012-08-27 18:03:42 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

    2012-08-27 18:03:42 [sEVERE] [ForgeModLoader]

    Forge Mod Loader (coremods) Unloaded->Constructed->Pre-initialized->Initialized

    Minecraft Forge (coremods) Unloaded->Constructed->Pre-initialized->Initialized

    Poldo (bin) Unloaded->Constructed->Pre-initialized->Errored

    2012-08-27 18:03:42 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

    2012-08-27 18:03:42 [sEVERE] [ForgeModLoader] Caught exception from Huntervang_Poldo

    2012-08-27 18:03:52 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:106)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:603)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:217)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:734)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680)

    2012-08-27 18:03:52 [iNFO] [sTDERR] Caused by: java.lang.reflect.InvocationTargetException

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:308)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:127)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:85)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:602)

    2012-08-27 18:03:52 [iNFO] [sTDERR] ... 4 more

    2012-08-27 18:03:52 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

    2012-08-27 18:03:52 [iNFO] [sTDERR] at net.minecraft.src.ItemStack.<init>(ItemStack.java:46)

    2012-08-27 18:03:52 [iNFO] [sTDERR] at poldo.common.Poldo.load(Poldo.java:36)

    2012-08-27 18:03:52 [iNFO] [sTDERR] ... 30 more

     

     

     

    Minecraft log

     

     

          Minecraft has crashed!     

          ----------------------     

     

    Minecraft has stopped running because it encountered a problem; Failed to start game

    This error has been saved to /Users/Hunter/Desktop/mcp/jars/./crash-reports/crash-2012-08-27_18.03.52-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.

     

     

     

    --- BEGIN ERROR REPORT b70ae2de --------

    Generated 8/27/12 6:03 PM

     

    - Minecraft Version: 1.3.2

    - Operating System: Mac OS X (x86_64) version 10.7.4

    - Java Version: 1.6.0_33, Apple Inc.

    - Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

    - Memory: 1027358176 bytes (979 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

    - JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

    - LWJGL: 2.4.2

    - OpenGL: ATI Radeon HD 4670 OpenGL Engine GL version 2.1 ATI-7.18.18, ATI Technologies Inc.

    - Is Modded: Definitely; 'forge,fml'

    - Type: Client

    - Texture Pack: Default

    - Profiler Position: N/A (disabled)

     

    cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException

    at cpw.mods.fml.common.LoadController.transition(LoadController.java:106)

    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:603)

    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:217)

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

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

    at java.lang.Thread.run(Thread.java:680)

    Caused by: java.lang.reflect.InvocationTargetException

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

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

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

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

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

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

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

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

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

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

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

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

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

    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:602)

    ... 4 more

    Caused by: java.lang.NullPointerException

    at net.minecraft.src.ItemStack.<init>(ItemStack.java:46)

    at poldo.common.Poldo.load(Poldo.java:36)

    ... 30 more

    --- END ERROR REPORT 266b2988 ----------

     

     

     

     

     

    All my mod code

    name poldo.common/Poldo.java

     

    package poldo.common;

     

    import net.minecraft.src.Block;

    import net.minecraft.src.ModLoader;

    import net.minecraft.src.Item;

    import net.minecraft.src.ItemStack;

    import net.minecraftforge.common.DungeonHooks;

    import cpw.mods.fml.common.Mod;

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

    import cpw.mods.fml.common.SidedProxy;

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

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

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

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

     

    @Mod(modid = "Huntervang_Poldo", name = "Poldo", version = "1.3.2")

    @NetworkMod(clientSideRequired = true, serverSideRequired = false)

     

    public class Poldo

    {

        public static Block catblock;

        public static Item catingot;

        public static Item catfood;

     

        @SidedProxy(clientSide = "poldo.client.ClientProxyPoldo", serverSide = "poldo.common.CommonProxyPoldo")

        public static CommonProxyPoldo proxy;

     

        @Init

        public void load(FMLInitializationEvent event)

        {

            catblock = new BlockOres(230, 0).setStepSound(Block.soundStoneFootstep).setHardness(3F).setResistance(1.0F).setBlockName("catblock");

            GameRegistry.registerBlock(catblock);

            LanguageRegistry .addName(catblock, "CatBlock");

            catfood = new ItemPoldoFood(551, 8, true).setIconIndex(2).setItemName("catfood");

            LanguageRegistry.addName(catfood, "CatFish");

            GameRegistry.addSmelting(catblock.blockID, new ItemStack(catingot), 0.1F);

            catingot = new ItemPoldo(550).setIconIndex(1).setItemName("catitem");

            LanguageRegistry.addName(catingot, "CatIngot");

            DungeonHooks.addDungeonLoot(new ItemStack(catingot), 10, 2, 5);

            GameRegistry.addRecipe(new ItemStack(catfood), new Object[]

                    {

                        "XXX", 'X', Block.dirt

                    });

        }

    }

     

    name poldo.common/BlockOres.java

     

    package poldo.common;

     

    import java.util.Random;

     

    import net.minecraft.src.Block;

    import net.minecraft.src.CreativeTabs;

    import net.minecraft.src.Material;

    import net.minecraft.src.StepSound;

     

    public class BlockOres extends Block

    {

        public BlockOres(int par1, int par2)

        {

            super(par1, par2, Material.rock);

            this.setCreativeTab(CreativeTabs.tabBlock);

        }

     

        public String getTextureFile()

        {

            return "/TutTextures.png";

        }

     

        public int idDropped(int par1, Random par2Random, int par3)

        {

            return Poldo.catingot.shiftedIndex;

        }

    }

     

    name poldo.common/ItemPoldo.java

     

    package poldo.common;

     

    import net.minecraft.src.CreativeTabs;

    import net.minecraft.src.Item;

     

    public class ItemPoldo extends Item

    {

        public ItemPoldo(int i)

        {

            super(i);

            maxStackSize = 64;

            this.setTabToDisplayOn(CreativeTabs.tabMaterials);

        }

     

        public String getTextureFile()

        {

            return "/TutTextures.png";

        }

    }

     

    name poldo.common/CommonProxyPoldo.java

     

    package poldo.common;

     

    public class CommonProxyPoldo

    {

        public void registerRenderThings()

        {

        }

    }

     

    name poldo.client/ClientProxyPoldo.java

     

    package poldo.client;

     

    import poldo.common.CommonProxyPoldo;

    import net.minecraftforge.client.MinecraftForgeClient;

     

    public class ClientProxyPoldo extends CommonProxyPoldo

    {

        @Override

        public void registerRenderThings()

        {

            MinecraftForgeClient.preloadTexture("/TutTextures.png");

        }

    }

     

    name poldo.common/ItemPoldoFood.java

     

    package poldo.common;

     

    import net.minecraft.src.CreativeTabs;

    import net.minecraft.src.EntityPlayer;

    import net.minecraft.src.EnumAction;

    import net.minecraft.src.Item;

    import net.minecraft.src.ItemFood;

    import net.minecraft.src.ItemStack;

    import net.minecraft.src.PotionEffect;

    import net.minecraft.src.World;

     

    public class ItemPoldoFood extends ItemFood

    {

        /** Number of ticks to run while 'EnumAction'ing until result. */

        public final int itemUseDuration;

     

        /** The amount this food item heals the player. */

        private final int healAmount;

        private final float saturationModifier;

     

        /** Whether wolves like this food (true for raw and cooked porkchop). */

        private final boolean isWolfsFavoriteMeat;

     

        /**

        * If this field is true, the food can be consumed even if the player don't need to eat.

        */

        private boolean alwaysEdible;

     

        /**

        * represents the potion effect that will occurr upon eating this food. Set by setPotionEffect

        */

        private int potionId;

     

        /** set by setPotionEffect */

        private int potionDuration;

     

        /** set by setPotionEffect */

        private int potionAmplifier;

     

        /** probably of the set potion effect occurring */

        private float potionEffectProbability;

     

        public ItemPoldoFood(int par1, int par2, float par3, boolean par4)

        {

            super(par1, par2, par3, par4);

            this.itemUseDuration = 32;

            this.healAmount = par2;

            this.isWolfsFavoriteMeat = par4;

            this.saturationModifier = par3;

            this.setTabToDisplayOn(CreativeTabs.tabFood);

        }

     

        public ItemPoldoFood(int par1, int par2, boolean par3)

        {

            this(par1, par2, 0.6F, par3);

        }

     

        public ItemStack onFoodEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)

        {

            --par1ItemStack.stackSize;

            par3EntityPlayer.getFoodStats().addStats(this);

            par2World.playSoundAtEntity(par3EntityPlayer, "random.burp", 0.5F, par2World.rand.nextFloat() * 0.1F + 0.9F);

            this.func_77849_c(par1ItemStack, par2World, par3EntityPlayer);

            return par1ItemStack;

        }

     

        protected void func_77849_c(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)

        {

            if (!par2World.isRemote && this.potionId > 0 && par2World.rand.nextFloat() < this.potionEffectProbability)

            {

                par3EntityPlayer.addPotionEffect(new PotionEffect(this.potionId, this.potionDuration * 20, this.potionAmplifier));

            }

        }

     

        /**

        * How long it takes to use or consume an item

        */

        public int getMaxItemUseDuration(ItemStack par1ItemStack)

        {

            return 32;

        }

     

        /**

        * returns the action that specifies what animation to play when the items is being used

        */

        public EnumAction getItemUseAction(ItemStack par1ItemStack)

        {

            return EnumAction.eat;

        }

     

        /**

        * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer

        */

        public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)

        {

            if (par3EntityPlayer.canEat(this.alwaysEdible))

            {

                par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack));

            }

     

            return par1ItemStack;

        }

     

        public int getHealAmount()

        {

            return this.healAmount;

        }

     

        /**

        * gets the saturationModifier of the ItemFood

        */

        public float getSaturationModifier()

        {

            return this.saturationModifier;

        }

     

        /**

        * Whether wolves like this food (true for raw and cooked porkchop).

        */

        public boolean isWolfsFavoriteMeat()

        {

            return this.isWolfsFavoriteMeat;

        }

     

        /**

        * sets a potion effect on the item. Args: int potionId, int duration (will be multiplied by 20), int amplifier,

        * float probability of effect happening

        */

        public ItemFood setPotionEffect(int par1, int par2, int par3, float par4)

        {

            this.potionId = par1;

            this.potionDuration = par2;

            this.potionAmplifier = par3;

            this.potionEffectProbability = par4;

            return this;

        }

     

        public String getTextureFile()

        {

            return "/TutTextures.png";

        }

     

        /**

        * Set the field 'alwaysEdible' to true, and make the food edible even if the player don't need to eat.

        */

        public ItemFood setAlwaysEdible()

        {

            this.alwaysEdible = true;

            return this;

        }

    }

     

     

     

     

    I put the names above the piece of code these are not in the real code.

    example: name poldo.common/Poldo.java

     

    Thanks in advance for helping me.

×
×
  • Create New...

Important Information

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