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;
}
}
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.
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.
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.
0
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:
My mod constructor under load method:
My ModSeeds.class:
0
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.
0
Nice, I studied your page and fixed it
Thanks so much.
0
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.
0
Just copy the code from my unsolved thread.
http://www.minecraftforum.net/topic/1717631-im-lost-projectile-render/
0
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".
0
0
0
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.
0
0
0
You will need to set up your ClientProxy and CommonProxy to make it SMP compatible.
0
0
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.
0