Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Forge crashes upon me when I'm trying to hook it in game ( ModLoader.setInGameHook(BaseMod, enable, useClock); )

Also when I'm trying to hook into gui ( ModLoader.setInGuiHook(BaseMod, enable, useClock); )

 

Log:

 

2012-08-15 21:33:47 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.62.281 for Minecraft client:1.3.2, server:1.3.2 loading
2012-08-15 21:33:48 [iNFO] [sTDOUT] 27 achievements
2012-08-15 21:33:48 [iNFO] [sTDOUT] 195 recipes
2012-08-15 21:33:48 [iNFO] [sTDOUT] Setting user: Player634, -
2012-08-15 21:33:48 [iNFO] [sTDERR] Client asked for parameter: server
2012-08-15 21:33:48 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2012-08-15 21:33:49 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-08-15 21:33:49 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-08-15 21:33:49 [iNFO] [ForgeModLoader] Searching C:\Users\Blu4Ever\Desktop\Steamcraft1.3.2\jars\mods for mods
2012-08-15 21:33:49 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 3 mods to load
2012-08-15 21:33:50 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
2012-08-15 21:33:50 [sEVERE] [ForgeModLoader] 
mod_Steamcraft (bin) Unloaded->Errored
Forge Mod Loader (coremods) Unloaded->Constructed
Minecraft Forge (coremods) Unloaded->Constructed
2012-08-15 21:33:50 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2012-08-15 21:33:50 [sEVERE] [ForgeModLoader] Caught exception from mod_Steamcraft
2012-08-15 21:34:00 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.NullPointerException
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.transition(LoadController.java:106)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:421)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:192)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at net.minecraft.client.Minecraft.startGame(Minecraft.java:402)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at net.minecraft.client.Minecraft.run(Minecraft.java:734)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.Thread.run(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.collect.ImmutableBiMap.copyOf(ImmutableBiMap.java:205)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.getModObjectList(LoadController.java:194)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.Loader.getModObjectList(Loader.java:658)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.Loader.getReversedModObjectList(Loader.java:663)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.FMLCommonHandler.findContainerFor(FMLCommonHandler.java:149)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.modloader.ModLoaderHelper.findOrBuildModContainer(ModLoaderHelper.java:90)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.modloader.ModLoaderHelper.updateStandardTicks(ModLoaderHelper.java:45)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at net.minecraft.src.ModLoader.setInGameHook(ModLoader.java:751)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at net.minecraft.src.mod_Steamcraft.<init>(mod_Steamcraft.java:226)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.reflect.Constructor.newInstance(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.Class.newInstance0(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.Class.newInstance(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:500)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:127)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:85)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:420)
2012-08-15 21:34:00 [iNFO] [sTDERR]  ... 4 more
2012-08-15 21:34:00 [iNFO] [sTDERR] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.Component.getGraphics(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.awt.RepaintArea.paint(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.Component.dispatchEventImpl(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.Component.dispatchEvent(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue.access$000(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue$3.run(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue$3.run(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.security.AccessController.doPrivileged(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue$4.run(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue$4.run(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.security.AccessController.doPrivileged(Native Method)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventQueue.dispatchEvent(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
2012-08-15 21:34:00 [iNFO] [sTDERR]  at java.awt.EventDispatchThread.run(Unknown Source)
2012-08-15 21:35:56 [iNFO] [sTDERR] Someone is closing me!

 

 

It may be wrong with my code. but I have no idea at this point, because it comes from com.google / cpw.mod.fml.common.* ...

You appear to be registering for ModLoader.setInGameHook in the constructor of your mod somehow. I would suggest not doing that. Maybe use "load" instead.

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.