Résolu Probleme crash à la création d'un mods
-
Voilà donc j’ai suivis le tutoriel pour créer un bloc basique et mon minecraft crash !
voici les logs :2014-03-01 18:30:00 [Infos] [ForgeModLoader] Forge Mod Loader version 5.2.23.737 for Minecraft 1.5.2 loading 2014-03-01 18:30:00 [Infos] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_51, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7 2014-03-01 18:30:00 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2014-03-01 18:30:01 [Infos] [STDOUT] 229 recipes 2014-03-01 18:30:01 [Infos] [STDOUT] 27 achievements 2014-03-01 18:30:01 [Infos] [Minecraft-Client] Setting user: Player567 2014-03-01 18:30:01 [Infos] [STDOUT] (Session ID is -) 2014-03-01 18:30:01 [Infos] [STDERR] Client asked for parameter: server 2014-03-01 18:30:01 [Infos] [Minecraft-Client] LWJGL Version: 2.4.2 2014-03-01 18:30:02 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization 2014-03-01 18:30:02 [Infos] [STDOUT] MinecraftForge v7.8.1.737 Initialized 2014-03-01 18:30:02 [Infos] [ForgeModLoader] MinecraftForge v7.8.1.737 Initialized 2014-03-01 18:30:02 [Infos] [STDOUT] Replaced 85 ore recipies 2014-03-01 18:30:02 [Infos] [MinecraftForge] Completed early MinecraftForge initialization 2014-03-01 18:30:02 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\config\logging.properties 2014-03-01 18:30:02 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2014-03-01 18:30:02 [Infos] [ForgeModLoader] Searching C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\mods for mods 2014-03-01 18:30:03 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2014-03-01 18:30:03 [Infos] [mcp] Activating mod mcp 2014-03-01 18:30:03 [Infos] [FML] Activating mod FML 2014-03-01 18:30:03 [Infos] [Forge] Activating mod Forge 2014-03-01 18:30:03 [Infos] [ModBxToxik] Activating mod ModBxToxik 2014-03-01 18:30:03 [Infos] [ForgeModLoader] Registering Forge Packet Handler 2014-03-01 18:30:03 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler 2014-03-01 18:30:03 [Grave] [ForgeModLoader] An error occured trying to load a proxy into {clientSide=BxToxik.proxy.BxClientProxy, serverSide=BxToxik.proxy.BxCommonProxy}.BxToxik.common.ModBxToxik java.lang.ClassNotFoundException: BxToxik.proxy.BxClientProxy at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238) 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:58) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:471) 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.sendEventToModContainer(LoadController.java:192) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) 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:103) at cpw.mods.fml.common.Loader.loadMods(Loader.java:504) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:163) at net.minecraft.client.Minecraft.startGame(Minecraft.java:411) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:733) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227) … 34 more 2014-03-01 18:30:03 [Grave] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue 2014-03-01 18:30:03 [Grave] [ForgeModLoader] mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed ModBxToxik{1.0.0} [Mod BxToxik] (bin) Unloaded->Errored 2014-03-01 18:30:03 [Grave] [ForgeModLoader] The following problems were captured during this phase 2014-03-01 18:30:03 [Grave] [ForgeModLoader] Caught exception from ModBxToxik cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: BxToxik.proxy.BxClientProxy at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:75) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:471) 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.sendEventToModContainer(LoadController.java:192) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) 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:103) at cpw.mods.fml.common.Loader.loadMods(Loader.java:504) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:163) at net.minecraft.client.Minecraft.startGame(Minecraft.java:411) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:733) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: BxToxik.proxy.BxClientProxy at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238) 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:58) … 28 more Caused by: java.lang.NullPointerException at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227) ... 34 more
-
Problème de proxy. Vérifie les chemins dans ton @SidedProxy
-
Ben voilà la classe principale :
package BxToxik.common; import net.minecraft.block.Block; import BxToxik.proxy.BxToxikCommonProxy; 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.PostInit; 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.FMLPostInitializationEvent; 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 = "ModBxToxik", name = "Mod BxToxik", version = "1.0.0", acceptedMinecraftVersions = "[1.5.2,)") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class ModBxToxik { @SidedProxy(clientSide = "BxToxik.proxy.BxToxikClientProxy", serverSide = "BxToxik.proxy.BxToxikCommonProxy") public static BxToxikCommonProxy proxy; @Instance("ModBxToxik") public static ModBxToxik instance; //Blocks public static Block BlockBxToxik; @PreInit public void preload(FMLPreInitializationEvent event) { //Configuration //Blocks BlockBxToxik = new BlockBxToxik(99999999).setHardness(2.0F).setResistance(4.0F).setUnlocalizedName("BlockBxToxik").setLightValue(1.0F); //Items //Achievements } @Init public void load(FMLInitializationEvent event) { //Registry GameRegistry.registerBlock(BlockBxToxik, "BlockBxToxik"); //Mobs //Render proxy.registerRender(); //NetWork } @PostInit public void modloaded(FMLPostInitializationEvent event) { //Language LanguageRegistry.addName(BlockBxToxik, "Block BxToxik"); //Recipe } }
Et la classe clientproxy :
package BxToxik.proxy; import net.minecraftforge.client.MinecraftForgeClient; public class BxToxikClientProxy extends BxToxikCommonProxy { @Override public void registerRender() { //ici mes futur client registry } }
-
Niveau proxy c’est bon maintenant, ton problème est l’id de ton bloc, le maximum étant 4095.
-
a ok c’est pour sa j’ai mis 999999999