Crash lors du lancement de minecraft (code d'arret -1 )
-
Dès que forge charge mon mod, mon mc crash sur l’étape 2 j’ai fait mon mod sur IntelliJ IDEA . Voici le crash report:
---- Minecraft Crash Report ---- // You're mean. Time: 1/11/21 6:43 PM Description: There was a severe problem during mod loading that has caused the game to fail net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Mod (mod) Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: fr.Komas19.Mod.proxy.ClientProxy at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:102) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:585) 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:278) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:256) 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:148) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:568) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:231) 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.Komas19.Mod.proxy.ClientProxy at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) 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 10 (amd64) version 10.0 Java Version: 1.8.0_271, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 478455784 bytes (456 MB) / 659554304 bytes (629 MB) up to 1870135296 bytes (1783 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.1.2604 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.1.2604.jar | None | | UC | forge | 14.23.1.2604 | forgeSrc-1.12.2-14.23.1.2604.jar | None | | UE | mod | 0.1 | main | None | Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.6.0 - Build 27.20.100.8280' Renderer: 'Intel(R) UHD Graphics'
-
Bonjour,
Tu as mis une valeur invalide pour le client proxy, vérifies la ligne
@SidedProxy(...)
dans ta classe principale. -
ok je vais revoir le tutoriel pour le proxy
-
@robin4002 je trouve pas de problème, j’ai mis comme sur le tutoriel
-
Envoies le code de ta classe principale et de ton client proxy.
-
@robin4002 Voici le code de mon ModMain :
package fr.Komas19.Mod; import fr.Komas19.Mod.classes.proxy.CommonProxy; import fr.Komas19.Mod.utils.References; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = References.MODID, name = References.NAME, version = References.VERSION) public class ModMain { @Mod.Instance(References.MODID) public static ModMain instance; @SidedProxy(clientSide = References.CLIENT_PROXY, serverSide = References.SERVER_PROXY) public static CommonProxy proxy; @Mod.EventHandler public void preInit(FMLPreInitializationEvent e) { proxy.preInit(); } @Mod.EventHandler public void init(FMLPreInitializationEvent e) { proxy.init(); } @Mod.EventHandler public void postInit(FMLPreInitializationEvent e) { proxy.postInit(); } }
Et voici celui du ClientProxy (c’est le même code pour le ServerProxy)
package fr.Komas19.Mod.classes.proxy; public class ClientProxy extends CommonProxy { @Override public void preInit() { super.preInit(); } @Override public void init() { super.init(); } @Override public void postInit() { super.postInit(); } }
-
et aussi la première fois que j’ai lancé le mc launcher via IDEA,
sa marcher et maintenant sa marche plus -
et voici le code de References si tu en a besoin :
package fr.Komas19.Mod.utils; public class References { public static final String MODID = "mod"; public static final String NAME = "Mod"; public static final String VERSION = "0.1"; public static final String CLIENT_PROXY = "fr.Komas19.Mod.classes.proxy.ClientProxy"; public static final String SERVER_PROXY = "fr.Komas19.Mod.classes.proxy.ServerProxy"; }
-
Effectivement les chemins indiqués dans références correspondent.
Donc je ne comprends pas pourquoi tu as ce crash, ça n’a pas de sens …Les conventions java ne sont pas respectés (par de majuscule au nom des packages) mais ce n’est pas sensé causer problème.
-
Ce message a été supprimé ! -
@robin4002 Ah bah maintenant sa remarche.
Le problème c’est réglé tout seul -