Jump to content

[SOLVED]Mod release/installation (java ClassNotFoundError)


the_wiseman

Recommended Posts

Hi, guys. I'm having a small problem installing my first mod. It runs fine in Eclipse, but after running recompile.bat and reobfuscate.bat, and moving the class files/textures into a zip in the mods folder, Minecraft crashes at startup. I've tried a few variations of this (unzipped in mods folder, different levels of directory in the zip, putting class files straight into minecraft.jar) but it keeps saying my basemod file isn't found.

I have the same version forge (608) in the development environment and in my minecraft.jar.

 

I assume there's something really basic I've just missed, but help would be appreciated.

 

SOLUTION: In case anyone searches the error, it was related to the directories. The path of directories in the zip needs to be exactly the same as your package in the java class, so mine was:

mods/smallimprovements/SmallImprovements.class (and other classes)

mods/smallimprovements/textures/items/(item textures)

mods/smallimprovements/textures/blocks(block textures)

mods/smallimprovements/client/ClientProxy.class

 

If you have more/less subdivisions in your package, you'll need more/less folders to represent them in the file path.

 

My error was caused by zipping the project directory rather than the mods directory. Hope it helps someone in the future; search results gave a lot of people with this problem who solved it but didn't mention the specifics of how. The error message is pretty clear (there's no class file where you told it to look) but a bit cryptic to a newbie in that it doesn't explain the directory doesn't exist.

 

 

 

 

 

Forge modloader log

