Posted May 9, 201312 yr My mod works fine until I try to register a model in the client proxy. Here's the crash report... 2013-05-09 19:26:34 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-05-09 19:26:34 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45, running on Mac OS X:x86_64:10.8.3, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 2013-05-09 19:26:34 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-05-09 19:26:36 [iNFO] [sTDOUT] 229 recipes 2013-05-09 19:26:36 [iNFO] [sTDOUT] 27 achievements 2013-05-09 19:26:36 [iNFO] [Minecraft-Client] Setting user: Player222 2013-05-09 19:26:36 [iNFO] [sTDOUT] (Session ID is -) 2013-05-09 19:26:36 [iNFO] [sTDERR] Client asked for parameter: server 2013-05-09 19:26:36 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-05-09 19:26:36 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-05-09 19:26:36 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-05-09 19:26:36 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-05-09 19:26:36 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-05-09 19:26:36 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-05-09 19:26:36 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/Games/MC Modding/forge 1.5/mcp/jars/config/logging.properties 2013-05-09 19:26:36 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-05-09 19:26:36 [iNFO] [ForgeModLoader] Searching /Users/Games/MC Modding/forge 1.5/mcp/jars/mods for mods 2013-05-09 19:26:37 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-05-09 19:26:37 [iNFO] [mcp] Activating mod mcp 2013-05-09 19:26:37 [iNFO] [FML] Activating mod FML 2013-05-09 19:26:37 [iNFO] [Forge] Activating mod Forge 2013-05-09 19:26:37 [iNFO] [TuxWeaponsCore] Activating mod TuxWeaponsCore 2013-05-09 19:26:38 [WARNING] [ForgeModLoader] The mod id TuxWeaponsCore attempted to register channels without specifying a packet handler 2013-05-09 19:26:38 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-05-09 19:26:38 [iNFO] [sTDOUT] WeaponMat in pos0 = WOOD 2013-05-09 19:26:38 [iNFO] [sTDOUT] WeaponMat in pos1 = STONE 2013-05-09 19:26:38 [iNFO] [sTDOUT] WeaponMat in pos2 = IRON 2013-05-09 19:26:38 [iNFO] [sTDOUT] WeaponMat in pos3 = DIAMOND 2013-05-09 19:26:38 [iNFO] [sTDOUT] WeaponMat in pos4 = GOLD 2013-05-09 19:26:38 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null! 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.registerIcon(TextureMap.java:229) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.block.Block.registerIcons(Block.java:1381) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:68) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-09 19:26:38 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-09 19:26:38 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/null.png, but that file does not exist. Ignoring. 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt 2013-05-09 19:26:38 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt 2013-05-09 19:26:38 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null! 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.registerIcon(TextureMap.java:229) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.item.Item.updateIcons(Item.java:726) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:85) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:521) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-09 19:26:38 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-09 19:26:38 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-09 19:26:39 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/null.png, but that file does not exist. Ignoring. 2013-05-09 19:26:39 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt 2013-05-09 19:26:39 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt 2013-05-09 19:26:39 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-05-09 19:26:39 [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 TuxWeaponsCore [Tux's Weapons Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-05-09 19:26:39 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-09 19:26:39 [sEVERE] [ForgeModLoader] Caught exception from TuxWeaponsCore java.lang.NullPointerException at mods.TuxWeapons.ClientProxy.registerRenderers(ClientProxy.java:38) at mods.TuxWeapons.TuxWeaponsCore.load(TuxWeaponsCore.java:112) 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:515) 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: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(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: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.initializeMods(Loader.java:689) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:444) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Thread.java:680) 2013-05-09 19:26:39 [iNFO] [sTDERR] java.lang.NullPointerException 2013-05-09 19:26:39 [iNFO] [sTDERR] at mods.TuxWeapons.ClientProxy.registerRenderers(ClientProxy.java:38) 2013-05-09 19:26:39 [iNFO] [sTDERR] at mods.TuxWeapons.TuxWeaponsCore.load(TuxWeaponsCore.java:112) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-09 19:26:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-09 19:26:39 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-09 19:26:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-09 19:26:39 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-09 19:26:39 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-09 19:26:39 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-09 19:26:39 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-09 19:26:39 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-05-09 19:26:39 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689) 2013-05-09 19:26:39 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-05-09 19:26:39 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444) 2013-05-09 19:26:39 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-09 19:26:39 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-09 19:26:39 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-09 19:26:49 [iNFO] [sTDERR] Someone is closing me! And the client proxy code package mods.TuxWeapons; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.entity.RenderFish; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.src.ModLoader; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.ObfuscationReflectionHelper; import cpw.mods.fml.common.registry.EntityRegistry; public class ClientProxy extends CommonProxy { @Override public void load() { } @Override public void registerRenderers() { EntityRegistry.registerGlobalEntityID(EntitySpear.class, "Spear", ModLoader.getUniqueEntityId()); RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); EntityRegistry.registerGlobalEntityID(EntityBolt.class, "Bolt", ModLoader.getUniqueEntityId()); RenderingRegistry.registerEntityRenderingHandler(EntityBolt.class, new RenderBolt()); EntityRegistry.registerGlobalEntityID(EntityDynamite.class, "Dynamite", ModLoader.getUniqueEntityId()); RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new RenderDynamite()); EntityRegistry.registerGlobalEntityID(EntityHarpoon.class, "Harpoon", ModLoader.getUniqueEntityId()); RenderingRegistry.registerEntityRenderingHandler(EntityHarpoon.class, new RenderHarpoon()); EntityRegistry.registerGlobalEntityID(EntityKnife.class, "Knife", ModLoader.getUniqueEntityId()); RenderingRegistry.registerEntityRenderingHandler(EntityKnife.class, new RenderKnife()); MinecraftForgeClient.registerItemRenderer(TuxWeaponsCore.fireChargeCannon.itemID, (IItemRenderer) new FireChargeCannonRenderer()); } } It works fine without this line (MinecraftForgeClient.registerItemRenderer(TuxWeaponsCore.fireChargeCannon.itemID, (IItemRenderer) new FireChargeCannonRenderer())). I am following Ichun's 3d item tutorial which can be found .
May 9, 201312 yr 1. Instead of using registerGlobalEntityID, use registerModEntity. The parameters are: entity class, entity name, mod-specific ID (beginning at 0, increase it by 1 for each entity which come afterwards), your mod instance (the field with the @Instance annotation), tracking range (I usually have this to 128), update frequency (I use 1 for sending an update each tick), send velocity updates (true on mobile entities as mobs or arrows, false on stationary entites which won't usually move around) 2. Don't use ModLoader as you will run into problems with dedicated servers. Look into the class and use the methods called by the ModLoader-method 3. You probably call registerRenderers() before you initialize your items / blocks. Do it afterwards. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 10, 201312 yr Author I did have my proxy registers before my weapons and items, I moved them to the end and now it works great. However when I did your mod loader to forge method quick fix I ran into some problems. It crashes again, but when I comment out the new methods its fine. Here's my proxy again, I want to make sure that I get the little things like this too so that I'm up to standards =D package mods.TuxWeapons; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.src.ModLoader; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.ObfuscationReflectionHelper; import cpw.mods.fml.common.registry.EntityRegistry; public class ClientProxy extends CommonProxy { @Override public void load() { } @Override public void registerRenderers() { EntityRegistry.registerModEntity(EntitySpear.class, "Spear", 0, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); EntityRegistry.registerModEntity(EntityBolt.class, "Bolt", 1, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityBolt.class, new RenderBolt()); EntityRegistry.registerModEntity(EntityDynamite.class, "Dynamite", 2, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new RenderDynamite()); EntityRegistry.registerModEntity(EntityHarpoon.class, "Harpoon", 3, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityHarpoon.class, new RenderHarpoon()); EntityRegistry.registerModEntity(EntityKnife.class, "Knife", 4, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityKnife.class, new RenderKnife()); MinecraftForgeClient.registerItemRenderer(TuxWeaponsCore.fireChargeCannon.itemID, (IItemRenderer) new FireChargeCannonRenderer()); } }
May 10, 201312 yr I did have my proxy registers before my weapons and items, I moved them to the end and now it works great. However when I did your mod loader to forge method quick fix I ran into some problems. It crashes again, but when I comment out the new methods its fine. Here's my proxy again, I want to make sure that I get the little things like this too so that I'm up to standards =D package mods.TuxWeapons; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.src.ModLoader; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.ObfuscationReflectionHelper; import cpw.mods.fml.common.registry.EntityRegistry; public class ClientProxy extends CommonProxy { @Override public void load() { } @Override public void registerRenderers() { EntityRegistry.registerModEntity(EntitySpear.class, "Spear", 0, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); EntityRegistry.registerModEntity(EntityBolt.class, "Bolt", 1, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityBolt.class, new RenderBolt()); EntityRegistry.registerModEntity(EntityDynamite.class, "Dynamite", 2, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new RenderDynamite()); EntityRegistry.registerModEntity(EntityHarpoon.class, "Harpoon", 3, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityHarpoon.class, new RenderHarpoon()); EntityRegistry.registerModEntity(EntityKnife.class, "Knife", 4, TuxWeaponsCore.instance, 128, 1, true); RenderingRegistry.registerEntityRenderingHandler(EntityKnife.class, new RenderKnife()); MinecraftForgeClient.registerItemRenderer(TuxWeaponsCore.fireChargeCannon.itemID, (IItemRenderer) new FireChargeCannonRenderer()); } } ModLoader.getUniqueEntityId() I said don't use ModLoader D: Also the ID is mod-unique, meaning you don't need to rely on any method. Just use 0 for your first entity, 1 for your second one, 2 for your third one and so on. nvm, I didn't saw your edit. Looks good to me. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 10, 201312 yr Author Maybe this will help? I'd prefer to not use modloader classes... 2013-05-10 14:57:53 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.1.8.611 for Minecraft 1.5.1 loading 2013-05-10 14:57:53 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.6.0_45, running on Mac OS X:x86_64:10.8.3, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 2013-05-10 14:57:53 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-05-10 14:57:55 [iNFO] [sTDOUT] 229 recipes 2013-05-10 14:57:55 [iNFO] [sTDOUT] 27 achievements 2013-05-10 14:57:55 [iNFO] [Minecraft-Client] Setting user: Player944 2013-05-10 14:57:55 [iNFO] [sTDOUT] (Session ID is -) 2013-05-10 14:57:55 [iNFO] [sTDERR] Client asked for parameter: server 2013-05-10 14:57:55 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-05-10 14:57:56 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-05-10 14:57:56 [iNFO] [sTDOUT] MinecraftForge v7.7.1.611 Initialized 2013-05-10 14:57:56 [iNFO] [ForgeModLoader] MinecraftForge v7.7.1.611 Initialized 2013-05-10 14:57:56 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-05-10 14:57:56 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-05-10 14:57:56 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/Games/MC Modding/forge 1.5/mcp/jars/config/logging.properties 2013-05-10 14:57:56 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-05-10 14:57:56 [iNFO] [ForgeModLoader] Searching /Users/Games/MC Modding/forge 1.5/mcp/jars/mods for mods 2013-05-10 14:57:57 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-05-10 14:57:57 [iNFO] [mcp] Activating mod mcp 2013-05-10 14:57:57 [iNFO] [FML] Activating mod FML 2013-05-10 14:57:57 [iNFO] [Forge] Activating mod Forge 2013-05-10 14:57:57 [iNFO] [TuxWeaponsCore] Activating mod TuxWeaponsCore 2013-05-10 14:57:57 [WARNING] [ForgeModLoader] The mod id TuxWeaponsCore attempted to register channels without specifying a packet handler 2013-05-10 14:57:57 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-05-10 14:57:57 [iNFO] [sTDOUT] WeaponMat in pos0 = WOOD 2013-05-10 14:57:57 [iNFO] [sTDOUT] WeaponMat in pos1 = STONE 2013-05-10 14:57:57 [iNFO] [sTDOUT] WeaponMat in pos2 = IRON 2013-05-10 14:57:57 [iNFO] [sTDOUT] WeaponMat in pos3 = DIAMOND 2013-05-10 14:57:57 [iNFO] [sTDOUT] WeaponMat in pos4 = GOLD 2013-05-10 14:57:57 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null! 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.registerIcon(TextureMap.java:229) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.block.Block.registerIcons(Block.java:1381) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:68) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-10 14:57:57 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-10 14:57:57 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-10 14:57:58 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/blocks/null.png, but that file does not exist. Ignoring. 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt 2013-05-10 14:57:58 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null! 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.registerIcon(TextureMap.java:229) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.item.Item.updateIcons(Item.java:726) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:85) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:521) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-10 14:57:58 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-10 14:57:58 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/null.png, but that file does not exist. Ignoring. 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt 2013-05-10 14:57:58 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt 2013-05-10 14:57:58 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-05-10 14:57:58 [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 TuxWeaponsCore [Tux's Weapons Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-05-10 14:57:58 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-10 14:57:58 [sEVERE] [ForgeModLoader] Caught exception from TuxWeaponsCore java.lang.NullPointerException at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:164) at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:151) at mods.TuxWeapons.ClientProxy.registerRenderers(ClientProxy.java:26) at mods.TuxWeapons.TuxWeaponsCore.load(TuxWeaponsCore.java:173) 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:515) 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: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(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: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.initializeMods(Loader.java:689) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:444) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Thread.java:680) 2013-05-10 14:57:58 [iNFO] [sTDERR] java.lang.NullPointerException 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:164) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:151) 2013-05-10 14:57:58 [iNFO] [sTDERR] at mods.TuxWeapons.ClientProxy.registerRenderers(ClientProxy.java:26) 2013-05-10 14:57:58 [iNFO] [sTDERR] at mods.TuxWeapons.TuxWeaponsCore.load(TuxWeaponsCore.java:173) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-10 14:57:58 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-10 14:57:58 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-05-10 14:57:58 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-05-10 14:57:58 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-05-10 14:57:58 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689) 2013-05-10 14:57:58 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-05-10 14:57:58 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729) 2013-05-10 14:57:58 [iNFO] [sTDERR] at java.lang.Thread.run(Thread.java:680) 2013-05-10 14:58:08 [iNFO] [sTDERR] Someone is closing me!
May 10, 201312 yr can I see your main class? Seems like your instance field is null. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
May 10, 201312 yr Author I'd rather not post the whole core file, but I put what I think you'll need. @Mod(modid = TuxWeaponsCore.modid, name = "Tux's Weapons Mod", version = "0.1") @NetworkMod(clientSideRequired=true, serverSideRequired=false, channels={"TuxWeaponsC"}) ... @Instance("TuxWeapons") public static TuxWeaponsCore instance; @SidedProxy(clientSide="mods.TuxWeapons.ClientProxy", serverSide="mods.TuxWeapons.CommonProxy") public static CommonProxy proxy; public static final String modid = "TuxWeaponsCore"; ... proxy.registerRenderers(); proxy.registerServerTickHandler(); Did I reference it wrong in my proxy?
May 10, 201312 yr I'd rather not post the whole core file, but I put what I think you'll need. @Mod(modid = TuxWeaponsCore.modid, name = "Tux's Weapons Mod", version = "0.1") @NetworkMod(clientSideRequired=true, serverSideRequired=false, channels={"TuxWeaponsC"}) ... @Instance("TuxWeapons") public static TuxWeaponsCore instance; @SidedProxy(clientSide="mods.TuxWeapons.ClientProxy", serverSide="mods.TuxWeapons.CommonProxy") public static CommonProxy proxy; public static final String modid = "TuxWeaponsCore"; ... proxy.registerRenderers(); proxy.registerServerTickHandler(); Did I reference it wrong in my proxy? Your Instance annotation must have the same modID as the @Mod annotation. So use the modid variable you declared also for the @Instance. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.