Jump to content

AssassinHero

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by AssassinHero

  1. I am making a smelting recipe GameRegistry.addSmelting(ParallelWorlds.NightOre, new ItemStack(NightGem, 1), 1F); however this doesn't work. What is the correct code?
  2. Fixed!! I had a small x in my crafting recipe instead of a capitalized x
  3. Hey Guys I have a bug while crafting Here is a video \/\/ http://www.youtube.com/watch?v=WdLUUWPf0_o&feature=youtu.be Here is my code: Main: @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Item TimeGem; public static Block TimeStone; public static Block NightStone; public static Item NightGem; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); TimeStone = new BlockTimeStoneBlock(3659).setUnlocalizedName("Time Stone"); TimeGem = new ItemTimeStoneItem(5001).setUnlocalizedName("Time Gem"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); proxy.registerItems(); craftingRecipes(); } public void craftingRecipes(){ GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.NightGem); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeStone, 1 ), "XX", "XX", Character.valueOf('x'), ParallelWorlds.TimeGem); } } CommonProxy: public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); GameRegistry.registerBlock(ParallelWorlds.TimeStone, "Time Stone"); LanguageRegistry.addName(ParallelWorlds.TimeStone, "Time Stone"); } public void registerItems(){ GameRegistry.registerItem(ParallelWorlds.NightGem, "Night Gem"); LanguageRegistry.addName(ParallelWorlds.NightGem, "Night Gem"); GameRegistry.registerItem(ParallelWorlds.TimeGem, "Time Gem"); LanguageRegistry.addName(ParallelWorlds.TimeGem, "Time Gem"); } } Time Gem: public class ItemTimeStoneItem extends Item{ public ItemTimeStoneItem(int par1){ super(par1); setCreativeTab(CreativeTabs.tabMaterials); } @Override public void func_94581_a(IconRegister iconregister){ iconIndex = iconregister.func_94245_a("ParallelWorlds.TimeGem"); } } It says time stone on purpose all other code fits it Time Stone: public class BlockTimeStoneBlock extends Block{ public BlockTimeStoneBlock(int ID){ super(ID,Material.iron); setHardness(10.F); setResistance(1000000.0F); setCreativeTab(CreativeTabs.tabBlock); } @Override public void func_94332_a(IconRegister par1IconRegister){ this.field_94336_cN = par1IconRegister.func_94245_a("ParallelWorlds.TimeStone"); } }
  4. Alright, Thanks. I will bear that in mind
  5. I have got the crafting recipe for my block GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XX", "XX", Character.valueOf('X'), Block.dirt); As you can see I have it set as dirt to craft the block, How do i make it so my custom item 'Night Gem' is called and not dirt I have tried; Item.NightGem That doesn't work Any help is appreciated c:
  6. They were being loaded in bin but i suppose that's why they were being deleted
  7. I put them in: MCP/Eclipse/Minecraft/Bin/Mods/ParallelWorlds/Textures/Blocks or items depending what texture im saving I may have missed something while typing directory
  8. Every now and then i will run my mod and the texture files have been deleted by eclipse and they "don't exist" Anyone else had this problem? Anyone else know a fix?
  9. I had set unlocalizedname I forgot to register the item using proxy.registerItems(); Your comment reminded me though so thank you
  10. Hey guys, I have added an item into my mod and it doesn't have a name in game. The texture is the and everything but the name isn't Here's all my code Main public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block NightStone; public static Item NightGem; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event){ NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); } } The items class public class ItemNightGemItem extends Item{ public ItemNightGemItem(int par1){ super(par1); setCreativeTab(CreativeTabs.tabMaterials); } @Override public void func_94581_a(IconRegister iconregister){ iconIndex = iconregister.func_94245_a("ParallelWorlds:ItemNightGemItem"); } } common proxy public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XBX", "XMX", Character.valueOf('X'), Block.dirt); } public void registerItems(){ LanguageRegistry.addName(ParallelWorlds.NightGem, "Night Gem"); } }
  11. I feel so stupid, How did I miss that?!?!? Thanks!!
  12. Hey I hope you don't mind but can you help me with this... I have made the client proxy now I get this error 2013-03-20 21:30:05 [sEVERE] [ForgeModLoader] Caught an exception during block registration java.lang.NullPointerException at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) at assassinhero.parallelworlds.common.ParallelWorldsCommonProxy.registerBlocks(ParallelWorldsCommonProxy.java:32) at assassinhero.parallelworlds.ParallelWorlds.InitParallelWorlds(ParallelWorlds.java:42) 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:515) 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.initializeMods(Loader.java:681) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:728) at java.lang.Thread.run(Unknown Source) 2013-03-20 21:30:05 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-03-20 21:30:05 [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 Parallel Worlds [ParallelWorlds] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-03-20 21:30:05 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-03-20 21:30:05 [sEVERE] [ForgeModLoader] Caught exception from Parallel Worlds cpw.mods.fml.common.LoaderException: java.lang.NullPointerException at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195) at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) at assassinhero.parallelworlds.common.ParallelWorldsCommonProxy.registerBlocks(ParallelWorldsCommonProxy.java:32) at assassinhero.parallelworlds.ParallelWorlds.InitParallelWorlds(ParallelWorlds.java:42) 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:515) 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.initializeMods(Loader.java:681) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:728) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) ... 35 more 2013-03-20 21:30:15 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.NullPointerException 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) 2013-03-20 21:30:15 [iNFO] [sTDERR] at assassinhero.parallelworlds.common.ParallelWorldsCommonProxy.registerBlocks(ParallelWorldsCommonProxy.java:32) 2013-03-20 21:30:15 [iNFO] [sTDERR] at assassinhero.parallelworlds.ParallelWorlds.InitParallelWorlds(ParallelWorlds.java:42) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 21:30:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:681) 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206) 2013-03-20 21:30:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443) 2013-03-20 21:30:15 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-03-20 21:30:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728) 2013-03-20 21:30:15 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-03-20 21:30:15 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-03-20 21:30:15 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) 2013-03-20 21:30:15 [iNFO] [sTDERR] ... 35 more 2013-03-20 21:30:17 [iNFO] [sTDERR] Someone is closing me! This is my client proxy public class ParallelWorldsClientProxy extends ParallelWorldsCommonProxy{ public void registerRenderInformation() { } } Also My PreInit is an invalid method... Any help here? The mod Parallel Worlds appears to have an invalid method annotation PreInit. This annotation can only apply to methods with argument types [class cpw.mods.fml.common.event.FMLPreInitializationEvent] -it will not be called
  13. OH MY GOD!!! THANK YOU SO MUCH I WAS GOING INSANE!!! Sorry for cap spam
  14. Hey guys, I went to run my mod to check on it and then I got this error 2013-03-20 20:21:37 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.0.24.582 for Minecraft 1.5 loading 2013-03-20 20:21:37 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-03-20 20:21:39 [iNFO] [sTDOUT] 229 recipes 2013-03-20 20:21:39 [iNFO] [sTDOUT] 27 achievements 2013-03-20 20:21:39 [iNFO] [Minecraft-Client] Setting user: Player412 2013-03-20 20:21:39 [iNFO] [sTDOUT] (Session ID is -) 2013-03-20 20:21:39 [iNFO] [sTDERR] Client asked for parameter: server 2013-03-20 20:21:39 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2 2013-03-20 20:21:39 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-03-20 20:21:39 [iNFO] [sTDOUT] MinecraftForge v7.7.0.582 Initialized 2013-03-20 20:21:39 [iNFO] [ForgeModLoader] MinecraftForge v7.7.0.582 Initialized 2013-03-20 20:21:39 [iNFO] [sTDOUT] Replaced 85 ore recipies 2013-03-20 20:21:39 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-03-20 20:21:39 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Ryan\Desktop\MCP\jars\config\logging.properties 2013-03-20 20:21:39 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-03-20 20:21:40 [iNFO] [ForgeModLoader] Searching C:\Users\Ryan\Desktop\MCP\jars\mods for mods 2013-03-20 20:21:41 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-03-20 20:21:41 [iNFO] [mcp] Activating mod mcp 2013-03-20 20:21:41 [iNFO] [FML] Activating mod FML 2013-03-20 20:21:41 [iNFO] [Forge] Activating mod Forge 2013-03-20 20:21:41 [iNFO] [Parallel Worlds] Activating mod Parallel Worlds 2013-03-20 20:21:41 [sEVERE] [Parallel Worlds] The mod Parallel Worlds appears to have an invalid method annotation PreInit. This annotation can only apply to methods with argument types [class cpw.mods.fml.common.event.FMLPreInitializationEvent] -it will not be called 2013-03-20 20:21:41 [sEVERE] [ForgeModLoader] An error occured trying to load a proxy into {clientSide=assassinhero.parallelworlds.client.ParallelWorldsClientProxy, serverSide=assassinhero.parallelworlds.common.ParallelWorldsCommonProxy}.assassinhero.parallelworlds.common.ParallelWorlds java.lang.ClassNotFoundException: assassinhero.parallelworlds.client.ParallelWorldsClientProxy at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:210) 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.ProxyInjector.inject(ProxyInjector.java:50) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) 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) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:406) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:728) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:199) ... 33 more 2013-03-20 20:21:41 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue 2013-03-20 20:21:41 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML [Forge Mod Loader] (coremods) Unloaded->Constructed Forge [Minecraft Forge] (coremods) Unloaded->Constructed Parallel Worlds [ParallelWorlds] (bin) Unloaded->Errored 2013-03-20 20:21:41 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-03-20 20:21:41 [sEVERE] [ForgeModLoader] Caught exception from Parallel Worlds cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: assassinhero.parallelworlds.client.ParallelWorldsClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:67) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) 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) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:406) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:728) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: assassinhero.parallelworlds.client.ParallelWorldsClientProxy at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:210) 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.ProxyInjector.inject(ProxyInjector.java:50) ... 27 more Caused by: java.lang.NullPointerException at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:199) ... 33 more 2013-03-20 20:21:51 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: assassinhero.parallelworlds.client.ParallelWorldsClientProxy 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:67) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-03-20 20:21:51 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:494) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) 2013-03-20 20:21:51 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:406) 2013-03-20 20:21:51 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-03-20 20:21:51 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: assassinhero.parallelworlds.client.ParallelWorldsClientProxy 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:210) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.ClassLoader.loadClass(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:56) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.Class.forName0(Native Method) 2013-03-20 20:21:51 [iNFO] [sTDERR] at java.lang.Class.forName(Unknown Source) 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:50) 2013-03-20 20:21:51 [iNFO] [sTDERR] ... 27 more 2013-03-20 20:21:51 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException 2013-03-20 20:21:51 [iNFO] [sTDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:199) 2013-03-20 20:21:51 [iNFO] [sTDERR] ... 33 more 2013-03-20 20:23:33 [iNFO] [sTDERR] Someone is closing me! This is my coding: Main Class: @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block NightStone; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLInitializationEvent event){ NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); } } BlockNightStoneBlock class; public class BlockNightStoneBlock extends Block{ public BlockNightStoneBlock(int ID){ super(ID,Material.iron); } @Override public void func_94332_a(IconRegister par1IconRegister){ this.field_94336_cN = par1IconRegister.func_94245_a("ParallelWorlds:NightStone"); } } CommonProxy: public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); } public void registerItems(){ } } ClientPacketHandler: @SideOnly(Side.CLIENT) public class ParallelWorldsClientPacketHandler implements IPacketHandler{ @Override public void onPacketData(INetworkManager manager, Packet250CustomPayload payload, Player player){ DataInputStream data = new DataInputStream(new ByteArrayInputStream(payload.data)); } } ServerPacketHandler: public class ParallelWorldsServerPacketHandler implements IPacketHandler{ @Override public void onPacketData(INetworkManager manager, Packet250CustomPayload payload, Player player){ DataInputStream data = new DataInputStream(new ByteArrayInputStream(payload.data)); EntityPlayer sender = (EntityPlayer) player; } } Can anyone shine some light on this for me and a possible fix? Thanks
  15. I have fixed them now Thanks for actually trying to help
  16. I am making a mod and i have a lot of errors in the main class file This is the code for the main class @NetworkMod(clientSideRequired=true, serverSideRequired= true, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @cpw.mods.fml.common.Mod.Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy; public static Block NightStone; @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLInitializationEvent event){ NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone"); } @Init public void InitParallelWorlds(FMLInitializationEvent event){ NetworkRegistry.instance().registerGuiHandler(this, proxy); proxy.registerBlocks(); } } The parts that have errors are: @SidedPacketHandler(channels packetHandler = ParallelWorldsClientPacketHandler.class), [codePacketHandlerSpec = @SidedPacketHandler(channels][/code] packetHandler = ParallelWorldsServerPacketHandler.class)) d(modid="Parallel Worlds", name = I understand that some of the errors are there because a class file doesn't exist Here is the code for the other class files i have at the moment ParallelWorldsCommonProxy public class ParallelWorldsCommonProxy implements IGuiHandler{ public void registerRenderInformation(){ } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){ return null; } public void registerTiles(){ } public void registerBlocks(){ GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone"); LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone"); } public void registerItems(){ } } BlockNightStoneBlock public class BlockNightStoneBlock extends Block{ public BlockNightStoneBlock(int ID){ super(ID,Material.iron); } @Override public void func_94332_a(IconRegister par1IconRegister){ this.field_94336_cN = par1IconRegister.func_94245_a("ParallelWorlds:NightStone"); } } Please help Any fixes are appreciated! Thanks in advance! EDIT: @SidedPacketHandler is fixed.... The rest is still error though
  17. Hey, just wondering what does this error mean? The value for annotation attribute NetworkMod.serverPacketHandlerSpec must be some @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler annotation
  18. How to fix this error? @NetworkMod(clientSideRequired = true, serverSideRequired = true, clientPacketHandlerSpec = @SidedPacketHandler(channels = {"Parallel Worlds"} , packetHandler = ParallelWorldsClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = {"Parallel Worlds"} , packetHandler = ParallelWorldsServerPacketHandler.class)) @Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0") public class ParallelWorlds { @Instance("ParallelWorlds") public static ParallelWorlds Instance = new ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy") public static ParallelWorldsCommonProxy proxy;
  19. NEW TO JAVA <--- I feel like I have to put that I am making an item and I have everything sorted apart from this piece of code. The only bit highlighted as an error is NightStone which is after Mod_ParallelWorlds public void addNames(){ LanguageRegistry.addName(Mod_ParallelWorlds.NightStone, "Night Stone"); Can anyone help?? Thanks In Advance!!
  20. I have restarted the mod. but many thanks for this... I will be using it to help me through the mod
×
×
  • Create New...

Important Information

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