Hello
I have created a mod in eclipse using minecraft forge and it works fine in eclipse........but when I package the classes into a zip file minecraft crashes.
Error Screen Text
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to D:\Users\**** ******\AppData\Roaming\.minecraft\crash-reports\crash-2013-03-23_20.05.15-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 9aa77dc4 --------
Full report at:
D:\Users\Drew Graham\AppData\Roaming\.minecraft\crash-reports\crash-2013-03-23_20.05.15-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 3/23/13 8:05 PM
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows Vista (x86) version 6.0
Java Version: 1.7.0_15, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode), Oracle Corporation
Memory: 336171248 bytes (320 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.3.605 Minecraft Forge 7.7.0.605 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
PALMODSCSMOD [CSMOD] (Csmod.zip) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: Intel 945G GL version 1.4.0 - Build 7.14.10.1504, Intel
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: faithful32pack.zip
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: Csmod.Main
at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:504)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)
at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Csmod.Main
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
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:314)
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.propogateStateMessage(LoadController.java:165)
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:314)
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:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:494)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 32 more
--- END ERROR REPORT 75b42809 ----------
if you can help send me a message.
or quote this post.
Also it WORKED IN ECLIPSE
thanks
-djamison
Some people get this error, but I'm not sure what causes it, have you packaged everything into the zip?
EDIT: I presonally prefer looking through the source code for figuring things out rather than asking, in this case I knew that wool is dropped with metadata, so I checked EntitySheep
can someone walk me through how to;
-create a meta data block
-that grows overtime into stage into one of several meta data parts of this block. (eg base bush into green bush or blue bush or red bush)
-each meta data block part has a different blockdrop and different texture.
-how to make the grown block (green bush, blue bush, red bush) when broken the block goes back to the bare bush.
I tried to explain best i can if you need me to clarify i will try any help its greatly received.
1) That's already one of the tutorials...
2) Look at wheat, and there's a thing called Random to help you out
3) -.-
4) Look through the base block code to find the method you need
I'm not here to write your mod for you, just to teach the basics
That's one of the tutorials -.-
Some people get this error, but I'm not sure what causes it, have you packaged everything into the zip?
You give an itemstack as a drop... All you have to do is add a parameter....
What is the error?
{
return 3;
}
Well, yes, but what does the error say?
EDIT: I presonally prefer looking through the source code for figuring things out rather than asking, in this case I knew that wool is dropped with metadata, so I checked EntitySheep
1) That's already one of the tutorials...
2) Look at wheat, and there's a thing called Random to help you out
3) -.-
4) Look through the base block code to find the method you need
I'm not here to write your mod for you, just to teach the basics
WOOHOO! Wait, what are we talking about...