• 0

    posted a message on Custom Seeds Crash (Custom Crops)
    Hello.

    I been having a weird crash on my seeds constructor in the load method in my mod.class.

    Very weird, since Eclipse shows no errors.

    Well, I really dont know what is causing this issue.

    I have messed with different codes, looked up the Plants wiki in forge, and tried out different stuff.

    I finally gave up on this one.

    So could anyone help me?

    Error:

    2013-03-09 23:39:35 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
    2013-03-09 23:39:35 [SEVERE] [ForgeModLoader]
    mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    Edra [Edra] (bin) Unloaded->Constructed->Pre-initialized->Errored
    2013-03-09 23:39:35 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
    2013-03-09 23:39:35 [SEVERE] [ForgeModLoader] Caught exception from Edra
    java.lang.NullPointerException
    at edra.common.Edra.load(Edra.java:269)
    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:485)
    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:140)
    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:83)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
    at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
    at net.minecraft.client.Minecraft.run(Minecraft.java:744)
    at java.lang.Thread.run(Thread.java:680)
    2013-03-09 23:39:35 [INFO] [STDERR] java.lang.NullPointerException
    2013-03-09 23:39:35 [INFO] [STDERR] at edra.common.Edra.load(Edra.java:269)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2013-03-09 23:39:35 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
    2013-03-09 23:39:35 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2013-03-09 23:39:35 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    2013-03-09 23:39:35 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2013-03-09 23:39:35 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2013-03-09 23:39:35 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    2013-03-09 23:39:35 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    2013-03-09 23:39:35 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
    2013-03-09 23:39:35 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
    2013-03-09 23:39:35 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
    2013-03-09 23:39:35 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
    2013-03-09 23:39:35 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
    2013-03-09 23:39:35 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744)
    2013-03-09 23:39:35 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680)
    2013-03-09 23:39:37 [INFO] [STDERR] Someone is closing me!


    My mod constructor under load method:

    ItemEdraSeeds = new ItemEdraSeeds(this.ItemEdraSeedsID, BlockEdraCrop.blockID, Block.tilledField.blockID).setItemName("Mistery Seeds").setIconIndex(24);


    My ModSeeds.class:

    package edra.common;
    import net.minecraft.block.Block;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemSeeds;
    import net.minecraft.item.ItemStack;
    import net.minecraft.world.World;
    import net.minecraftforge.common.EnumPlantType;
    import net.minecraftforge.common.IPlantable;
    public class ItemEdraSeeds extends ItemSeeds implements IPlantable{
    public ItemEdraSeeds(int id, int plantId, int soilId)
    {
    super(id,plantId,soilId);
    }
    
    public String getTextureFile()
    {
    return "/derp/derpy.png";
    }
    
    public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world,
    	 int bx, int by, int bz, int side, float px, float py, float pz) {
    return false;
    }
    @Override
    public EnumPlantType getPlantType(World world, int x, int y, int z) {
    // TODO Auto-generated method stub
    return null;
    }
    @Override
    public int getPlantID(World world, int x, int y, int z) {
    // TODO Auto-generated method stub
    return Block.crops.blockID;
    }
    @Override
    public int getPlantMetadata(World world, int x, int y, int z) {
    // TODO Auto-generated method stub
    return Block.tilledField.blockID;
    }
    }
    Posted in: Modification Development
  • 0

    posted a message on (HELP!)Grenades[1.6.2]MCP ModLoader and FORGE[GUN: SOLVED]
    Quote from mrgreen33gamer

    Hello, I Need some help making my next and i'm trying to add some guns and grenades, i'v been searching the web on google and youtube and i could not find any thing the is in 1.4.7 and is not outdated...

    If you could give me source code to test i would be happy

    MCP:

    Minecraft
    Coder
    Pack.

    i have had experience with ModLoader MCP a lot, I watched Scmouns's MCP coding [modding tutorials] tutorials and they are what helped me start out, i can code blocks, achievements, Items, TNT, Mobs, mob Textures, mob arm leg movement, bosses, recipes, custom sound, custom music, and ETC...

    I have not yet had the much experience with MCP FORGE yet...

    Pleases leave a comment or CODE!

    THANK YOU!


    You are basically asking someone else to make the mod for you.

    There is no fun on having someone else making you a mod.

    Do it yourself.

    ;)
    Posted in: Modification Development
  • 0

    posted a message on I'm lost (Projectile Render)
    Quote from lockNload147

    Here is how it works
    http://www.minecraft...__140#howto_mod

    And what Vanilla entities use
    https://docs.google....d=0&output=html


    Nice, I studied your page and fixed it :P

    Thanks so much.
    Posted in: Modification Development
  • 0

    posted a message on I'm lost (Projectile Render)
    Quote from TechGuy543

    Change the view distance argument when registering it if using a ModEntity.


    Can you gimme the code for the view distance? And also, it goes on Render or Entity?

    Sorry I have very little knowledge when it comes to renders.

    Thanks in advance.
    Posted in: Modification Development
  • 0

    posted a message on Rendering item projectiles [SOLVED]
    Quote from creepytroll69

    *bump* again
    Doesn't anyone know how to do this?
    And yes I tried copying the RenderSnowball class.


    Just copy the code from my unsolved thread.

    http://www.minecraftforum.net/topic/1717631-im-lost-projectile-render/
    Posted in: Modification Development
  • 0

    posted a message on How Do I Make A Custom Mob Drop A Custom Item?
    *Sigh*

    Very easily.

    Instead of putting on the statement "Block.cake" as he did just do:

    "YourModName.YourItem.itemID".

    If it is a block just do "blockID" instead of "itemID".
    Posted in: Modification Development
  • 0

    posted a message on I'm lost (Projectile Render)
    No one? :steve_sneaky:
    Posted in: Modification Development
  • 0

    posted a message on I'm lost (Projectile Render)
    Bump. Again :I
    Posted in: Modification Development
  • 0

    posted a message on Removing Arrow Gravity?
    Quote from Bearattack55

    Wrong section
    Post in modding discussion.


    Why so? He needs help in his Modification Development, which is the name of this section. Pretty sure doesn't wants discuss about mods.

    I find your reply very useless here.
    Posted in: Modification Development
  • 0

    posted a message on Removing Arrow Gravity?
    I'm pretty sure I saw a "setGravity" method when messing around with arrows code. Keep looking, it's there.
    Posted in: Modification Development
  • 0

    posted a message on Cannot Get Custom Mobs To Work! Help Please? :)
    1 word. Modloader.
    Posted in: Modification Development
  • 0

    posted a message on [Forge] Making mod SMP compatible
    Quote from RossenX

    At the very least post your error so we know what the issue is. I know people don't like posting their raw code, so post the error first then if that's not enough you'll have to ether post the small chunk that's causing the trouble or at the very least describe the issue.

    Usualy when something crashes in the server, it means that it's looking for a varaible(Or Method) that is client-side only. Causing it to crash with a null-pointer exception(or no such class/method). Make sure all your varaibles in your mob are initilized in the constructor class, even if they are not meant to do anything when the mob spawns. Check where it crashes and on which line and check out that variable/method.

    This can range from rendering to variables in the mob.


    You will need to set up your ClientProxy and CommonProxy to make it SMP compatible.
    Posted in: Modification Development
  • 0

    posted a message on I'm lost (Projectile Render)
    Bump.
    Posted in: Modification Development
  • 0

    posted a message on [HELP FAST!] MCP Suddenly giving me errors?
    Quote from nexuss1

    I tried reinstalling MCP, it appears to have no effect at all. Backing up the java files is difficult to do, as I will need to do it by hand. I cannot recompile do to this error, so I cannot use the changedsrc or reobfuscate functions. By the looks of it, it may have something to do with my Java itself, but I don't know for sure. I really need this fixed though. :(


    In my old mac I think I messed up RetroGuard (the program which obuscates your SRC), not sure how though, but it happens. All I could tell you is to reinstall Java, and if that doesn't work, the easier solution is to format your mac. Thats how I fixed mine.

    i have no clue of what else could be going on with that error log, so thats why I am giving you that recommendation.

    Good luck.
    Posted in: Modification Development
  • 0

    posted a message on [HELP FAST!] MCP Suddenly giving me errors?
    Weird error... I would recommend backing up your .java files and reinstalling MCP.
    Posted in: Modification Development
  • To post a comment, please .