2013-03-27 06:32:51 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.608 for Minecraft 1.5.1 loading
2013-03-27 06:32:51 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_17, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
2013-03-27 06:32:51 [FINE] [ForgeModLoader] Java classpath at launch is {edit:trimmed because of length stretching page}
2013-03-27 06:32:51 [FINE] [ForgeModLoader] Enabling runtime deobfuscation
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] All core mods are successfully located
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Discovering coremods
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file argo-small-3.2.jar present and correct in lib dir
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file guava-14.0-rc3.jar present and correct in lib dir
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file asm-all-4.1.jar present and correct in lib dir
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file bcprov-jdk15on-148.jar present and correct in lib dir
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file deobfuscation_data_1.5.1.zip present and correct in lib dir
2013-03-27 06:32:51 [FINEST] [ForgeModLoader] Found library file scala-library.jar present and correct in lib dir
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Running coremod plugins
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2013-03-27 06:32:52 [iNFO] [ForgeModLoader] Found valid fingerprint for Minecraft Forge. Certificate fingerprint de4cf8a3f3bc15635810044c39240bf96804ea7d
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Validating minecraft
2013-03-27 06:32:52 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2013-03-27 06:32:53 [iNFO] [sTDOUT] 229 recipes
2013-03-27 06:32:53 [iNFO] [sTDOUT] 27 achievements
2013-03-27 06:32:54 [iNFO] [Minecraft-Client] Setting user: Player
2013-03-27 06:32:54 [iNFO] [sTDOUT] (Session ID is 1)
2013-03-27 06:32:54 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-03-27 06:32:54 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-03-27 06:32:54 [iNFO] [sTDOUT] MinecraftForge v7.7.0.608 Initialized
2013-03-27 06:32:54 [iNFO] [ForgeModLoader] MinecraftForge v7.7.0.608 Initialized
2013-03-27 06:32:54 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-03-27 06:32:54 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-03-27 06:32:54 [iNFO] [ForgeModLoader] Forge Mod Loader has detected optifine OptiFine_1.5.1_HD_U_B1, enabling compatibility features
2013-03-27 06:32:54 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Y580 Eric\AppData\Roaming\.minecraft\config\logging.properties
2013-03-27 06:32:54 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-03-27 06:32:54 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2013-03-27 06:32:54 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\bin\lwjgl.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\bin\jinput.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\bin\lwjgl_util.jar
2013-03-27 06:32:54 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Y580 Eric\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\argo-small-3.2.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\guava-14.0-rc3.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\asm-all-4.1.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\bcprov-jdk15on-148.jar
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\deobfuscation_data_1.5.1.zip
2013-03-27 06:32:54 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Y580 Eric\AppData\Roaming\.minecraft\lib\scala-library.jar
2013-03-27 06:32:54 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2013-03-27 06:32:54 [iNFO] [ForgeModLoader] Searching C:\Users\Y580 Eric\AppData\Roaming\.minecraft\mods for mods
2013-03-27 06:32:54 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods
2013-03-27 06:32:54 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file
2013-03-27 06:32:55 [FINE] [ForgeModLoader] Identified an FMLMod type mod mods.smallimprovements.SmallImprovements
2013-03-27 06:32:55 [FINEST] [MinecraftSmallImprovements] Parsed dependency info : [] [] []
2013-03-27 06:32:55 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-03-27 06:32:55 [FINER] [ForgeModLoader] Received a system property request ''
2013-03-27 06:32:55 [FINER] [ForgeModLoader] System property request managing the state of 0 mods
2013-03-27 06:32:55 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2013-03-27 06:32:55 [FINE] [ForgeModLoader] Reloading logging properties from C:\Users\Y580 Eric\AppData\Roaming\.minecraft\config\logging.properties
2013-03-27 06:32:55 [FINE] [ForgeModLoader] Reloaded logging properties
2013-03-27 06:32:55 [FINE] [mcp] Mod Logging channel mcp configured at default level.
2013-03-27 06:32:55 [iNFO] [mcp] Activating mod mcp
2013-03-27 06:32:55 [FINE] [FML] Mod Logging channel FML configured at default level.
2013-03-27 06:32:55 [iNFO] [FML] Activating mod FML
2013-03-27 06:32:55 [FINE] [Forge] Mod Logging channel Forge configured at default level.
2013-03-27 06:32:55 [iNFO] [Forge] Activating mod Forge
2013-03-27 06:32:55 [FINE] [MinecraftSmallImprovements] Enabling mod MinecraftSmallImprovements
2013-03-27 06:32:55 [FINE] [MinecraftSmallImprovements] Mod Logging channel MinecraftSmallImprovements configured at default level.
2013-03-27 06:32:55 [iNFO] [MinecraftSmallImprovements] Activating mod MinecraftSmallImprovements
2013-03-27 06:32:55 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied
2013-03-27 06:32:55 [FINER] [ForgeModLoader] All mod requirements are satisfied
2013-03-27 06:32:55 [FINER] [ForgeModLoader] Sorting mods into an ordered list
2013-03-27 06:32:55 [FINER] [ForgeModLoader] Mod sorting completed successfully
2013-03-27 06:32:55 [FINE] [ForgeModLoader] Mod sorting data
2013-03-27 06:32:55 [FINE] [ForgeModLoader] 	MinecraftSmallImprovements(SmallImprovements:0.0.1): minecraft.jar ()
2013-03-27 06:32:55 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp
2013-03-27 06:32:55 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp
2013-03-27 06:32:55 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML
2013-03-27 06:32:55 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML
2013-03-27 06:32:55 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge
2013-03-27 06:32:55 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge
2013-03-27 06:32:55 [FINEST] [MinecraftSmallImprovements] Sending event FMLConstructionEvent to mod MinecraftSmallImprovements
2013-03-27 06:32:55 [FINEST] [MinecraftSmallImprovements] Sent event FMLConstructionEvent to mod MinecraftSmallImprovements
2013-03-27 06:32:55 [FINE] [ForgeModLoader] Mod signature data
2013-03-27 06:32:55 [FINE] [ForgeModLoader] 	mcp(Minecraft Coder Pack:7.44): minecraft.jar (NO VALID CERTIFICATE FOUND)
2013-03-27 06:32:55 [FINE] [ForgeModLoader] 	FML(Forge Mod Loader:5.1.8.608): coremods (de4cf8a3f3bc15635810044c39240bf96804ea7d)
2013-03-27 06:32:55 [FINE] [ForgeModLoader] 	Forge(Minecraft Forge:7.7.0.608): coremods (NO VALID CERTIFICATE FOUND)
2013-03-27 06:32:55 [FINE] [ForgeModLoader] 	MinecraftSmallImprovements(SmallImprovements:0.0.1): minecraft.jar (NO VALID CERTIFICATE FOUND)
2013-03-27 06:32:55 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
2013-03-27 06:32:55 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
MinecraftSmallImprovements [smallImprovements] (minecraft.jar) Unloaded->Errored
2013-03-27 06:32:55 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-03-27 06:32:55 [sEVERE] [ForgeModLoader] Caught exception from MinecraftSmallImprovements
java.lang.ClassNotFoundException: mods.smallimprovements.SmallImprovements
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:502)
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.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 32 more
2013-03-27 06:33:05 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: mods.smallimprovements.SmallImprovements
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:407)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: mods.smallimprovements.SmallImprovements
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:211)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.Class.forName0(Native Method)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.Class.forName(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:446)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:502)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	... 5 more
2013-03-27 06:33:05 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2013-03-27 06:33:05 [iNFO] [sTDERR] 	at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
2013-03-27 06:33:05 [iNFO] [sTDERR] 	... 32 more

 

