1

Random Error with Mod Code

Seanthebaker 8/26/12 8:27 pm
119
8/26/2012 8:44 pm
Whilst re-writing my mod for 1.3.2 using latest build of Forge i keep crashing, here is my crash report
Click to reveal
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!

Time: 27/08/12 00:25
Description: Failed to start game

cpw.mods.fml.common.LoaderException: java.lang.reflect.InvocationTargetException
at cpw.mods.fml.common.LoadController.transition(LoadController.java:102)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:625)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:170)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:450)
at net.minecraft.client.Minecraft.run(Minecraft.java:737)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:373)
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: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:124)
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: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:81)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:624)
... 4 more
Caused by: java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:51)
at sb.mods.rapitite.Rapitite.load(Rapitite.java:34)
... 30 more

Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 929053712 bytes (886 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- FML: FML v3.0.156.337 Minecraft Forge 4.0.0.233 3 mods loaded, 3 mods active
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Rapitite [Rapitite] (bin) Unloaded->Constructed->Pre-initialized->Errored
- LWJGL: 2.4.2
- OpenGL: GeForce 9500 GT/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
- Is Modded: Definitely; 'forge,fml'
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)


But my mod files show no error with my crafting and smelting, and the ItemStack class is error free any help is appreciated
Posted by
Seanthebaker
Level 38 : Artisan Procrastinator
4

  Have something to say?

JoinSign in

2

Seanthebaker
08/26/2012 8:44 pm
Level 38 : Artisan Procrastinator
sed11
Though I don't see any texture-problem in the error, so I don't think that's the problem, but you could check and see if the textures are in the right place if your mod adds new items or mobs, etc.


Thanks for replying but I've re-tested it with a fresh set set of textures and still no success with the same error
1
sed11
08/26/2012 8:31 pm
Level 66 : High Grandmaster Hero
I'm not really good with crash errors, so I can't help much.

Though I don't see any texture-problem in the error, so I don't think that's the problem, but you could check and see if the textures are in the right place if your mod adds new items or mobs, etc.

I don't really use Forge to make mods, but I might someday....
1

Welcome