[1.12.2] - Mon mod ne veux pas se charger !



  • Bonjour,

    Ce serait pour vous demander de l'aide tant qu'au problème que j'ai avec le mod que je suis entrain de concevoir :'( Je suis débutant dans le modding Minecraft et Java donc je vous avoue galérer un petit peu :'(

    Après vérification, je pense (de mon point de vue qui ne sait rien) que le problème viens du ClientProxy, mais je ne trouve rien concernant comment le réparer.

    Donc je vous affiche ci-bas les Logs de la Console , Le Crash Report , Mes classes Proxys , Ma classe Principale ainsi que l'organisation de mes packages :

    Log Console :

    [22:50:45] [main/INFO] [GradleStart]: Extra: []
    [22:50:45] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/nan/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [22:50:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:50:45] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:50:45] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:50:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:50:45] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
    [22:50:45] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_192, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_192
    [22:50:46] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
    [22:50:46] [main/ERROR] [FML]: Full: C:\Users\nan\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
    [22:50:46] [main/ERROR] [FML]: Trimmed: c:/users/nan/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
    [22:50:47] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [22:50:47] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
    2019-01-01 22:50:54,779 main WARN Disabling terminal, you're running in an unsupported environment.
    [22:50:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
    [22:50:54] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
    [22:50:55] [main/INFO] [FML]: Searching C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\mods for mods
    [22:50:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:50:55] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [22:50:55] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [22:50:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:50:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:50:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:50:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:50:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:50:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:51:20] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [22:51:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:51:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:51:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:51:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:51:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:51:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [22:51:24] [main/INFO] [minecraft/Minecraft]: Setting user: Player674
    [22:51:45] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
    [22:51:50] [main/INFO] [FML]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 7 (amd64) version 6.1
    	Java Version: 1.8.0_192, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 900312640 bytes (858 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.0.0' Renderer: 'GeForce GT 220M/PCI/SSE2'
    [22:51:50] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
    [22:51:50] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [22:51:51] [main/INFO] [FML]: Replaced 1036 ore ingredients
    [22:51:53] [main/INFO] [FML]: Searching C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\mods for mods
    [22:51:57] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [22:51:59] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cubicdeath] at CLIENT
    [22:51:59] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cubicdeath] at SERVER
    [22:52:02] [main/ERROR] [FML]: An error occurred trying to load a proxy into proxy.java.lang.ClassNotFoundException: mod.cubicdeath.Ini_ClientProxyCubicDeath.java
    [22:52:03] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
    // My bad.
    
    Time: 1/1/19 10:52 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: mod.cubicdeath.Ini_ClientProxyCubicDeath.java
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102)
    	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:600)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:513)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    	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 net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:25)
    Caused by: java.lang.ClassNotFoundException: mod.cubicdeath.Ini_ClientProxyCubicDeath.java
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85)
    	... 43 more
    Caused by: java.lang.NullPointerException
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    	... 49 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 7 (amd64) version 6.1
    	Java Version: 1.8.0_192, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 939018824 bytes (895 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 mods active
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    
    	| State | ID         | Version           | Source                           | Signature |
    	|:----- |:---------- |:----------------- |:-------------------------------- |:--------- |
    	| UC    | minecraft  | 1.12.2            | minecraft.jar                    | None      |
    	| UC    | mcp        | 9.42              | minecraft.jar                    | None      |
    	| UC    | FML        | 8.0.99.99         | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UC    | forge      | 14.23.5.2768      | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UE    | cubicdeath | Alpha-Build-0.0.1 | bin                              | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.0.0' Renderer: 'GeForce GT 220M/PCI/SSE2'
    [22:52:03] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\crash-reports\crash-2019-01-01_22.52.03-client.txt
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

    Crash Report :

    ---- Minecraft Crash Report ----
    // Quite honestly, I wouldn't worry myself about that.
    
    Time: 1/1/19 10:52 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: mod.cubicdeath.Ini_ClientProxyCubicDeath.java
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102)
    	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:600)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    	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.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:513)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    	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 net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:25)
    Caused by: java.lang.ClassNotFoundException: mod.cubicdeath.Ini_ClientProxyCubicDeath.java
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85)
    	... 43 more
    Caused by: java.lang.NullPointerException
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    	... 49 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 7 (amd64) version 6.1
    	Java Version: 1.8.0_192, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 939018824 bytes (895 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 mods active
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    
    	| State | ID         | Version           | Source                           | Signature |
    	|:----- |:---------- |:----------------- |:-------------------------------- |:--------- |
    	| UC    | minecraft  | 1.12.2            | minecraft.jar                    | None      |
    	| UC    | mcp        | 9.42              | minecraft.jar                    | None      |
    	| UC    | FML        | 8.0.99.99         | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UC    | forge      | 14.23.5.2768      | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UE    | cubicdeath | Alpha-Build-0.0.1 | bin                              | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.0.0' Renderer: 'GeForce GT 220M/PCI/SSE2'
    

    Client Proxy :

    package fr.cubicdeath;
    
    public class Ini_ClientProxyCubicdeath extends Ini_CommonProxyCubicdeath {
    
    	@Override
    	public void registerRenderers(Cubicdeath instance) {
            System.out.println("CubicDeath : Client Proxy on load !");
    		instance.elements.forEach(element -> element.registerRenderers());
    	}
    }
    

    Common Proxy :

    package fr.cubicdeath;
    
    public class Ini_CommonProxyCubicdeath {
    
    	public void registerRenderers(Cubicdeath instance) {
            System.out.println("CubicDeath : Server Proxy on load !");
    	}
    }
    

    Classe Principale :

    package fr.cubicdeath;
    
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.common.network.NetworkRegistry;
    import net.minecraftforge.fml.common.network.IGuiHandler;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
    import net.minecraftforge.fml.common.SidedProxy;
    import net.minecraftforge.fml.common.Mod.Instance;
    import net.minecraftforge.fml.common.Mod.EventHandler;
    import net.minecraftforge.fml.common.Mod;
    import net.minecraftforge.fml.common.IWorldGenerator;
    import net.minecraftforge.fml.common.IFuelHandler;
    import net.minecraftforge.client.model.obj.OBJLoader;
    
    import net.minecraft.world.gen.IChunkGenerator;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.World;
    import net.minecraft.item.ItemStack;
    import net.minecraft.entity.player.EntityPlayer;
    
    import java.util.Random;
    import java.util.List;
    import java.util.ArrayList;
    
    @Mod(modid = Cubicdeath.MODID, version = Cubicdeath.VERSION)
    public class Cubicdeath implements IFuelHandler, IWorldGenerator {
    
    	public static final String NAME = "CubicDeath";
    	public static final String MODID = "cubicdeath";
    	public static final String VERSION = "Alpha-Build-0.0.1";
    	@SidedProxy(clientSide = "mod.cubicdeath.Ini_ClientProxyCubicDeath.java", serverSide = "fr.cubicdeath.Ini_CommonProxyCubicdeath.java")
    	public static Ini_CommonProxyCubicdeath proxy;
    	@Instance(MODID)
    	public static Cubicdeath instance;
    	public static final List<ModElement> elements = new ArrayList<>();
    
    	@Override
    	public int getBurnTime(ItemStack fuel) {
    		for (ModElement element : elements) {
    			int ret = element.addFuel(fuel);
    			if (ret != 0)
    				return ret;
    		}
    		return 0;
    	}
    
    	@Override
    	public void generate(final Random random, int chunkX, int chunkZ, final World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) {
    		final int f_chunkX = chunkX * 16;
    		final int f_chunkZ = chunkZ * 16;
    		if (world.provider.getDimension() == -1)
    			elements.forEach(element -> element.generateNether(world, random, f_chunkX, f_chunkZ));
    		if (world.provider.getDimension() == 0)
    			elements.forEach(element -> element.generateSurface(world, random, f_chunkX, f_chunkZ));
    	}
    
    	@Mod.EventHandler
    	public void load(FMLInitializationEvent event) {
            System.out.println (NAME + ": Phase d'Initialisation en cour !!!");
    		GameRegistry.registerFuelHandler(this);
    		GameRegistry.registerWorldGenerator(this, 5);
    		NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
    		elements.forEach(element -> element.load(event));
    		proxy.registerRenderers(this);
    	}
    
    	@Mod.EventHandler
    	public void serverLoad(FMLServerStartingEvent event) {
    		elements.forEach(element -> element.serverLoad(event));
    	}
    
    	@Mod.EventHandler
    	public void preInit(FMLPreInitializationEvent event) {
            System.out.println (NAME + ": Phase de Pré-Initialisation en cour !!!");
    		if (event.getSide() == Side.CLIENT)
    			OBJLoader.INSTANCE.addDomain("Cubicdeath");
    		elements.forEach(element -> {
    			element.instance = this.instance;
    			element.preInit(event);
    		});
    	}
    	
    	@Mod.EventHandler
    	public void postInit(FMLPostInitializationEvent event) {
            System.out.println (NAME + ": Mod CubicDeath chargé !!!");
    	}
    
    	public static class GuiHandler implements IGuiHandler {
    
    		@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;
    		}
    	}
    
    	static {
    		
    		//Add Items
    		elements.add(new cubicdeath_item_emeraldArmor());
    		elements.add(new cubicdeath_item_emeraldSword());
    		elements.add(new cubicdeath_item_emeraldShovel());
    		elements.add(new cubicdeath_item_emeraldPickaxe());
    		elements.add(new cubicdeath_item_emeraldAxe());
    		elements.add(new cubicdeath_item_emeraldHoe());
    		elements.add(new cubicdeath_item_cherry());
    		
    		//Add Blocks
    		elements.add(new cubicdeath_block_cherryTreeLog());
    		elements.add(new cubicdeath_block_cherryTreeLeaves());
    		elements.add(new cubicdeath_block_cherryTreePlank());
    		elements.add(new cubicdeath_block_blood());
    		
    		//Add Plant
    		elements.add(new cubicdeath_plant_cherryTreePlant());
    		
    		//Add Biomes
    		elements.add(new cubicdeath_biome_cherryTreeForest());
    		
    		//Add Entities
    		
    		//Add Particles
    		
    		//Add GUI
    		
    		//Add Recipes
    		elements.add(new cubicdeath_recipe_emeraldHelmet());
    		elements.add(new cubicdeath_recipe_emeraldChestplate());
    		elements.add(new cubicdeath_recipe_emeraldLegging());
    		elements.add(new cubicdeath_recipe_emeraldBoots());
    		elements.add(new cubicdeath_recipe_emeraldSword());
    		elements.add(new cubicdeath_recipe_emeraldPickaxe());
    		elements.add(new cubicdeath_recipe_emeraldAxe());
    		elements.add(new cubicdeath_recipe_emeraldHoe());
    		elements.add(new cubicdeath_recipe_emeraldShovel());
    		elements.add(new cubicdeath_recipe_cherryTreeLog());
    		elements.add(new cubicdeath_recipe_cherryTreePlank1());
    		elements.add(new cubicdeath_recipe_cherryTreePlank2());
    
    		//Add Events
    		elements.add(new cubicdeath_event_cherryTreeLeavesBlockDestroyedByPlayer());
    		elements.add(new cubicdeath_event_cherryTreeLeavesRandomUpdateEvent());
    		elements.add(new cubicdeath_event_cherryTreePlantUpdateTick());
    		
    		//Add Others
    	}
    
    	public static class ModElement {
    
    		public static Object instance;
    
    		public void load(FMLInitializationEvent event) {
    		}
    
    		public void generateNether(World world, Random random, int chunkX, int chunkZ) {
    		}
    
    		public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
    		}
    
    		public void serverLoad(FMLServerStartingEvent event) {
    		}
    
    		public void preInit(FMLPreInitializationEvent event) {
    		}
    
    		public void registerRenderers() {
    		}
    
    		public int addFuel(ItemStack fuel) {
    			return 0;
    		}
    	}
    }
    
    

    Organisation des Packages :

    0_1546379999255_Capture.PNG

    Merci d'avance de votre aide !!


  • Administrateurs

    Si tu vires les .java présent sur cette ligne @SidedProxy(clientSide = "mod.cubicdeath.Ini_ClientProxyCubicDeath.java", serverSide = "fr.cubicdeath.Ini_CommonProxyCubicdeath.java"), ton code fonctionnera mieux.
    Par contre, tu ne respectes absolument pas les conventions de nommages de Java concernant les classes.

    • Les classes doivent toutes commencer par une majuscule, elles ne peuvent pas comporter d'autres caractères que des lettres et des chiffres.

    Il y en a d'autres, mais tu les respectes déjà.



  • @Superloup10 merci de ton conseil, à l'avenir je vais essayer de faire plus attention aux convention d'écriture.

    J'ai enlever les ".java", mais les mêmes logs et même erreurs, cela n'a rien résolu, il y a t'il une autre alternative ?


  • Administrateurs

    Tu peux envoyer ton code actuel et les derniers logs en date ?



  • @Superloup10 Ok voici ce que tu m'a demandé :

    Classe Principale :

    package fr.cubicdeath;
    
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.common.network.NetworkRegistry;
    import net.minecraftforge.fml.common.network.IGuiHandler;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
    import net.minecraftforge.fml.common.SidedProxy;
    import net.minecraftforge.fml.common.Mod.Instance;
    import net.minecraftforge.fml.common.Mod.EventHandler;
    import net.minecraftforge.fml.common.Mod;
    import net.minecraftforge.fml.common.IWorldGenerator;
    import net.minecraftforge.fml.common.IFuelHandler;
    import net.minecraftforge.client.model.obj.OBJLoader;
    
    import net.minecraft.world.gen.IChunkGenerator;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.World;
    import net.minecraft.item.ItemStack;
    import net.minecraft.entity.player.EntityPlayer;
    
    import java.util.Random;
    import java.util.List;
    import java.util.ArrayList;
    
    @Mod(modid = Cubicdeath.MODID, version = Cubicdeath.VERSION)
    public class Cubicdeath implements IFuelHandler, IWorldGenerator {
    
    	public static final String NAME = "CubicDeath";
    	public static final String MODID = "cubicdeath";
    	public static final String VERSION = "Alpha-Build-0.0.1";
    	@SidedProxy(clientSide = "fr.cubicdeath.ClientProxyCubicDeath", serverSide = "fr.cubicdeath.CommonProxyCubicdeath")
    	public static CommonProxyCubicdeath proxy;
    	@Instance(MODID)
    	public static Cubicdeath instance;
    	public static final List<ModElement> elements = new ArrayList<>();
    
    	@Override
    	public int getBurnTime(ItemStack fuel) {
    		for (ModElement element : elements) {
    			int ret = element.addFuel(fuel);
    			if (ret != 0)
    				return ret;
    		}
    		return 0;
    	}
    
    	@Override
    	public void generate(final Random random, int chunkX, int chunkZ, final World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) {
    		final int f_chunkX = chunkX * 16;
    		final int f_chunkZ = chunkZ * 16;
    		if (world.provider.getDimension() == -1)
    			elements.forEach(element -> element.generateNether(world, random, f_chunkX, f_chunkZ));
    		if (world.provider.getDimension() == 0)
    			elements.forEach(element -> element.generateSurface(world, random, f_chunkX, f_chunkZ));
    	}
    
    	@Mod.EventHandler
    	public void load(FMLInitializationEvent event) {
            System.out.println (NAME + ": Phase d'Initialisation en cour !!!");
    		GameRegistry.registerFuelHandler(this);
    		GameRegistry.registerWorldGenerator(this, 5);
    		NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
    		elements.forEach(element -> element.load(event));
    		proxy.registerRenderers(this);
    	}
    
    	@Mod.EventHandler
    	public void serverLoad(FMLServerStartingEvent event) {
    		elements.forEach(element -> element.serverLoad(event));
    	}
    
    	@Mod.EventHandler
    	public void preInit(FMLPreInitializationEvent event) {
            System.out.println (NAME + ": Phase de Pré-Initialisation en cour !!!");
    		if (event.getSide() == Side.CLIENT)
    			OBJLoader.INSTANCE.addDomain("Cubicdeath");
    		elements.forEach(element -> {
    			element.instance = this.instance;
    			element.preInit(event);
    		});
    	}
    	
    	@Mod.EventHandler
    	public void postInit(FMLPostInitializationEvent event) {
            System.out.println (NAME + ": Mod CubicDeath chargé !!!");
    	}
    
    	public static class GuiHandler implements IGuiHandler {
    
    		@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;
    		}
    	}
    
    	static { //Penser a modifier selon convention !!!
    		
    		//Add Items
    		elements.add(new cubicdeath_item_emeraldArmor());
    		elements.add(new cubicdeath_item_emeraldSword());
    		elements.add(new cubicdeath_item_emeraldShovel());
    		elements.add(new cubicdeath_item_emeraldPickaxe());
    		elements.add(new cubicdeath_item_emeraldAxe());
    		elements.add(new cubicdeath_item_emeraldHoe());
    		elements.add(new cubicdeath_item_cherry());
    		
    		//Add Blocks
    		elements.add(new cubicdeath_block_cherryTreeLog());
    		elements.add(new cubicdeath_block_cherryTreeLeaves());
    		elements.add(new cubicdeath_block_cherryTreePlank());
    		elements.add(new cubicdeath_block_blood());
    		
    		//Add Plant
    		elements.add(new cubicdeath_plant_cherryTreePlant());
    		
    		//Add Biomes
    		elements.add(new cubicdeath_biome_cherryTreeForest());
    		
    		//Add Entities
    		
    		//Add Particles
    		
    		//Add GUI
    		
    		//Add Recipes
    		elements.add(new cubicdeath_recipe_emeraldHelmet());
    		elements.add(new cubicdeath_recipe_emeraldChestplate());
    		elements.add(new cubicdeath_recipe_emeraldLegging());
    		elements.add(new cubicdeath_recipe_emeraldBoots());
    		elements.add(new cubicdeath_recipe_emeraldSword());
    		elements.add(new cubicdeath_recipe_emeraldPickaxe());
    		elements.add(new cubicdeath_recipe_emeraldAxe());
    		elements.add(new cubicdeath_recipe_emeraldHoe());
    		elements.add(new cubicdeath_recipe_emeraldShovel());
    		elements.add(new cubicdeath_recipe_cherryTreeLog());
    		elements.add(new cubicdeath_recipe_cherryTreePlank1());
    		elements.add(new cubicdeath_recipe_cherryTreePlank2());
    
    		//Add Events
    		elements.add(new cubicdeath_event_cherryTreeLeavesBlockDestroyedByPlayer());
    		elements.add(new cubicdeath_event_cherryTreeLeavesRandomUpdateEvent());
    		elements.add(new cubicdeath_event_cherryTreePlantUpdateTick());
    		
    		//Add Others
    	}
    
    	public static class ModElement {
    
    		public static Object instance;
    
    		public void load(FMLInitializationEvent event) {
    		}
    
    		public void generateNether(World world, Random random, int chunkX, int chunkZ) {
    		}
    
    		public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
    		}
    
    		public void serverLoad(FMLServerStartingEvent event) {
    		}
    
    		public void preInit(FMLPreInitializationEvent event) {
    		}
    
    		public void registerRenderers() {
    		}
    
    		public int addFuel(ItemStack fuel) {
    			return 0;
    		}
    	}
    }
    

    Log Console :

    [17:49:07] [main/INFO] [GradleStart]: Extra: []
    [17:49:07] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/nan/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [17:49:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:49:08] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:49:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:49:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [17:49:08] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
    [17:49:08] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_192, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_192\jre
    [17:49:08] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
    [17:49:08] [main/ERROR] [FML]: Full: C:\Users\nan\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
    [17:49:08] [main/ERROR] [FML]: Trimmed: c:/users/nan/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
    [17:49:09] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [17:49:09] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
    [17:49:13] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
    [17:49:13] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
    [17:49:14] [main/INFO] [FML]: Searching C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\mods for mods
    [17:49:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [17:49:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [17:49:14] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [17:49:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:49:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:49:14] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:49:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:49:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [17:49:14] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:49:17] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [17:49:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [17:49:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [17:49:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [17:49:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:49:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [17:49:19] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [17:49:22] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: Player173
    [17:49:33] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer:
    [17:49:33] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4
    [17:49:51] [main/INFO] [FML]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 7 (amd64) version 6.1
    	Java Version: 1.8.0_192, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 94560312 bytes (90 MB) / 308805632 bytes (294 MB) up to 954728448 bytes (910 MB)
    	JVM Flags: 0 total; 
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.0.0' Renderer: 'GeForce GT 220M/PCI/SSE2'
    [17:49:51] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
    [17:49:51] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [17:49:51] [main/INFO] [FML]: Replaced 1036 ore ingredients
    [17:49:53] [main/INFO] [FML]: Searching C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\mods for mods
    [17:49:58] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [17:50:01] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cubicdeath] at CLIENT
    [17:50:01] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, cubicdeath] at SERVER
    [17:50:03] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 7025728971 nanos
    [17:50:05] [main/ERROR] [FML]: An error occurred trying to load a proxy into proxy.java.lang.ClassNotFoundException: fr.cubicdeath.ClientProxyCubicDeath
    [17:50:05] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
    // Shall we play a game?
    
    Time: 1/4/19 5:50 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: fr.cubicdeath.ClientProxyCubicDeath
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102)
    	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:600)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    	at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:513)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:421)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:25)
    Caused by: java.lang.ClassNotFoundException: fr.cubicdeath.ClientProxyCubicDeath
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:75)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:348)
    	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:85)
    	... 43 more
    Caused by: java.lang.NullPointerException
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    	... 49 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 7 (amd64) version 6.1
    	Java Version: 1.8.0_192, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 234692200 bytes (223 MB) / 405274624 bytes (386 MB) up to 954728448 bytes (910 MB)
    	JVM Flags: 0 total; 
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 mods active
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    
    	| State | ID         | Version           | Source                           | Signature |
    	|:----- |:---------- |:----------------- |:-------------------------------- |:--------- |
    	| UC    | minecraft  | 1.12.2            | minecraft.jar                    | None      |
    	| UC    | mcp        | 9.42              | minecraft.jar                    | None      |
    	| UC    | FML        | 8.0.99.99         | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UC    | forge      | 14.23.5.2768      | forgeSrc-1.12.2-14.23.5.2768.jar | None      |
    	| UE    | cubicdeath | Alpha-Build-0.0.1 | cubicdeath-Alpha-Build-0.0.1.jar | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.0.0' Renderer: 'GeForce GT 220M/PCI/SSE2'
    [17:50:06] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\nan\Desktop\CubicDeath project\CodageJava\CubicDeath\run\.\crash-reports\crash-2019-01-04_17.50.05-client.txt
    

    Voici pour toi


  • Administrateurs

    Ton ClientProxy se nomme bien : ClientProxyCubicDeath et se trouve bien dans le package :fr.cubicdeath ?
    Ton CommonProxy se nomme bien : CommonProxyCubicdeath et se trouve bien dans le package :fr.cubicdeath ?



  • @Superloup10 oui ils sont tout deux dans mon package fr.cubicdeath


  • Administrateurs

    Bonjour,

    Pas possible d'avoir ce crash si c'est bien le cas.
    Envoies un screenshot du package explorer de ton ide.



  • @robin4002 0_1546625075762_Capture.PNG

    Le voici


  • Administrateurs

    Je peux voir un screen de l'intérieur du dossier src/main/java vu par l'explorateur de fichier de Windows ?



  • @Superloup10 Ok, mais je ne vois pas en quoi ça t'avancera c'est juste le dossier FR due au package fr.cubicdeath...

    0_1546625678543_Capture.PNG


  • Administrateurs

    Je voulais juste avoir la confirmation que c'était bien 2 dossiers et non, un dossier nommé fr.cubicdeath



  • @Superloup10 c'est effectivement 2 dossiers, ce n'est pas censé être ça ?


  • Administrateurs

    Tu as correctement fait tes dossiers, ne t'inquiète pas.
    En revanche, ton ClientProxy n'a pas le bon nom, tu as mis ClientProxyCubicDeathdans le code, alors que ton fichier se nomme ClientProxyCubicdeath



  • @Superloup10 Mon dieux comment ais-je pu faire une telle gaffe !!!! Je modifie ça et je renvois un message pour dire si c'est bon, en attendant, j'ai un second soucis avec eclipse cette fois-ci , puis-je en profiter ?


  • Administrateurs

    Oui si c'est lié au sujet



  • @Superloup10 Ok super le mod est chargé par minecraft ! Je n'ai plus le soucis du Proxy, par contre je n'ai plus les textures de mon mod, il va donc falloir que je regarde pour voir si je n'ai pas fait des erreur dans la manière d'appeler les textures :-/ (suis-je donc vraiment pas doué ?)

    Alors mon problème avec eclipse est qu'il ne veux plus faire le runClient il m'affiche a chaque fois un message d'erreur : ${project_lock}


  • Administrateurs

    Le problème du lock est vraiment tout con à résoudre, il suffit juste de sélectionner ton projet dans le package explorer d'Eclipse avant de faire le runClient.