Minecraft crash log

---- Minecraft Crash Report ----
// I just don't know what went wrong 

Time: 3/27/13 6:33 AM
Description: Failed to start game

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: mods.smallimprovements.SmallImprovements
at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:512)
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: mods.smallimprovements.SmallImprovements
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:502)
... 5 more
Caused by: java.lang.NullPointerException
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:200)
... 32 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1616264720 bytes (1541 MB) / 2058027008 bytes (1962 MB) up to 2863333376 bytes (2730 MB)
JVM Flags: 2 total; -Xmx3072M -Xms2048M
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.8.608 Minecraft Forge 7.7.0.608 Optifine OptiFine_1.5.1_HD_U_B1 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
MinecraftSmallImprovements [smallImprovements] (minecraft.jar) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTX 660M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

SmallImprovements class code (basemod)

package mods.smallimprovements;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;
import mods.smallimprovements.client.ClientProxy;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
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;

@Mod(modid="MinecraftSmallImprovements", name="SmallImprovements", version="0.0.1")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)

public class SmallImprovements
{
    // The instance of your mod that Forge uses.
    @Instance("MinecraftSmallImprovements")
    public static SmallImprovements instance;
    
@SidedProxy(clientSide="mods.smallimprovements.client.ClientProxy", serverSide="mods.smallimprovements.CommonProxy")
public static ClientProxy proxy = new ClientProxy();

//Block and Item Registration
public static BlockCoalStorage coalStorageBlock;
public static BlockAura auraBlock;
public static BlockFakeWall idleFakeWallBlock; //opaque
public static BlockFakeWall activeFakeWallBlock; //transparent
public static BlockPatternedWool_1 patternedWool_1Block;

private static Item threadItem;

//TODO if you add more wool names, separate color and pattern out to minimize arrays!
private static final String[] patternedWool_1Names = { 
	"White Patterned Wool", "Orange Patterned Wool", "Yellow Patterned Wool", "Lime Green Patterned Wool",
	"Green Patterned Wool", "Cyan Patterned Wool", "Light Blue Patterned Wool", "Blue Patterned Wool",
	"Dark Blue Patterned Wool", "Purple Patterned Wool", "Magenta Patterned Wool", "Pink Patterned Wool",
	"Red Patterned Wool", "Light Grey Patterned Wool", "Dark Grey Patterned Wool", "Black Patterned Wool"};

private static final String[] threadNames = { 
	"White ", "Orange ", "Yellow ", "Lime Green ",
	"Green ", "Cyan ", "Light Blue ", "Blue ",
	"Dark Blue ", "Purple ", "Magenta ", "Pink ",
	"Red ", "Light Grey ", "Dark Grey ", "Black "};


//Integer Registration
public static int coalStorageBlockID = 500;
public static int auraBlockID = 501;
public static int idleFakeWallBlockID = 502;
public static int activeFakeWallBlockID = 503;
public static int patternedWool_1ID = 504;

public static int threadID = 505;

//Configuration
@PreInit
public void  preinit(FMLPreInitializationEvent event)
{

}

//Call Functions
@Init
public void load(FMLInitializationEvent event){
existenceCreation();
worldGeneration();
blockHarvest();
toolHarvest();
smeltingRecipes();
craftingRecipes();
gameRegisters();
languageRegisters();

proxy.registerRenders();
}

//Materials

//Block and Item Creation
public void existenceCreation(){
	coalStorageBlock = new BlockCoalStorage(coalStorageBlockID);

	auraBlock = new BlockAura(auraBlockID);

	idleFakeWallBlock = new BlockFakeWall(idleFakeWallBlockID,false);
	idleFakeWallBlock.setCreativeTab(CreativeTabs.tabBlock);
	idleFakeWallBlock.setHardness(5.0f);
	idleFakeWallBlock.setResistance(5.0f);

	activeFakeWallBlock = new BlockFakeWall(activeFakeWallBlockID,true);
	activeFakeWallBlock.setHardness(5.0f);
	activeFakeWallBlock.setResistance(2000.0f);

	patternedWool_1Block = new BlockPatternedWool_1(patternedWool_1ID);

	threadItem = new ItemThread(threadID);


}

//World Generation
public void worldGeneration(){

}

//Block Harvest Level
public void blockHarvest(){
	MinecraftForge.setBlockHarvestLevel(coalStorageBlock, "pickaxe", 0);

}

//Tool Harvest Level
public void toolHarvest(){}

//Smelting Recipes
public void smeltingRecipes(){}

//Crafting Recipes
public void craftingRecipes(){
	ItemStack coalStack = new ItemStack(Item.coal);
	GameRegistry.addShapelessRecipe(new ItemStack(coalStorageBlock),
	                coalStack, coalStack, coalStack,
	                coalStack, coalStack, coalStack,
	                coalStack, coalStack, coalStack);

	GameRegistry.addShapelessRecipe(new ItemStack(Item.coal, 9), 
			new ItemStack(coalStorageBlock));

	GameRegistry.addShapelessRecipe(new ItemStack(auraBlock), 
			new ItemStack(Item.lightStoneDust), new ItemStack(Item.blazePowder));

	for (int ix = 0; ix < 16; ix++) {
		ItemStack cloth = new ItemStack(Block.cloth, 1, ix);
		ItemStack patternedWool_1Stack = new ItemStack(patternedWool_1Block, 1, ix);

		GameRegistry.addShapelessRecipe(patternedWool_1Stack, cloth, new ItemStack(threadItem, 1, 1));
	}
}

//Game Registry
public void gameRegisters(){
	GameRegistry.registerBlock(coalStorageBlock, "coalStorageBlock");
	GameRegistry.registerBlock(auraBlock, "auraBlock");
	GameRegistry.registerBlock(idleFakeWallBlock, "idleFakeWallBlock");
	GameRegistry.registerBlock(activeFakeWallBlock, "activeFakeWallBlock");
	GameRegistry.registerBlock(patternedWool_1Block, MultiItemBlock.class, "patternedWool_1Block");

	GameRegistry.registerFuelHandler(new SmallImprovementsFuelHandler());
}

//Language Registry
public void languageRegisters(){
	LanguageRegistry.addName(coalStorageBlock, "Coal Block");
	LanguageRegistry.addName(auraBlock, "Aura Block");
	LanguageRegistry.addName(idleFakeWallBlock, "Fake Wall Block");
	LanguageRegistry.addName(activeFakeWallBlock, "Fake Wall Block");



	for (int ix = 0; ix < 16; ix++) {
		ItemStack patternedWool_1Stack = new ItemStack(patternedWool_1Block, 1, ix);
		ItemStack threadStack = new ItemStack(threadItem, 1, ix); 

		LanguageRegistry.addName(patternedWool_1Stack, patternedWool_1Names[patternedWool_1Stack.getItemDamage()]);
		LanguageRegistry.addName(threadStack, threadNames[threadStack.getItemDamage()] + "Thread");
	}
}
}

Link to comment
Share on other sites

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.